From 77d5fa80246e8784f89e109ff9dadfeb7089ff85 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 27 Aug 2021 21:44:59 +0800 Subject: [PATCH] OvmfPkg/VirtioMmioDeviceLib: enable virtio 1.0 Now with everything in place for virtio 1.0 devices we can let VirtioMmioInit() return SUCCESS. Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daude Reviewed-by: Jiewen Yao --- OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c b/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c index 0c92f53731..a97ef9352d 100644 --- a/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c +++ b/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c @@ -87,7 +87,7 @@ VirtioMmioInit ( DEBUG ((DEBUG_INFO, "%a virtio 1.0, id %d\n", __FUNCTION__, Device->VirtioDevice.SubSystemDeviceId)); Device->VirtioDevice.Revision = VIRTIO_SPEC_REVISION (1, 0, 0); - return EFI_UNSUPPORTED; + break; default: return EFI_UNSUPPORTED; }