]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceFunctions.c
OvmfPkg/VirtioMmioDeviceLib: virtio 1.0: Fix SetQueueAddress
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 27 Aug 2021 13:44:56 +0000 (21:44 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 30 Aug 2021 01:05:49 +0000 (01:05 +0000)
commit537a724421393191f8a47eae6653b071e970016e
treee9f206ddd223db1eb83fc2923da7aa480bf56e86
parent212a2b9bb82738f9b87fdb13b96823ab57fc7ad9
OvmfPkg/VirtioMmioDeviceLib: virtio 1.0: Fix SetQueueAddress

Virtio 1.0 allows a more flexible virtio ring layout, so we have to set
addresses for descriptors avail flags and use flags separately.  We
continue to use a ring layout compatible with virtio 0.9.5 though, so no
other changes are needed to setup the virtio queues.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceFunctions.c