From: "Han, Huaitong" <huaitong.han@intel.com> To: "JBeulich@suse.com" <JBeulich@suse.com> Cc: "george.dunlap@eu.citrix.com" <george.dunlap@eu.citrix.com>, "andrew.cooper3@citrix.com" <andrew.cooper3@citrix.com>, "keir@xen.org" <keir@xen.org>, "tim@xen.org" <tim@xen.org>, "xen-devel@lists.xen.org" <xen-devel@lists.xen.org> Subject: Re: [PATCH V8 2/5] x86/hvm: pkeys, add pkeys support for guest_walk_tables Date: Wed, 3 Feb 2016 10:05:05 +0000 [thread overview] Message-ID: <1454493915.4350.12.camel@intel.com> (raw) In-Reply-To: <56B1D9C902000078000CDDBF@prv-mh.provo.novell.com> On Wed, 2016-02-03 at 02:43 -0700, Jan Beulich wrote: > > > > On 02.02.16 at 08:35, <huaitong.han@intel.com> wrote: > > Protection keys define a new 4-bit protection key field(PKEY) in > > bits 62:59 > > of > > leaf entries of the page tables. > > > > PKRU register defines 32 bits, there are 16 domains and 2 attribute > > bits per > > domain in pkru, for each i (0 ≤ i ≤ 15), PKRU[2i] is the access > > -disable bit > > for > > protection key i (ADi); PKRU[2i+1] is the write-disable bit for > > protection > > key > > i (WDi). PKEY is index to a defined domain. > > > > A fault is considered as a PKU violation if all of the following > > conditions > > are > > true: > > 1.CR4_PKE=1. > > 2.EFER_LMA=1. > > 3.Page is present with no reserved bit violations. > > 4.The access is not an instruction fetch. > > 5.The access is to a user page. > > 6.PKRU.AD=1 > > or The access is a data write and PKRU.WD=1 > > and either CR0.WP=1 or it is a user access. > > > > Signed-off-by: Huaitong Han <huaitong.han@intel.com> > > Reviewed-by: Jan Beulich <jbeulich@suse.com> > albeit ... > > > Changes in v8: > > *Abstract out _write_cr4. > > ... I'm not happy about the chose name and will try to remember > to change it to e.g. raw_write_cr4(). Names starting with an > underscore and a lower case letter are reserved to symbols > local to a given translation unit, which in my reading doesn't fit > with them getting placed in header files. It will be updated in V9. > > Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-02-03 10:05 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-02-02 7:35 [PATCH V8 0/5] x86/hvm: pkeys, add memory protection-key support Huaitong Han 2016-02-02 7:35 ` [PATCH V8 1/5] x86/hvm: pkeys, disable pkeys for guests in non-paging mode Huaitong Han 2016-02-02 7:35 ` [PATCH V8 2/5] x86/hvm: pkeys, add pkeys support for guest_walk_tables Huaitong Han 2016-02-03 9:43 ` Jan Beulich 2016-02-03 10:05 ` Han, Huaitong [this message] 2016-02-02 7:35 ` [PATCH V8 3/5] x86/hvm: pkeys, add xstate support for pkeys Huaitong Han 2016-02-02 7:35 ` [PATCH V8 4/5] xen/mm: Clean up pfec handling in gva_to_gfn Huaitong Han 2016-02-02 7:35 ` [PATCH V8 5/5] x86/hvm: pkeys, add pkeys support for cpuid handling Huaitong Han 2016-02-03 9:50 ` Jan Beulich 2016-02-03 10:04 ` Han, Huaitong 2016-02-03 11:05 ` Jan Beulich
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=1454493915.4350.12.camel@intel.com \ --to=huaitong.han@intel.com \ --cc=JBeulich@suse.com \ --cc=andrew.cooper3@citrix.com \ --cc=george.dunlap@eu.citrix.com \ --cc=keir@xen.org \ --cc=tim@xen.org \ --cc=xen-devel@lists.xen.org \ --subject='Re: [PATCH V8 2/5] x86/hvm: pkeys, add pkeys support for guest_walk_tables' \ /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
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.