]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
i386/cpu/hyperv: support over 64 vcpus for windows guests
authorGonglei <arei.gonglei@huawei.com>
Mon, 11 Sep 2017 15:20:27 +0000 (23:20 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 Sep 2017 14:20:49 +0000 (16:20 +0200)
commit6c69dfb67e84747cf071958594d939e845dfcc0c
tree97b7f03024f43bce6ac98056a344d1446e70da2f
parent05cb8ed5467ff0f154f9356fa0cdcf7fca4b17f6
i386/cpu/hyperv: support over 64 vcpus for windows guests

Starting with Windows Server 2012 and Windows 8, if
CPUID.40000005.EAX contains a value of -1, Windows assumes specific
limit to the number of VPs. In this case, Windows Server 2012
guest VMs may use more than 64 VPs, up to the maximum supported
number of processors applicable to the specific Windows
version being used.

https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/reference/tlfs

For compatibility, Let's introduce a new property for X86CPU,
named "x-hv-max-vps" as Eduardo's suggestion, and set it
to 0x40 before machine 2.10.

(The "x-" prefix indicates that the property is not supposed to
be a stable user interface.)

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Message-Id: <1505143227-14324-1-git-send-email-arei.gonglei@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/hw/i386/pc.h
target/i386/cpu.c
target/i386/cpu.h
target/i386/kvm.c