[virt-manager RFC PATCH 1/3] Fix check for q35 machine type

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

 



This fix could be included independent of the other patches.

---
 virtinst/domain/launch_security.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtinst/domain/launch_security.py b/virtinst/domain/launch_security.py
index 1d8410c1..6eb87add 100644
--- a/virtinst/domain/launch_security.py
+++ b/virtinst/domain/launch_security.py
@@ -30,7 +30,7 @@ class DomainLaunchSecurity(XMLBuilder):
         # exercise for pc-i440fx to make SEV work, AMD recommends Q35 anyway
         # NOTE: at some point both of these platform checks should be put in
         # validate(), once that accepts the 'guest' instance
-        if guest.os.machine != "q35" or guest.os.loader_type != "pflash":
+        if guest.os.is_q35() is False or guest.os.loader_type != "pflash":
             raise RuntimeError(_("SEV launch security requires a Q35 UEFI machine"))
 
         # libvirt or QEMU might not support SEV
-- 
2.26.1






[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux