All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eduardo Habkost <ehabkost@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Richard Henderson <rth@twiddle.net>,
	qemu-stable@nongnu.org
Subject: Re: [Qemu-devel] [PULL 8/8] i386: Disable TOPOEXT by default on "-cpu host"
Date: Tue, 21 Aug 2018 16:25:19 -0300	[thread overview]
Message-ID: <20180821192518.GL18995@localhost.localdomain> (raw)
In-Reply-To: <20180817013400.13353-9-ehabkost@redhat.com>

CCing qemu-stable.

On Thu, Aug 16, 2018 at 10:34:00PM -0300, Eduardo Habkost wrote:
> Enabling TOPOEXT is always allowed, but it can't be enabled
> blindly by "-cpu host" because it may make guests crash if the
> rest of the cache topology information isn't provided or isn't
> consistent.
> 
> This addresses the bug reported at:
> https://bugzilla.redhat.com/show_bug.cgi?id=1613277
> 
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> Message-Id: <20180809221852.15285-1-ehabkost@redhat.com>
> Tested-by: Richard W.M. Jones <rjones@redhat.com>
> Reviewed-by: Babu Moger <babu.moger@amd.com>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> ---
>  target/i386/cpu.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/target/i386/cpu.c b/target/i386/cpu.c
> index 52a77a7d08..4e4fe8fa8b 100644
> --- a/target/i386/cpu.c
> +++ b/target/i386/cpu.c
> @@ -849,6 +849,12 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
>          },
>          .cpuid_eax = 0x80000001, .cpuid_reg = R_ECX,
>          .tcg_features = TCG_EXT3_FEATURES,
> +        /*
> +         * TOPOEXT is always allowed but can't be enabled blindly by
> +         * "-cpu host", as it requires consistent cache topology info
> +         * to be provided so it doesn't confuse guests.
> +         */
> +        .no_autoenable_flags = CPUID_EXT3_TOPOEXT,
>      },
>      [FEAT_C000_0001_EDX] = {
>          .feat_names = {
> -- 
> 2.18.0.rc1.1.g3f1ff2140
> 
> 

-- 
Eduardo

  reply	other threads:[~2018-08-21 19:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-17  1:33 [Qemu-devel] [PULL 0/8] x86 queue, 2018-08-16 Eduardo Habkost
2018-08-17  1:33 ` [Qemu-devel] [PULL 1/8] docs: add guidance on configuring CPU models for x86 Eduardo Habkost
2018-08-17  1:33 ` [Qemu-devel] [PULL 2/8] i386: Add new MSR indices for IA32_PRED_CMD and IA32_ARCH_CAPABILITIES Eduardo Habkost
2018-08-17  1:33 ` [Qemu-devel] [PULL 3/8] i386: Add CPUID bit and feature words for IA32_ARCH_CAPABILITIES MSR Eduardo Habkost
2018-08-17  1:33 ` [Qemu-devel] [PULL 4/8] i386: Add CPUID bit for PCONFIG Eduardo Habkost
2018-08-17  1:33 ` [Qemu-devel] [PULL 5/8] i386: Add CPUID bit for WBNOINVD Eduardo Habkost
2018-08-17  1:33 ` [Qemu-devel] [PULL 6/8] i386: Add new CPU model Icelake-{Server, Client} Eduardo Habkost
2018-08-17  1:33 ` [Qemu-devel] [PULL 7/8] target-i386: adds PV_SEND_IPI CPUID feature bit Eduardo Habkost
2018-08-17  1:34 ` [Qemu-devel] [PULL 8/8] i386: Disable TOPOEXT by default on "-cpu host" Eduardo Habkost
2018-08-21 19:25   ` Eduardo Habkost [this message]
2018-08-17 11:49 ` [Qemu-devel] [PULL 0/8] x86 queue, 2018-08-16 Peter Maydell
2018-08-17 23:33 ` no-reply

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=20180821192518.GL18995@localhost.localdomain \
    --to=ehabkost@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-stable@nongnu.org \
    --cc=rth@twiddle.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.