patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob 2f0f95c532a88f24717e3be44787594f5d50b344 1214 bytes (raw)
name: pkgs/applications/virtualization/crosvm/devices-properly-consider-shm-buuffers-when-setting-.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 
From f5afb62e138017f28966d8fa20b44fe00f301d7d Mon Sep 17 00:00:00 2001
From: Puck Meerburg <puck@puckipedia.com>
Date: Mon, 26 Sep 2022 22:40:53 +0000
Subject: [PATCH crosvm 1/3] devices: properly consider shm buuffers when
 setting gpu_blob flag

---
 devices/src/virtio/gpu/virtio_gpu.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/devices/src/virtio/gpu/virtio_gpu.rs b/devices/src/virtio/gpu/virtio_gpu.rs
index 698215727a..ed97942f7a 100644
--- a/devices/src/virtio/gpu/virtio_gpu.rs
+++ b/devices/src/virtio/gpu/virtio_gpu.rs
@@ -26,6 +26,7 @@ use rutabaga_gfx::RutabagaHandle;
 use rutabaga_gfx::RutabagaIovec;
 use rutabaga_gfx::Transfer3D;
 use rutabaga_gfx::RUTABAGA_MEM_HANDLE_TYPE_DMABUF;
+use rutabaga_gfx::RUTABAGA_MEM_HANDLE_TYPE_SHM;
 use sync::Mutex;
 use vm_control::VmMemorySource;
 use vm_memory::udmabuf::UdmabufDriver;
@@ -731,7 +732,7 @@ impl VirtioGpu {
                     descriptor: export.os_handle,
                     offset: 0,
                     size: resource.size,
-                    gpu_blob: true,
+                    gpu_blob: export.handle_type != RUTABAGA_MEM_HANDLE_TYPE_SHM,
                 },
             }
         } else {
-- 
2.37.1


debug log:

solving 2f0f95c532a ...
found 2f0f95c532a in https://inbox.spectrum-os.org/spectrum-devel/20220928170128.1583791-6-alyssa.ross@unikie.com/ ||
	https://inbox.spectrum-os.org/spectrum-devel/20220930210906.1696349-6-alyssa.ross@unikie.com/

applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20220928170128.1583791-6-alyssa.ross@unikie.com/
diff --git a/pkgs/applications/virtualization/crosvm/devices-properly-consider-shm-buuffers-when-setting-.patch b/pkgs/applications/virtualization/crosvm/devices-properly-consider-shm-buuffers-when-setting-.patch
new file mode 100644
index 00000000000..2f0f95c532a

1:38: trailing whitespace.
-- 
Checking patch pkgs/applications/virtualization/crosvm/devices-properly-consider-shm-buuffers-when-setting-.patch...
1:40: new blank line at EOF.
+
Applied patch pkgs/applications/virtualization/crosvm/devices-properly-consider-shm-buuffers-when-setting-.patch cleanly.
warning: 2 lines add whitespace errors.

skipping https://inbox.spectrum-os.org/spectrum-devel/20220930210906.1696349-6-alyssa.ross@unikie.com/ for 2f0f95c532a
index at:
100644 2f0f95c532a88f24717e3be44787594f5d50b344	pkgs/applications/virtualization/crosvm/devices-properly-consider-shm-buuffers-when-setting-.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).