From 424283ad1db9c4da519fac698486967e6b6557b0 Mon Sep 17 00:00:00 2001 From: Charles Arnold Date: Wed, 3 Aug 2022 08:47:02 -0400 Subject: launch_security: Use SEV-ES policy=0x07 if host supports it --- tests/data/cli/compare/virt-install-amd-sev.xml | 89 +++++++++++++++++++++++++ tests/test_cli.py | 1 + 2 files changed, 90 insertions(+) create mode 100644 tests/data/cli/compare/virt-install-amd-sev.xml (limited to 'tests') diff --git a/tests/data/cli/compare/virt-install-amd-sev.xml b/tests/data/cli/compare/virt-install-amd-sev.xml new file mode 100644 index 00000000..68b236dd --- /dev/null +++ b/tests/data/cli/compare/virt-install-amd-sev.xml @@ -0,0 +1,89 @@ + + linux2020 + 00000000-1111-2222-3333-444444444444 + + + + + + 65536 + 65536 + 2 + + hvm + /usr/share/OVMF/OVMF_CODE.fd + + + + + + + + + + + + + + + + + + + /usr/bin/qemu-system-x86_64 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /dev/urandom + + + + 0x07 + + diff --git a/tests/test_cli.py b/tests/test_cli.py index 47b59055..7d7b5a9b 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1108,6 +1108,7 @@ c.add_compare("--connect " + utils.URIs.kvm_x86_remote + " --import --disk %(EXI c.add_compare("--connect %(URI-KVM-X86)s --os-variant fedora26 --graphics spice --controller usb,model=none", "graphics-usb-disable") c.add_compare("--osinfo generic --boot uefi --disk size=1", "boot-uefi") c.add_compare("--osinfo generic --boot uefi --disk size=1 --tpm none --connect " + utils.URIs.kvm_x86_oldfirmware, "boot-uefi-oldcaps") +c.add_compare("--osinfo linux2020 --boot uefi --launchSecurity sev --connect " + utils.URIs.kvm_amd_sev, "amd-sev") c.add_invalid("--disk none --location nfs:example.com/fake --nonetworks", grep="NFS URL installs are no longer supported") c.add_invalid("--disk none --boot network --machine foobar", grep="domain type None with machine 'foobar'") -- cgit v1.2.1