[PATCH v3 07/29] qemu_domain.c: disable default devices for PowerNV machines

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

 



PowerNV domains will support pcie-root devices as PHBs, in a similar
fashion as pSeries domains supports the spapr-pci-host-bridge as a
pci-root model.

Set 'addPCIRoot' to false since we'll not be using this buses in this
machine. 'addDefaultMemballoon' is also set to false since the balloon
driver wasn't really tested with the PowerNV kernel.

Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>
Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>
Signed-off-by: Daniel Henrique Barboza <danielhb413@xxxxxxxxx>
---
 src/qemu/qemu_domain.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index c81c63369c..4cf030c485 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -3684,6 +3684,15 @@ qemuDomainDefAddDefaultDevices(virQEMUDriver *driver,
          * add the definition if not already present */
         if (qemuDomainIsPSeries(def))
             addPanicDevice = true;
+
+        if (qemuDomainIsPowerNV(def)) {
+            addPCIRoot = false;
+            addDefaultUSB = false;
+            addDefaultUSBKBD = false;
+            addDefaultUSBMouse = false;
+            addDefaultMemballoon = false;
+        }
+
         break;
 
     case VIR_ARCH_ALPHA:
-- 
2.35.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux