Wire up PVE::API2::Qemu::Sev from qemu-server, which exposes the SEV chip ID and reported SNP TCB security patch levels. Signed-off-by: Christian Ludwig --- PVE/API2/Capabilities.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PVE/API2/Capabilities.pm b/PVE/API2/Capabilities.pm index 30b03c2d..43d67fbe 100644 --- a/PVE/API2/Capabilities.pm +++ b/PVE/API2/Capabilities.pm @@ -9,6 +9,7 @@ use PVE::RESTHandler; use PVE::API2::Qemu::CPU; use PVE::API2::Qemu::CPUFlags; use PVE::API2::Qemu::Machine; +use PVE::API2::Qemu::Sev; use PVE::API2::NodeCapabilities::Qemu::Migration; use base qw(PVE::RESTHandler); @@ -28,6 +29,11 @@ __PACKAGE__->register_method({ path => 'qemu/machines', }); +__PACKAGE__->register_method({ + subclass => "PVE::API2::Qemu::Sev", + path => 'qemu/sev', +}); + __PACKAGE__->register_method({ subclass => 'PVE::API2::NodeCapabilities::Qemu::Migration', path => 'qemu/migration', @@ -94,6 +100,7 @@ __PACKAGE__->register_method({ { name => 'cpu-flags' }, { name => 'machines' }, { name => 'migration' }, + { name => 'sev' }, ]; return $result; -- 2.34.1