unicorn/qemu
Gonglei ce71be5c05
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.)

Backports relevant parts of commit 6c69dfb67e84747cf071958594d939e845dfcc0c from qemu
2018-03-05 00:00:53 -05:00
..
accel target/arm: [tcg] Port to generic translation framework 2018-03-04 20:28:06 -05:00
crypto
default-configs
docs
fpu
hw
include tcg/s390: Use constant pool for movi 2018-03-04 22:32:04 -05:00
qapi
qobject
qom boards.h: Define new flag ignore_memory_transaction_failures 2018-03-04 21:27:15 -05:00
scripts
target i386/cpu/hyperv: support over 64 vcpus for windows guests 2018-03-05 00:00:53 -05:00
tcg tcg/mips: Fully convert tcg_target_op_def 2018-03-04 23:54:26 -05:00
util configure: Drop AIX host support 2018-03-04 21:32:40 -05:00
aarch64.h tcg: Add tcg_op_supported 2018-03-04 23:20:28 -05:00
aarch64eb.h tcg: Add tcg_op_supported 2018-03-04 23:20:28 -05:00
accel.c
arm.h tcg: Add tcg_op_supported 2018-03-04 23:20:28 -05:00
armeb.h tcg: Add tcg_op_supported 2018-03-04 23:20:28 -05:00
atomic_template.h
CODING_STYLE
configure configure: Drop AIX host support 2018-03-04 21:32:40 -05:00
COPYING
COPYING.LIB
cpu-exec-common.c
cpu-exec.c tcg: Move USE_DIRECT_JUMP discriminator to tcg/cpu/tcg-target.h 2018-03-04 21:52:35 -05:00
cpus.c
cputlb.c cputlb: Support generating CPU exceptions on memory transaction failures 2018-03-04 13:14:50 -05:00
exec.c memory: Open code FlatView rendering 2018-03-04 02:06:48 -05:00
gen_all_header.sh
glib_compat.c
HACKING
header_gen.py tcg: Add tcg_op_supported 2018-03-04 23:20:28 -05:00
ioport.c
LICENSE
m68k.h tcg: Add tcg_op_supported 2018-03-04 23:20:28 -05:00
Makefile
Makefile.objs
Makefile.target tcg: Add generic translation framework 2018-03-04 14:31:16 -05:00
memory_ldst.inc.c
memory_mapping.c
memory.c memory: Move FlatView allocation to a helper 2018-03-04 02:08:37 -05:00
mips64.h tcg: Add tcg_op_supported 2018-03-04 23:20:28 -05:00
mips64el.h tcg: Add tcg_op_supported 2018-03-04 23:20:28 -05:00
mips.h tcg: Add tcg_op_supported 2018-03-04 23:20:28 -05:00
mipsel.h tcg: Add tcg_op_supported 2018-03-04 23:20:28 -05:00
powerpc.h tcg: Add tcg_op_supported 2018-03-04 23:20:28 -05:00
qapi-schema.json
qemu-timer.c
rules.mak
softmmu_template.h cputlb: Support generating CPU exceptions on memory transaction failures 2018-03-04 13:14:50 -05:00
sparc64.h tcg: Add tcg_op_supported 2018-03-04 23:20:28 -05:00
sparc.h tcg: Add tcg_op_supported 2018-03-04 23:20:28 -05:00
tcg-runtime.c
translate-all.c tcg: Infrastructure for managing constant pools 2018-03-04 22:17:33 -05:00
translate-all.h
translate-common.c
unicorn_common.h
VERSION
vl.c
vl.h
x86_64.h tcg: Add tcg_op_supported 2018-03-04 23:20:28 -05:00