From: Paolo Bonzini <pbonzini@redhat.com>
To: Stefan Weil <sw@weilnetz.de>, qemu-devel@nongnu.org
Cc: Eduardo Habkost <ehabkost@redhat.com>,
Like Xu <like.xu@linux.intel.com>,
Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH for 4.1] Fix broken build with WHPX enabled
Date: Fri, 12 Jul 2019 19:49:59 +0200 [thread overview]
Message-ID: <69209a2c-80d2-dd79-beb6-9e5b47ae58a0@redhat.com> (raw)
In-Reply-To: <20190712132611.20411-1-sw@weilnetz.de>
On 12/07/19 15:26, Stefan Weil wrote:
> 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;
> }
>
Queued, thanks.
Paolo
prev parent reply other threads:[~2019-07-12 17:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=69209a2c-80d2-dd79-beb6-9e5b47ae58a0@redhat.com \
--to=pbonzini@redhat.com \
--cc=ehabkost@redhat.com \
--cc=like.xu@linux.intel.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=sw@weilnetz.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).