]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tools: load CPU count and CPU SKU from libvirt
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 6 Oct 2022 13:34:46 +0000 (14:34 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 15 Nov 2022 11:09:30 +0000 (11:09 +0000)
commit273c40889966526233c77dd4803d0822146e22b0
tree300b652f7ba786066df6b0f8b4d6d62512927a97
parent676df5b358795d0d7914348bc0fd6b90e8030c5f
tools: load CPU count and CPU SKU from libvirt

When validating a SEV-ES guest, we need to know the CPU count and VMSA
state. We can get the CPU count directly from libvirt's guest info. The
VMSA state can be constructed automatically if we query the CPU SKU from
host capabilities XML. Neither of these is secure, however, so this
behaviour is restricted.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
docs/manpages/virt-qemu-sev-validate.rst
tools/virt-qemu-sev-validate