There is no 'kvm' CPU flag for aarch64 CPU types.
Signed-off-by: Fiona Ebner <[email protected]>
---
src/PVE/QemuServer/CPUConfig.pm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/PVE/QemuServer/CPUConfig.pm b/src/PVE/QemuServer/CPUConfig.pm
index dfbe4546..825e691a 100644
--- a/src/PVE/QemuServer/CPUConfig.pm
+++ b/src/PVE/QemuServer/CPUConfig.pm
@@ -277,7 +277,9 @@ my $cpu_fmt = {
optional => 1,
},
hidden => {
- description => "Do not identify as a KVM virtual machine.",
+ description =>
+ "Do not identify as a KVM virtual machine. Only affects vCPUs with
x86-64"
+ . " architecture.",
type => 'boolean',
optional => 1,
default => 0,
@@ -835,7 +837,7 @@ sub get_cpu_options {
reason => "error if requested CPU settings not available",
};
}
- if ($kvm_off) {
+ if ($kvm_off && $arch eq 'x86_64') {
$pve_forced_flags->{'kvm'} = {
value => "off",
reason => "hide KVM virtualization from guest",
--
2.47.3
_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel