mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-05 18:36:21 +00:00
cpu config: sev type: small code style fix
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
b6d98e13f5
commit
57bc05f7df
@ -831,12 +831,15 @@ sub get_hw_capabilities {
|
|||||||
}
|
}
|
||||||
return $hw_capabilities;
|
return $hw_capabilities;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub get_amd_sev_type {
|
sub get_amd_sev_type {
|
||||||
my ($conf) = @_;
|
my ($conf) = @_;
|
||||||
|
|
||||||
return undef if !$conf->{'amd-sev'};
|
return undef if !$conf->{'amd-sev'};
|
||||||
|
|
||||||
return PVE::JSONSchema::parse_property_string($sev_fmt, $conf->{'amd-sev'})->{type};
|
my $sev = PVE::JSONSchema::parse_property_string($sev_fmt, $conf->{'amd-sev'});
|
||||||
|
|
||||||
|
return $sev->{type};
|
||||||
}
|
}
|
||||||
|
|
||||||
sub get_amd_sev_object {
|
sub get_amd_sev_object {
|
||||||
|
Loading…
Reference in New Issue
Block a user