Re: [virtio-dev] Re: [PATCH v2 4/5] virtio-mmio: add MSI interrupt feature support

2020-02-10 Thread Jason Wang
On 2020/2/11 下午2:02, Liu, Jing2 wrote: On 2/11/2020 12:02 PM, Jason Wang wrote: On 2020/2/11 上午11:35, Liu, Jing2 wrote: On 2/11/2020 11:17 AM, Jason Wang wrote: On 2020/2/10 下午5:05, Zha Bin wrote: From: Liu Jiang Userspace VMMs (e.g. Qemu microvm, Firecracker) take advantage of using

Re: [virtio-dev] Re: [PATCH v2 4/5] virtio-mmio: add MSI interrupt feature support

2020-02-10 Thread Liu, Jing2
On 2/11/2020 12:02 PM, Jason Wang wrote: On 2020/2/11 上午11:35, Liu, Jing2 wrote: On 2/11/2020 11:17 AM, Jason Wang wrote: On 2020/2/10 下午5:05, Zha Bin wrote: From: Liu Jiang Userspace VMMs (e.g. Qemu microvm, Firecracker) take advantage of using virtio over mmio devices as a lightweight

Re: [virtio-dev] Re: [PATCH v2 4/5] virtio-mmio: add MSI interrupt feature support

2020-02-10 Thread Jason Wang
On 2020/2/11 上午11:35, Liu, Jing2 wrote: On 2/11/2020 11:17 AM, Jason Wang wrote: On 2020/2/10 下午5:05, Zha Bin wrote: From: Liu Jiang Userspace VMMs (e.g. Qemu microvm, Firecracker) take advantage of using virtio over mmio devices as a lightweight machine model for modern cloud. The standar

Re: [virtio-dev] Re: [PATCH v2 4/5] virtio-mmio: add MSI interrupt feature support

2020-02-10 Thread Liu, Jing2
On 2/11/2020 11:17 AM, Jason Wang wrote: On 2020/2/10 下午5:05, Zha Bin wrote: From: Liu Jiang Userspace VMMs (e.g. Qemu microvm, Firecracker) take advantage of using virtio over mmio devices as a lightweight machine model for modern cloud. The standard virtio over MMIO transport layer only su

Re: [virtio-dev] [PATCH v2 5/5] virtio-mmio: MSI vector and event mapping

2020-02-10 Thread Liu, Jing2
On 1/29/2020 6:14 PM, Michael S. Tsirkin wrote: On Tue, Jan 21, 2020 at 09:54:33PM +0800, Jing Liu wrote: Bit 1 msi_sharing reported in the MsiState register indicates the mapping mode device uses. Bit 1 is 0 - device uses MSI non-sharing mode. This indicates vector per event and fixed static

[virtio-dev] Re: [PATCH v2 4/5] virtio-mmio: add MSI interrupt feature support

2020-02-10 Thread Jason Wang
On 2020/2/10 下午5:05, Zha Bin wrote: From: Liu Jiang Userspace VMMs (e.g. Qemu microvm, Firecracker) take advantage of using virtio over mmio devices as a lightweight machine model for modern cloud. The standard virtio over MMIO transport layer only supports one legacy interrupt, which is much

Re: [virtio-dev] May a device use buffers after putting them into the used ring?

2020-02-10 Thread Stefan Hajnoczi
On Fri, Feb 07, 2020 at 06:42:52PM +0100, Benedikt Radtke wrote: > I am using qemu-system-arm with "-device virtio-net-device" to emulate a nic > (mmio, legacy). I have noticed that a receive queue uses the same buffer > multiple times, although it has been added to the used ring (and not been > ad

[virtio-dev] Re: [RFC] Upstreaming virtio-wayland (or an alternative)

2020-02-10 Thread Stefan Hajnoczi
On Mon, Feb 10, 2020 at 02:38:56PM +0100, Gerd Hoffmann wrote: > > #3 is pretty similar to #1 in its design except that, instead of using > > the VSOCK infrastructure it's using a new type of virtio device. I > > guess it has the same pros and cons #1 has, and the name should probably > > be change

[virtio-dev] Re: [RFC] Upstreaming virtio-wayland (or an alternative)

2020-02-10 Thread Gerd Hoffmann
Hi, > #1 might require extra care if we want to make it safe, as pointed > out by Stefan here [4] (but I wonder if the problem is not the same > for a virtio-wayland based solution). Of course you also need a bit of > infrastructure to register FD <-> VFD mappings (VFD being a virtual > file des

[virtio-dev] Re: [PATCH v2 0/5] virtio mmio specification enhancement

2020-02-10 Thread Michael S. Tsirkin
On Mon, Feb 10, 2020 at 05:05:16PM +0800, Zha Bin wrote: > We have compared the number of files and the lines of code between > virtio-mmio and virio-pci. > > Virtio-PCI Virtio-MMIO > number of files(Linux) 161 1 > lines of c

Re: [virtio-dev][PATCH v1 1/2] virtio-mmio: Add MSI and different notification address support

2020-02-10 Thread Liu, Jing2
On 1/23/2020 12:56 AM, Stefan Hajnoczi wrote: On Mon, Jan 13, 2020 at 07:54:06PM +0800, Liu, Jing2 wrote: \end{note} } \hline @@ -1671,25 +1671,23 @@ \subsection{MMIO Device Register Layout}\label{sec:Virtio Transport Options / Vi accesses apply to the queue select