From: Paolo Bonzini <pbonzini@redhat.com>
To: "Wu, Feng" <feng.wu@intel.com>,
"gleb@redhat.com" <gleb@redhat.com>,
"hpa@zytor.com" <hpa@zytor.com>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: [PATCH v3 2/4] KVM: Add SMAP support when setting CR4
Date: Tue, 01 Apr 2014 11:26:39 +0200 [thread overview]
Message-ID: <533A864F.10708@redhat.com> (raw)
In-Reply-To: <E959C4978C3B6342920538CF579893F001E91DDA@SHSMSX104.ccr.corp.intel.com>
Il 01/04/2014 03:17, Wu, Feng ha scritto:
>>> A fault is considered
>>> > > + * as a SMAP violation if all of the following
>>> > > + * conditions are ture:
>>> > > + * - X86_CR4_SMAP is set in CR4
>>> > > + * - An user page is accessed
>>> > > + * - Page fault in kernel mode
>>> > > + * - !(CPL<3 && X86_EFLAGS_AC is set)
>> >
>> > - if CPL < 3, EFLAGS.AC is clear
> Should it be "if CPL =3 or EFLAGS.AC is clear" ?
>
What I meant is "if CPL < 3, EFLAGS.AC must also be clear", but your
version is fine too. You choose!
Paolo
next prev parent reply other threads:[~2014-04-01 9:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-31 18:08 [PATCH v3 0/4] KVM: enable Intel SMAP for KVM Feng Wu
2014-03-31 18:08 ` [PATCH v3 1/4] KVM: Remove SMAP bit from CR4_RESERVED_BITS Feng Wu
2014-03-31 18:08 ` [PATCH v3 2/4] KVM: Add SMAP support when setting CR4 Feng Wu
2014-03-31 13:30 ` Paolo Bonzini
2014-04-01 1:17 ` Wu, Feng
2014-04-01 9:26 ` Paolo Bonzini [this message]
2014-04-01 11:54 ` Wu, Feng
2014-03-31 18:08 ` [PATCH v3 3/4] KVM: Disable SMAP for guests in EPT realmode and EPT unpaging mode Feng Wu
2014-03-31 18:08 ` [PATCH v3 4/4] KVM: expose SMAP feature to guest Feng Wu
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=533A864F.10708@redhat.com \
--to=pbonzini@redhat.com \
--cc=feng.wu@intel.com \
--cc=gleb@redhat.com \
--cc=hpa@zytor.com \
--cc=kvm@vger.kernel.org \
/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.