Re: [Xen-devel] [PATCH v2 14/23] x86/mm: put nested p2m code under CONFIG_HVM

2018-08-28 Thread Jan Beulich
>>> On 28.08.18 at 10:40, wrote: > On Mon, Aug 27, 2018 at 09:56:24AM -0600, Jan Beulich wrote: >> >>> On 26.08.18 at 14:19, wrote: >> > --- a/xen/arch/x86/domain.c >> > +++ b/xen/arch/x86/domain.c >> > @@ -1689,7 +1689,8 @@ void context_switch(struct vcpu *prev, struct vcpu >> > *next) >> >

Re: [Xen-devel] [PATCH v2 14/23] x86/mm: put nested p2m code under CONFIG_HVM

2018-08-28 Thread Wei Liu
On Mon, Aug 27, 2018 at 09:56:24AM -0600, Jan Beulich wrote: > >>> On 26.08.18 at 14:19, wrote: > > --- a/xen/arch/x86/domain.c > > +++ b/xen/arch/x86/domain.c > > @@ -1689,7 +1689,8 @@ void context_switch(struct vcpu *prev, struct vcpu > > *next) > > { > > _update_runstate_area(pre

Re: [Xen-devel] [PATCH v2 14/23] x86/mm: put nested p2m code under CONFIG_HVM

2018-08-27 Thread Jan Beulich
>>> On 26.08.18 at 14:19, wrote: > --- a/xen/arch/x86/domain.c > +++ b/xen/arch/x86/domain.c > @@ -1689,7 +1689,8 @@ void context_switch(struct vcpu *prev, struct vcpu > *next) > { > _update_runstate_area(prev); > vpmu_switch_from(prev); > -np2m_schedule(NP2M_SCHEDL

[Xen-devel] [PATCH v2 14/23] x86/mm: put nested p2m code under CONFIG_HVM

2018-08-26 Thread Wei Liu
These functions are only useful for nested hvm, which isn't enabled when CONFIG_HVM is false. Enclose relevant code in CONFIG_HVM. Guard np2m_schedule with nestedhvm_enabled. Signed-off-by: Wei Liu --- xen/arch/x86/domain.c | 6 -- xen/arch/x86/mm/p2m.c | 6 ++ 2 files changed, 10 inser