qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH for 4.1] Fix broken build with WHPX enabled
@ 2019-07-12 13:26 Stefan Weil
  2019-07-12 14:34 ` Philippe Mathieu-Daudé
  2019-07-12 17:49 ` Paolo Bonzini
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Weil @ 2019-07-12 13:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Stefan Weil, Eduardo Habkost, Like Xu,
	Richard Henderson

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 target/i386/whpx-all.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/i386/whpx-all.c b/target/i386/whpx-all.c
index 31d47320e4..ed95105eae 100644
--- 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;
     }
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-07-15 16:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-12 13:26 [Qemu-devel] [PATCH for 4.1] Fix broken build with WHPX enabled Stefan Weil
2019-07-12 14:34 ` Philippe Mathieu-Daudé
2019-07-15 16:51   ` Justin Terry (VM) via Qemu-devel
2019-07-12 17:49 ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).