mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-19 05:01:07 +00:00
CPUConfig: add add_cpu_json_properties()
Useful for APIs and docs. Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
parent
b63f34b8a1
commit
1b7824d349
@ -293,6 +293,16 @@ sub write_config {
|
|||||||
$class->SUPER::write_config($filename, $cfg);
|
$class->SUPER::write_config($filename, $cfg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub add_cpu_json_properties {
|
||||||
|
my ($prop) = @_;
|
||||||
|
|
||||||
|
foreach my $opt (keys %$cpu_fmt) {
|
||||||
|
$prop->{$opt} = $cpu_fmt->{$opt};
|
||||||
|
}
|
||||||
|
|
||||||
|
return $prop;
|
||||||
|
}
|
||||||
|
|
||||||
sub get_cpu_models {
|
sub get_cpu_models {
|
||||||
my ($include_custom) = @_;
|
my ($include_custom) = @_;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user