]> git.proxmox.com Git - qemu-server.git/commitdiff
followup: move hv_tlbflush under 3.1 machine feature guard
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 24 Jun 2019 15:23:42 +0000 (17:23 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 24 Jun 2019 15:23:44 +0000 (17:23 +0200)
while it really should not pose an issue for live migrations lets be
on the safe side and also add this only with 3.1 or later machines

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm

index fb0bd770fc346725a13a0656bdc80e4e5a84a758..8339e298dfd67a28dbe555051406605084517508 100644 (file)
@@ -7175,11 +7175,8 @@ sub add_hyperv_enlightenments {
            push @$cpuFlags , 'hv_stimer';
        }
 
-       if (qemu_machine_feature_enabled ($machine_type, $kvmver, 3, 0)) {
-           push @$cpuFlags , 'hv_tlbflush';
-       }
-
        if (qemu_machine_feature_enabled ($machine_type, $kvmver, 3, 1)) {
+           push @$cpuFlags , 'hv_tlbflush';
            push @$cpuFlags , 'hv_ipi';
            push @$cpuFlags , 'hv_evmcs';
        }