summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Terry (VM)2018-03-14 15:52:42 +0100
committerPaolo Bonzini2018-03-26 14:37:12 +0200
commit60168541dab015f71b1a2f5e70df3c0fe44d91c4 (patch)
tree8e0c7c3926c841dffe8d3954bbe5815d588670e8
parentWHPX fix WHvGetCapability out WrittenSizeInBytes (diff)
downloadqemu-60168541dab015f71b1a2f5e70df3c0fe44d91c4.tar.gz
qemu-60168541dab015f71b1a2f5e70df3c0fe44d91c4.tar.xz
qemu-60168541dab015f71b1a2f5e70df3c0fe44d91c4.zip
WHPX fix WHvSetPartitionProperty in PropertyCode
This fixes a breaking change to WHvSetPartitionProperty to pass the 'in' PropertyCode on function invocation introduced in Windows Insider SDK 17110. Usage of this indicates the PropertyCode of the opaque PropertyBuffer passed in on function invocation. Also fixes the removal of the PropertyCode parameter from the WHV_PARTITION_PROPERTY struct as it is now passed to the function directly. Signed-off-by: Justin Terry (VM) <juterry@microsoft.com> Message-Id: <1521039163-138-3-git-send-email-juterry@microsoft.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--target/i386/whpx-all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/whpx-all.c b/target/i386/whpx-all.c
index 2080d58c4c..63e6e1b6f2 100644
--- a/target/i386/whpx-all.c
+++ b/target/i386/whpx-all.c
@@ -1278,9 +1278,9 @@ static int whpx_accel_init(MachineState *ms)
}
memset(&prop, 0, sizeof(WHV_PARTITION_PROPERTY));
- prop.PropertyCode = WHvPartitionPropertyCodeProcessorCount;
prop.ProcessorCount = smp_cpus;
hr = WHvSetPartitionProperty(whpx->partition,
+ WHvPartitionPropertyCodeProcessorCount,
&prop,
sizeof(WHV_PARTITION_PROPERTY));