Re: [Xen-devel] [PATCH V8 2/5] x86/hvm: pkeys, add pkeys support for guest_walk_tables

2016-02-03 Thread Han, Huaitong
On Wed, 2016-02-03 at 02:43 -0700, Jan Beulich wrote: > > > > On 02.02.16 at 08:35, 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

Re: [Xen-devel] [PATCH V8 2/5] x86/hvm: pkeys, add pkeys support for guest_walk_tables

2016-02-03 Thread Jan Beulich
>>> On 02.02.16 at 08:35, 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 ≤

[Xen-devel] [PATCH V8 2/5] x86/hvm: pkeys, add pkeys support for guest_walk_tables

2016-02-01 Thread Huaitong Han
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);