[PATCH v3] virtio: Add uvirtio driver

2020-04-30 Thread Lepton Wu
read/write API hasn't been implemented. Signed-off-by: Lepton Wu --- v3: * Add Documentation/misc-devices/uvirtio.rst v2: * Fix styles issues found by checkpatch.pl * Update comments and commit log --- Documentation/misc-devices/index.rst | 1 + Documentation/misc-devices/uvirtio

[PATCH v2] virtio: Add uvirtio driver

2020-04-29 Thread Lepton Wu
read/write api hasn't been implemented. Signed-off-by: Lepton Wu --- v2: * Fix styles issues found by checkpatch.pl * Update comments and commit log --- drivers/virtio/Kconfig| 11 + drivers/virtio/Makefile | 1 + drivers/virtio/uvirtio.c

[PATCH 1/1] virtio: Add uvirtio driver

2020-04-28 Thread Lepton Wu
This is for testing purpose to create virtio devices from user space. uvirtio-vga.c shows how to create a virtio-vga device. Currently we don't have a use case which requires user/kernel communication so read/write api hasn't been implemented. Signed-off-by: Lepton Wu --- drivers/virtio/Kconfig

[PATCH 0/1] Add uvirtio for testing

2020-04-28 Thread Lepton Wu
kernel directly: https://www.spinics.net/lists/dri-devel/msg248573.html Then I got feedback from Gerd that maybe it's better to change that to something like uvirtio. Since I really don't have other use cases for now, I just implemented the minimal stuff which work for my use case. Lepton Wu (1

[PATCH 1/1] proof of concept for GPU forwarding

2019-04-03 Thread Lepton Wu
--- arch/x86/configs/x86_64_defconfig |5 + drivers/char/Makefile |1 + drivers/char/forwarder/Makefile|8 + drivers/char/forwarder/forwarder.h | 103 ++ drivers/char/forwarder/forwarder_drv.c | 2104 fs/open.c

Proof of concept for GPU forwarding for Linux guest on Linux host.

2019-04-03 Thread Lepton Wu
proxy between host and VM guest. We just proxy API at system call level. 3. Some nasty things was done in guest kernel as a quick dirty hack so we don't need to touch user space (wayland/mesa etc) now. 4. You can check tools/forward/README for instructions. Thanks! Lepton Wu (1): proof

[PATCH] drm/cirrus: add create_handle support.

2017-11-22 Thread Lepton Wu
Add create_handle support to cirrus fb. Without this, screenshot tool in chromium OS can't work. Signed-off-by: Lepton Wu <ytht@gmail.com> --- drivers/gpu/drm/cirrus/cirrus_main.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/cirrus/cirrus_main.c b/drive

[PATCH] drm/virtio: add create_handle support.

2017-11-22 Thread Lepton Wu
Add create_handle support to virtio fb. Without this, screenshot tool in chromium OS can't work. Signed-off-by: Lepton Wu <ytht@gmail.com> --- drivers/gpu/drm/virtio/virtgpu_display.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/virtio/virtgpu_dis