On Thu, Dec 17, 2020 at 05:02:49PM +0800, Jason Wang wrote:
On 2020/12/17 下午3:58, Michael S. Tsirkin wrote:That's ok, problem is I don't see how address space is going
On Thu, Dec 17, 2020 at 11:30:18AM +0800, Jason Wang wrote:In this case, address space is not a must.
On 2020/12/16 下午5:47, Michael S. Tsirkin wrote:But how does that tie to the address space infrastructure?
On Wed, Dec 16, 2020 at 02:47:57PM +0800, Jason Wang wrote:In this case, the VF parent need to provide a software control vq and decode
Hi All:How will this support the pretty common case where control vq
This series tries to add the support for control virtqueue in vDPA.
Control virtqueue is used by networking device for accepting various
commands from the driver. It's a must to support multiqueue and other
configurations.
When used by vhost-vDPA bus driver for VM, the control virtqueue
should be shadowed via userspace VMM (Qemu) instead of being assigned
directly to Guest. This is because Qemu needs to know the device state
in order to start and stop device correctly (e.g for Live Migration).
This requies to isolate the memory mapping for control virtqueue
presented by vhost-vDPA to prevent guest from accesing it directly.
To achieve this, vDPA introduce two new abstractions:
- address space: identified through address space id (ASID) and a set
of memory mapping in maintained
- virtqueue group: the minimal set of virtqueues that must share an
address space
is programmed by the kernel through the PF, and others by the VFs?
the command then send them to VF.
to work in this case at all.
There's no address space there that userspace/guest can control.