From: Eduardo Habkost <ehabkost@redhat.com>
To: Babu Moger <babu.moger@amd.com>
Cc: mst@redhat.com, marcel.apfelbaum@gmail.com, pbonzini@redhat.com,
rth@twiddle.net, qemu-devel@nongnu.org, mtosatti@redhat.com,
kvm@vger.kernel.org, kash@tripleback.net, geoff@hostfission.com
Subject: Re: [Qemu-devel] [PATCH v16 2/3] i386: Enable TOPOEXT feature on AMD EPYC CPU
Date: Thu, 21 Jun 2018 15:29:20 -0300 [thread overview]
Message-ID: <20180621182920.GW7451@localhost.localdomain> (raw)
In-Reply-To: <1529443919-67509-3-git-send-email-babu.moger@amd.com>
On Tue, Jun 19, 2018 at 05:31:58PM -0400, Babu Moger wrote:
> Enable TOPOEXT feature on EPYC CPU. This is required to support
> hyperthreading on VM guests. Also extend xlevel to 0x8000001E.
>
> Disable topoext on PC_COMPAT_2_12 and keep xlevel 0x8000000a.
>
> Signed-off-by: Babu Moger <babu.moger@amd.com>
> ---
> include/hw/i386/pc.h | 8 ++++++++
> target/i386/cpu.c | 10 ++++++----
> 2 files changed, 14 insertions(+), 4 deletions(-)
>
> diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
> index fc8dedc..d0ebeb9 100644
> --- a/include/hw/i386/pc.h
> +++ b/include/hw/i386/pc.h
> @@ -303,6 +303,14 @@ bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
> .driver = TYPE_X86_CPU,\
> .property = "legacy-cache",\
> .value = "on",\
> + },{\
> + .driver = TYPE_X86_CPU,\
> + .property = "topoext",\
> + .value = "off",\
> + },{\
> + .driver = "EPYC-" TYPE_X86_CPU,\
> + .property = "xlevel",\
> + .value = stringify(0x8000000a),\
> },
EPYC-IBPB is missing, I will add it when committing. Thanks!
--
Eduardo
next prev parent reply other threads:[~2018-06-21 18:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-19 21:31 [Qemu-devel] [PATCH v16 0/3] i386: Enable TOPOEXT to support hyperthreading on AMD CPU Babu Moger
2018-06-19 21:31 ` [Qemu-devel] [PATCH v16 1/3] i386: Fix up the Node id for CPUID_8000_001E Babu Moger
2018-06-21 18:28 ` Eduardo Habkost
2018-06-19 21:31 ` [Qemu-devel] [PATCH v16 2/3] i386: Enable TOPOEXT feature on AMD EPYC CPU Babu Moger
2018-06-21 18:29 ` Eduardo Habkost [this message]
2018-06-19 21:31 ` [Qemu-devel] [PATCH v16 3/3] i386: Remove generic SMT thread check Babu Moger
2018-06-21 18:31 ` Eduardo Habkost
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=20180621182920.GW7451@localhost.localdomain \
--to=ehabkost@redhat.com \
--cc=babu.moger@amd.com \
--cc=geoff@hostfission.com \
--cc=kash@tripleback.net \
--cc=kvm@vger.kernel.org \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=mtosatti@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@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 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).