[Xen-devel] [PATCH v2 04/12] x86/altp2m: basic data structures and support routines.

2015-06-22 Thread Ed White
Add the basic data structures needed to support alternate p2m's and the functions to initialise them and tear them down. Although Intel hardware can handle 512 EPTP's per hardware thread concurrently, only 10 per domain are supported in this patch for performance reasons. The iterator in hap_enab

Re: [Xen-devel] [PATCH v2 04/12] x86/altp2m: basic data structures and support routines.

2015-06-24 Thread Andrew Cooper
On 22/06/15 19:56, Ed White wrote: > Add the basic data structures needed to support alternate p2m's and > the functions to initialise them and tear them down. > > Although Intel hardware can handle 512 EPTP's per hardware thread > concurrently, only 10 per domain are supported in this patch for >

Re: [Xen-devel] [PATCH v2 04/12] x86/altp2m: basic data structures and support routines.

2015-06-24 Thread Jan Beulich
>>> On 24.06.15 at 12:06, wrote: > On 22/06/15 19:56, Ed White wrote: >> @@ -498,6 +498,24 @@ int hap_enable(struct domain *d, u32 mode) >> goto out; >> } >> >> +/* Init alternate p2m data */ >> +if ( (d->arch.altp2m_eptp = alloc_xenheap_page()) == NULL ) > > Please use

Re: [Xen-devel] [PATCH v2 04/12] x86/altp2m: basic data structures and support routines.

2015-06-24 Thread Andrew Cooper
On 22/06/15 19:56, Ed White wrote: > diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h > index 3d8f4dc..a1529c0 100644 > --- a/xen/include/asm-x86/hvm/vcpu.h > +++ b/xen/include/asm-x86/hvm/vcpu.h > @@ -118,6 +118,13 @@ struct nestedvcpu { > > #define vcpu_nestedhvm(v)

Re: [Xen-devel] [PATCH v2 04/12] x86/altp2m: basic data structures and support routines.

2015-06-24 Thread Andrew Cooper
On 24/06/15 11:29, Andrew Cooper wrote: > On 22/06/15 19:56, Ed White wrote: >> diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h >> index 3d8f4dc..a1529c0 100644 >> --- a/xen/include/asm-x86/hvm/vcpu.h >> +++ b/xen/include/asm-x86/hvm/vcpu.h >> @@ -118,6 +118,13 @@ struc

Re: [Xen-devel] [PATCH v2 04/12] x86/altp2m: basic data structures and support routines.

2015-06-24 Thread Jan Beulich
>>> On 22.06.15 at 20:56, wrote: > --- a/xen/include/asm-x86/hvm/hvm.h > +++ b/xen/include/asm-x86/hvm/hvm.h > @@ -210,6 +210,14 @@ struct hvm_function_table { >uint32_t *ecx, uint32_t *edx); > > void (*enable_msr_exit_interception)(struct domain *d); > +

Re: [Xen-devel] [PATCH v2 04/12] x86/altp2m: basic data structures and support routines.

2015-06-24 Thread Ed White
On 06/24/2015 03:06 AM, Andrew Cooper wrote: >> diff --git a/xen/arch/x86/mm/hap/hap.c b/xen/arch/x86/mm/hap/hap.c >> index d0d3f1e..202aa42 100644 >> --- a/xen/arch/x86/mm/hap/hap.c >> +++ b/xen/arch/x86/mm/hap/hap.c >> @@ -459,7 +459,7 @@ void hap_domain_init(struct domain *d) >> int hap_enable(

Re: [Xen-devel] [PATCH v2 04/12] x86/altp2m: basic data structures and support routines.

2015-06-26 Thread Ed White
On 06/24/2015 03:29 AM, Andrew Cooper wrote: > On 22/06/15 19:56, Ed White wrote: >> diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h >> index 3d8f4dc..a1529c0 100644 >> --- a/xen/include/asm-x86/hvm/vcpu.h >> +++ b/xen/include/asm-x86/hvm/vcpu.h >> @@ -118,6 +118,13 @@

Re: [Xen-devel] [PATCH v2 04/12] x86/altp2m: basic data structures and support routines.

2015-06-27 Thread Ed White
On 06/26/2015 02:17 PM, Ed White wrote: > On 06/24/2015 03:29 AM, Andrew Cooper wrote: >> On 22/06/15 19:56, Ed White wrote: >>> diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h >>> index 3d8f4dc..a1529c0 100644 >>> --- a/xen/include/asm-x86/hvm/vcpu.h >>> +++ b/xen/incl

Re: [Xen-devel] [PATCH v2 04/12] x86/altp2m: basic data structures and support routines.

2015-06-29 Thread Andrew Cooper
On 26/06/15 22:17, Ed White wrote: > On 06/24/2015 03:29 AM, Andrew Cooper wrote: >> On 22/06/15 19:56, Ed White wrote: >>> diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h >>> index 3d8f4dc..a1529c0 100644 >>> --- a/xen/include/asm-x86/hvm/vcpu.h >>> +++ b/xen/include/a

Re: [Xen-devel] [PATCH v2 04/12] x86/altp2m: basic data structures and support routines.

2015-06-29 Thread Ed White
On 06/29/2015 06:00 AM, Andrew Cooper wrote: > On 26/06/15 22:17, Ed White wrote: >> On 06/24/2015 03:29 AM, Andrew Cooper wrote: >>> On 22/06/15 19:56, Ed White wrote: diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h index 3d8f4dc..a1529c0 100644 --