All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tao Xu <tao3.xu@intel.com>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	rth@twiddle.net, jingqi.liu@intel.com, robert.hu@intel.com,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/1] i386: Add PKU/OSPKE on Skylake-Server CPU model
Date: Fri, 26 Oct 2018 13:53:10 +0800	[thread overview]
Message-ID: <128b40da-f34e-9a45-e798-25e33855a51f@intel.com> (raw)
In-Reply-To: <20181025132831.GG4096@habkost.net>

On 10/25/18 9:28 PM, Eduardo Habkost wrote:
> On Wed, Oct 17, 2018 at 12:48:58PM +0200, Paolo Bonzini wrote:
>> On 17/10/2018 11:30, Tao Xu wrote:
>>> As the release document ref below link (page 13):
>>> https://software.intel.com/sites/default/files/managed/c5/15/\
>>> architecture-instruction-set-extensions-programming-reference.pdf
>>>
>>> PKU is supported in Skylake Server (Only Server) and later, and
>>> on Intel(R) Xeon(R) Processor Scalable Family. OSPKE is to reads
>>> the value of PKRU (Instruction of PKU) into EAX and clears EDX.
>>> So PKU/OSPKE are supposed to be in Skylake-Server CPU model.
>>> And PKU/OSPKE 's CPUID has been exposed to QEMU. But PKU/OSPKE
>>> can't be find in Skylake-Server CPU model in the code.
>>> So this patch will fix PKU/OSPKE this issue in Skylake-Server
>>> CPU model.
>> OSPKE is not needed, since it is added automatically based on CR4 (and
>> is not set on boot).
> Correct.
>
>> Also, the guru of CPU model compatibility is Eduardo, so I'll wait for
>> him to chime in anyway.
> Sorry for taking so long to reply.  This can be safely done only
> if every host that is able to run Skylake-Server today is
> guaranteed to support PKU.  Is that the case?
>
> You'll also need Skylake-Server-*-cpu.pku=off entries on
> PC_COMPAT_3_0 to keep PKU disabled on pc-*-3.0 and older.
>
Thank you Eduardo,


But I can't find PC_COMPAT_3_0 in  include/hw/i386/pc.h. Will it exist on

QEMU 3.1 and will I add "pku=off" after QEMU 3.1  release?


Best Regard

Tao Xu

  reply	other threads:[~2018-10-26  6:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-17  9:30 [Qemu-devel] [PATCH 0/1] Add PKU/OSPKE on Skylake-Server CPU model Tao Xu
2018-10-17  9:30 ` [Qemu-devel] [PATCH 1/1] i386: " Tao Xu
2018-10-17 10:48   ` Paolo Bonzini
2018-10-25 13:28     ` Eduardo Habkost
2018-10-26  5:53       ` Tao Xu [this message]
2018-10-26  8:22         ` Eduardo Habkost
2018-10-29  6:40           ` Tao Xu

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=128b40da-f34e-9a45-e798-25e33855a51f@intel.com \
    --to=tao3.xu@intel.com \
    --cc=ehabkost@redhat.com \
    --cc=jingqi.liu@intel.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=robert.hu@intel.com \
    --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.