summaryrefslogtreecommitdiff
path: root/virtinst
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2022-01-05 17:46:50 +0000
committerCole Robinson <crobinso@redhat.com>2022-01-11 12:04:39 -0500
commit019c621b62ac9a410f3983726a69a55fffadc517 (patch)
tree0a18324d13ff6071086b6bfb8d0f0d9c005bf399 /virtinst
parented7b8769c4d48c89ed593138171bc8dbb1ead108 (diff)
downloadvirt-manager-019c621b62ac9a410f3983726a69a55fffadc517.tar.gz
virtinst: fix check for UEFI in SEV setup
The code was only checking the manual approach to enabling UEFI, not the modern automatic approach. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'virtinst')
-rw-r--r--virtinst/domain/launch_security.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/virtinst/domain/launch_security.py b/virtinst/domain/launch_security.py
index 6eb87add..a5bcad3d 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.is_q35() is False or guest.os.loader_type != "pflash":
+ if not guest.os.is_q35() or not guest.is_uefi():
raise RuntimeError(_("SEV launch security requires a Q35 UEFI machine"))
# libvirt or QEMU might not support SEV