qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] vhost-pci and virtio-vhost-user


From: Wei Wang
Subject: Re: [Qemu-devel] vhost-pci and virtio-vhost-user
Date: Mon, 15 Jan 2018 15:56:18 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

On 01/12/2018 06:18 PM, Stefan Hajnoczi wrote:
On Fri, Jan 12, 2018 at 11:32:56AM +0800, Jason Wang wrote:

On 2018年01月11日 23:23, Stefan Hajnoczi wrote:
On Thu, Jan 11, 2018 at 06:57:03PM +0800, Jason Wang wrote:
On 2018年01月11日 00:14, Stefan Hajnoczi wrote:

Looks not, if I read the code correctly, vhost-pci has a device
implementation in qemu, and in slave VM it only have a vhost-pci-net driver.
You are right that the current "[PATCH v3 0/7] Vhost-pci for inter-VM
communication" does not reach this goal yet.  The patch series focusses
on a subset of vhost-user-net for poll mode drivers.

But the goal is to eventually let VMs implement any vhost device type.
Even if Wei, you, or I don't implement scsi, for example, someone else
should be able to do it based on vhost-pci or virtio-vhost-user.

Wei: Do you agree?

Yes. I agree it would be good to have only one device, which performs the fundamental emulation (e.g. expose master VM memory via a bar) that is common to all the types (net, scsi..). The device should be able to tell the driver which type the master side is. So, at the QEMU device layer, we don't need to distinguish between device types, while regarding the driver, each device type has its own specific driver implementation, which is based on a common vhost-pci driver layer.


Best,
Wei





reply via email to

[Prev in Thread] Current Thread [Next in Thread]