[pve-devel] [PATCH qemu-server] cfg2cmd: avoid using some x86 properties on other archs
Fiona Ebner
f.ebner at proxmox.com
Mon Jan 13 14:56:38 CET 2025
As reported in the enterprise support, using arch aarch64 for a VM in
combination with a new enough Windows ostype would fail:
> qemu-system-aarch64: warning: driftfix 'slew' is not available with this machine
> qemu-system-aarch64: Property 'virt-5.1-machine.hpet' not found
Conditionalize setting these properties that only exist for x86(_64)
according to the QEMU sources (and tested for aarch64 and riscv64).
Reported-by: Hannes Dürr <h.duerr at proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
PVE/QemuServer.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 5cde94a1..43008f3f 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -3901,10 +3901,10 @@ sub config_to_command {
if ($winversion >= 6) {
push @$globalFlags, 'kvm-pit.lost_tick_policy=discard';
- push @$machineFlags, 'hpet=off';
+ push @$machineFlags, 'hpet=off' if $arch eq 'x86_64';
}
- push @$rtcFlags, 'driftfix=slew' if $tdf;
+ push @$rtcFlags, 'driftfix=slew' if $tdf && $arch eq 'x86_64';
if ($conf->{startdate} && $conf->{startdate} ne 'now') {
push @$rtcFlags, "base=$conf->{startdate}";
--
2.39.5
More information about the pve-devel
mailing list