OvmfPkg/VirtioMmioDeviceLib: virtio 1.0: Add default QueueNum

Use QueueNumMax as QueueNum default for drivers which do not
explicitly call VIRTIO_DEVICE_PROTOCOL->SetQueueSize().

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
Gerd Hoffmann
2021-08-27 21:44:57 +08:00
committed by mergify[bot]
parent 537a724421
commit 6a3e9576b8
2 changed files with 12 additions and 1 deletions

View File

@@ -30,6 +30,7 @@
typedef struct {
UINT32 Signature;
UINT32 Version;
UINT16 QueueNum;
VIRTIO_DEVICE_PROTOCOL VirtioDevice;
PHYSICAL_ADDRESS BaseAddress;
} VIRTIO_MMIO_DEVICE;