Displaying 9 results from an estimated 9 matches for "wl_shm".
Did you mean:
tl_sem
2018 Feb 13
0
[PATCH v3 1/2] drm/virtio: Add window server support
...should at least support zero-copy for cooperative
>> clients.
>
> "cooperative clients" == "client which has support for the wayland
> protocol extension", correct?
Guess it could be that, but I was rather thinking of clients that would
allocate the buffer for wl_shm_pool with DRM_VIRTGPU_RESOURCE_CREATE or
equivalent. Then that buffer would be exported and the fd passed using
the standard wl_shm protocol.
>>>> 4. QEMU maps that buffer to the guest's address space
>>>> (KVM_SET_USER_MEMORY_REGION), passes the guest PFN to the virt...
2018 Feb 12
4
[PATCH v3 1/2] drm/virtio: Add window server support
...there a 1:1 relationship between buffers and shmem blocks? Or
> > does the wayland protocol allow for offsets in buffer meta data, so you
> > can place multiple buffers in a single shmem block?
>
> The latter:
> https://wayland.freedesktop.org/docs/html/apa.html#protocol-spec-wl_shm_pool
Ah, good, that makes it alot easier.
So, yes, using ivshmem would be one option. Tricky part here is the
buffer management though. It's just a raw piece of memory. The guest
proxy could mmap the pci bar and manage it. But then it is again either
unmodified guest + copying the data, o...
2018 Feb 12
4
[PATCH v3 1/2] drm/virtio: Add window server support
...there a 1:1 relationship between buffers and shmem blocks? Or
> > does the wayland protocol allow for offsets in buffer meta data, so you
> > can place multiple buffers in a single shmem block?
>
> The latter:
> https://wayland.freedesktop.org/docs/html/apa.html#protocol-spec-wl_shm_pool
Ah, good, that makes it alot easier.
So, yes, using ivshmem would be one option. Tricky part here is the
buffer management though. It's just a raw piece of memory. The guest
proxy could mmap the pci bar and manage it. But then it is again either
unmodified guest + copying the data, o...
2017 Dec 28
3
[PATCH] drm/virtio: Add window server support
...ame size with DRM_VIRTGPU_RESOURCE_CREATE.
When the client notifies the compositor that it can read from that buffer,
the proxy should copy the contents from the SHM region to the virtio-gpu
resource and call DRM_VIRTGPU_TRANSFER_TO_HOST.
This has been tested with Wayland clients that make use of wl_shm to
pass buffers to the compositor, but is expected to work similarly for X
clients that make use of MIT-SHM with FD passing.
v2: * Add padding to two virtio command structs
* Properly cast two __user pointers (kbuild test robot)
Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>...
2017 Dec 28
3
[PATCH] drm/virtio: Add window server support
...ame size with DRM_VIRTGPU_RESOURCE_CREATE.
When the client notifies the compositor that it can read from that buffer,
the proxy should copy the contents from the SHM region to the virtio-gpu
resource and call DRM_VIRTGPU_TRANSFER_TO_HOST.
This has been tested with Wayland clients that make use of wl_shm to
pass buffers to the compositor, but is expected to work similarly for X
clients that make use of MIT-SHM with FD passing.
v2: * Add padding to two virtio command structs
* Properly cast two __user pointers (kbuild test robot)
Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>...
2018 Jan 26
0
[PATCH v3 1/2] drm/virtio: Add window server support
...ame size with DRM_VIRTGPU_RESOURCE_CREATE.
When the client notifies the compositor that it can read from that buffer,
the proxy should copy the contents from the SHM region to the virtio-gpu
resource and call DRM_VIRTGPU_TRANSFER_TO_HOST.
This has been tested with Wayland clients that make use of wl_shm to
pass buffers to the compositor, but is expected to work similarly for X
clients that make use of MIT-SHM with FD passing.
v2: * Add padding to two virtio command structs
* Properly cast two __user pointers (kbuild test robot)
v3: * Handle absence of winsrv support in QEMU (Dave Airlie)
Si...
2018 Jan 26
3
[PATCH v3 0/2] drm/virtio: Add window server support
Hi,
this work is based on the virtio_wl driver in the ChromeOS kernel by
Zach Reizner, currently at:
https://chromium.googlesource.com/chromiumos/third_party/kernel/+/chromeos-4.4/drivers/virtio/virtio_wl.c
There's one feature missing currently, which is letting clients write
directly to the host part of a resource, so the extra copy in
TRANSFER_TO_HOST isn't needed.
Have pushed the
2017 Dec 14
2
[PATCH] drm/virtio: Add window server support
...ame size with DRM_VIRTGPU_RESOURCE_CREATE.
When the client notifies the compositor that it can read from that buffer,
the proxy should copy the contents from the SHM region to the virtio-gpu
resource and call DRM_VIRTGPU_TRANSFER_TO_HOST.
This has been tested with Wayland clients that make use of wl_shm to
pass buffers to the compositor, but is expected to work similarly for X
clients that make use of MIT-SHM with FD passing.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Cc: Zach Reizner <zachr at google.com>
---
Hi,
this work is based on the virtio_wl driver in the C...
2017 Dec 14
2
[PATCH] drm/virtio: Add window server support
...ame size with DRM_VIRTGPU_RESOURCE_CREATE.
When the client notifies the compositor that it can read from that buffer,
the proxy should copy the contents from the SHM region to the virtio-gpu
resource and call DRM_VIRTGPU_TRANSFER_TO_HOST.
This has been tested with Wayland clients that make use of wl_shm to
pass buffers to the compositor, but is expected to work similarly for X
clients that make use of MIT-SHM with FD passing.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Cc: Zach Reizner <zachr at google.com>
---
Hi,
this work is based on the virtio_wl driver in the C...