projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
838ec11
)
Fix broken build with WHPX enabled
author
Stefan Weil
<sw@weilnetz.de>
Fri, 12 Jul 2019 13:26:11 +0000
(15:26 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 15 Jul 2019 09:20:43 +0000
(11:20 +0200)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Message-Id: <
20190712132611
.20411-1-sw@weilnetz.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/whpx-all.c
patch
|
blob
|
history
diff --git
a/target/i386/whpx-all.c
b/target/i386/whpx-all.c
index 31d47320e45c5a55457fe8db395531c9b3dc3450..ed95105eaec98dc90480b7f30480c47368d4265c 100644
(file)
--- a/
target/i386/whpx-all.c
+++ b/
target/i386/whpx-all.c
@@
-1396,7
+1396,7
@@
static int whpx_accel_init(MachineState *ms)
}
memset(&prop, 0, sizeof(WHV_PARTITION_PROPERTY));
- prop.ProcessorCount =
smp_
cpus;
+ prop.ProcessorCount =
ms->smp.
cpus;
hr = whp_dispatch.WHvSetPartitionProperty(
whpx->partition,
WHvPartitionPropertyCodeProcessorCount,
@@
-1405,7
+1405,7
@@
static int whpx_accel_init(MachineState *ms)
if (FAILED(hr)) {
error_report("WHPX: Failed to set partition core count to %d,"
- " hr=%08lx",
smp_
cores, hr);
+ " hr=%08lx",
ms->smp.
cores, hr);
ret = -EINVAL;
goto error;
}