OvmfPkg/VirtioMmioDeviceLib: virtio 1.0: Fix SetQueueAlignment.

Nothing to do here for virtio 1.0 devices

Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Jeff Brasen 2023-03-24 01:42:17 +00:00 committed by mergify[bot]
parent 89520115b8
commit f9278458b6
1 changed files with 3 additions and 1 deletions

View File

@ -144,7 +144,9 @@ VirtioMmioSetQueueAlignment (
Device = VIRTIO_MMIO_DEVICE_FROM_VIRTIO_DEVICE (This);
VIRTIO_CFG_WRITE (Device, VIRTIO_MMIO_OFFSET_QUEUE_ALIGN, Alignment);
if (Device->Version == VIRTIO_MMIO_DEVICE_VERSION_0_95) {
VIRTIO_CFG_WRITE (Device, VIRTIO_MMIO_OFFSET_QUEUE_ALIGN, Alignment);
}
return EFI_SUCCESS;
}