[SeaBIOS] [PATCH 1/5] paravirt: Add virt PCI ID to QEMU detection code

Rob Bradford robert.bradford at intel.com
Thu Nov 29 18:37:42 CET 2018


Add the PCI ID used by the host bridge from the virt machine as a
support PCI ID in the detection code.

Signed-off-by: Rob Bradford <robert.bradford at intel.com>
---
 src/fw/paravirt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/fw/paravirt.c b/src/fw/paravirt.c
index 0770c47..597bd1c 100644
--- a/src/fw/paravirt.c
+++ b/src/fw/paravirt.c
@@ -95,6 +95,9 @@ static void qemu_detect(void)
     case 0x29c0:
         dprintf(1, "Running on QEMU (q35)\n");
         break;
+    case 0x0d57:
+        dprintf(1, "Running on QEMU (virt)\n");
+        break;
     default:
         dprintf(1, "Running on QEMU (unknown nb: %04x:%04x)\n", v, d);
         break;
-- 
2.19.2




More information about the SeaBIOS mailing list