mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
Fix broken build with WHPX enabled
Signed-off-by: Stefan Weil <sw@weilnetz.de> Message-Id: <20190712132611.20411-1-sw@weilnetz.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
838ec1177c
commit
f2b143a281
1 changed files with 2 additions and 2 deletions
|
@ -1396,7 +1396,7 @@ static int whpx_accel_init(MachineState *ms)
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&prop, 0, sizeof(WHV_PARTITION_PROPERTY));
|
memset(&prop, 0, sizeof(WHV_PARTITION_PROPERTY));
|
||||||
prop.ProcessorCount = smp_cpus;
|
prop.ProcessorCount = ms->smp.cpus;
|
||||||
hr = whp_dispatch.WHvSetPartitionProperty(
|
hr = whp_dispatch.WHvSetPartitionProperty(
|
||||||
whpx->partition,
|
whpx->partition,
|
||||||
WHvPartitionPropertyCodeProcessorCount,
|
WHvPartitionPropertyCodeProcessorCount,
|
||||||
|
@ -1405,7 +1405,7 @@ static int whpx_accel_init(MachineState *ms)
|
||||||
|
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
error_report("WHPX: Failed to set partition core count to %d,"
|
error_report("WHPX: Failed to set partition core count to %d,"
|
||||||
" hr=%08lx", smp_cores, hr);
|
" hr=%08lx", ms->smp.cores, hr);
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue