[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH for 4.1] Fix broken build with WHPX enabled
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH for 4.1] Fix broken build with WHPX enabled |
Date: |
Fri, 12 Jul 2019 19:49:59 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 |
On 12/07/19 15:26, Stefan Weil wrote:
> Signed-off-by: Stefan Weil <address@hidden>
> ---
> 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;
> }
>
Queued, thanks.
Paolo