followup: move hv_tlbflush under 3.1 machine feature guard

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>
This commit is contained in:
Thomas Lamprecht 2019-06-24 17:23:42 +02:00
parent 392dfbf51e
commit 0b05530b56

View 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';
}