]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_capabilities: Probe SEV capabilities even for QEMU_CAPS_SEV_SNP_GUEST
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 21 Jun 2024 12:00:32 +0000 (14:00 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Jun 2024 12:46:00 +0000 (14:46 +0200)
commitd00816209ef1eccea9e01737fcee35bebc772c96
tree059e47a7263daa443280bbbb84806801c02ac0e2
parent3ec87cd4b8a82105ad96e1fd8bbeba9992a2bffa
qemu_capabilities: Probe SEV capabilities even for QEMU_CAPS_SEV_SNP_GUEST

While it's very unlikely to have QEMU that supports SEV-SNP but
doesn't support plain SEV, for completeness sake we ought to
query SEV capabilities if QEMU supports either. And similarly to
QEMU_CAPS_SEV_GUEST we need to clear the capability if talking to
QEMU proves SEV is not really supported.

This in turn removes the 'sev-snp-guest' capability from one of
our test cases as Peter's machine he uses to refresh capabilities
is not SEV capable. But that's okay. It's consistent with
'sev-guest' capability.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_capabilities.c
tests/qemucapabilitiesdata/caps_9.1.0_x86_64.xml