[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device
From: |
Oleksandr Andrushchenko |
Subject: |
Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device |
Date: |
Fri, 6 Apr 2018 15:36:03 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
On 04/06/2018 02:57 PM, Gerd Hoffmann wrote:
Hi,
I fail to see any common ground for xen-zcopy and udmabuf ...
Does the above mean you can assume that xen-zcopy and udmabuf
can co-exist as two different solutions?
Well, udmabuf route isn't fully clear yet, but yes.
See also gvt (intel vgpu), where the hypervisor interface is abstracted
away into a separate kernel modules even though most of the actual vgpu
emulation code is common.
Thank you for your input, I'm just trying to figure out
which of the three z-copy solutions intersect and how much
And what about hyper-dmabuf?
No idea, didn't look at it in detail.
Looks pretty complex from a distant view. Maybe because it tries to
build a communication framework using dma-bufs instead of a simple
dma-buf passing mechanism.
Yes, I am looking at it now, trying to figure out the full story
and its implementation. BTW, Intel guys were about to share some
test application for hyper-dmabuf, maybe I have missed one.
It could probably better explain the use-cases and the complexity
they have in hyper-dmabuf.
Like xen-zcopy it seems to depend on the idea that the hypervisor
manages all memory it is easy for guests to share pages with the help of
the hypervisor.
So, for xen-zcopy we were not trying to make it generic,
it just solves display (dumb) zero-copying use-cases for Xen.
We implemented it as a DRM helper driver because we can't see any
other use-cases as of now.
For example, we also have Xen para-virtualized sound driver, but
its buffer memory usage is not comparable to what display wants
and it works somewhat differently (e.g. there is no "frame done"
event, so one can't tell when the sound buffer can be "flipped").
At the same time, we do not use virtio-gpu, so this could probably
be one more candidate for shared dma-bufs some day.
Which simply isn't the case on kvm.
hyper-dmabuf and xen-zcopy could maybe share code, or hyper-dmabuf build
on top of xen-zcopy.
Hm, I can imagine that: xen-zcopy could be a library code for hyper-dmabuf
in terms of implementing all that page sharing fun in multiple directions,
e.g. Host->Guest, Guest->Host, Guest<->Guest.
But I'll let Matt and Dongwon to comment on that.
cheers,
Gerd
Thank you,
Oleksandr
P.S. Sorry for making your original mail thread to discuss things much
broader than your RFC...
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Daniel Vetter, 2018/04/05
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Matt Roper, 2018/04/05
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Oleksandr Andrushchenko, 2018/04/06
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Gerd Hoffmann, 2018/04/06
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Oleksandr Andrushchenko, 2018/04/06
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Oleksandr Andrushchenko, 2018/04/06
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Gerd Hoffmann, 2018/04/06
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device,
Oleksandr Andrushchenko <=
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Dongwon Kim, 2018/04/06
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Oleksandr Andrushchenko, 2018/04/10
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Dongwon Kim, 2018/04/10
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Oleksandr Andrushchenko, 2018/04/11
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Daniel Vetter, 2018/04/13
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Oleksandr Andrushchenko, 2018/04/16
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Daniel Vetter, 2018/04/16
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Oleksandr Andrushchenko, 2018/04/16
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Daniel Vetter, 2018/04/16
- Re: [Qemu-devel] [RfC PATCH] Add udmabuf misc device, Oleksandr Andrushchenko, 2018/04/16