[pve-devel] [PATCH 1/2] hv_vendor_id : for winversion >= 6 , not >=7.
Alexandre Derumier
aderumier at odiso.com
Fri Nov 11 09:32:10 CET 2016
as It was previously.
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/QemuServer.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 7965c05..c3376a4 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -6245,6 +6245,8 @@ sub add_hyperv_enlighments {
return if $winversion < 6;
return if $bios && $bios eq 'ovmf' && $winversion < 8;
+ push @$cpuFlags , 'hv_vendor_id=proxmox' if $gpu_passthrough;
+
if (qemu_machine_feature_enabled ($machine_type, $kvmver, 2, 3)) {
push @$cpuFlags , 'hv_spinlocks=0x1fff';
push @$cpuFlags , 'hv_vapic';
@@ -6261,7 +6263,6 @@ sub add_hyperv_enlighments {
if ($winversion >= 7) {
push @$cpuFlags , 'hv_relaxed';
- push @$cpuFlags , 'hv_vendor_id=proxmox' if $gpu_passthrough;
}
}
--
2.1.4
More information about the pve-devel
mailing list