qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/2] i440fx: print an error message if user tries to


From: Bandan Das
Subject: [Qemu-devel] [PATCH 2/2] i440fx: print an error message if user tries to enable iommu
Date: Wed, 11 Nov 2015 22:36:16 -0500

There's no indication of any sort that i440fx doesn't support
"iommu=on""

Signed-off-by: Bandan Das <address@hidden>
---
 hw/pci-host/piix.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c
index 7b2fbf9..f12593a 100644
--- a/hw/pci-host/piix.c
+++ b/hw/pci-host/piix.c
@@ -301,6 +301,10 @@ static void i440fx_pcihost_realize(DeviceState *dev, Error 
**errp)
 static void i440fx_realize(PCIDevice *dev, Error **errp)
 {
     dev->config[I440FX_SMRAM] = 0x02;
+
+    if (object_property_get_bool(qdev_get_machine(), "iommu", NULL)) {
+        fprintf(stderr, "i440fx doesn't support emulated iommu\n");
+    }
 }
 
 PCIBus *i440fx_init(const char *host_type, const char *pci_type,
-- 
2.6.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]