Stefano Stabellini
2010-May-28 14:45 UTC
[Xen-devel] [PATCH] xen: update_runstate_area for 32 bit PV on HVM guests
Hi all, the current implementation of update_runstate_area is unable to handle 32 bit PV on HVM guests because the check is_pv_32on64_domain doesn''t cover that case. This patch fixes it. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> --- diff -r 26c2922da53c xen/arch/x86/domain.c --- a/xen/arch/x86/domain.c Thu May 27 09:39:47 2010 +0100 +++ b/xen/arch/x86/domain.c Fri May 28 15:42:28 2010 +0100 @@ -1315,7 +1315,9 @@ return; #ifdef CONFIG_COMPAT - if ( is_pv_32on64_domain(v->domain) ) + if ( is_pv_32on64_domain(v->domain) || + (is_hvm_pv_evtchn_domain(v->domain) && + has_32bit_shinfo(v->domain)) ) { struct compat_vcpu_runstate_info info; _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jan Beulich
2010-May-28 14:54 UTC
Re: [Xen-devel] [PATCH] xen: update_runstate_area for 32 bit PV on HVM guests
>>> On 28.05.10 at 16:45, Stefano Stabellini <stefano.stabellini@eu.citrix.com> wrote: > --- a/xen/arch/x86/domain.c Thu May 27 09:39:47 2010 +0100 > +++ b/xen/arch/x86/domain.c Fri May 28 15:42:28 2010 +0100 > @@ -1315,7 +1315,9 @@ > return; > > #ifdef CONFIG_COMPAT > - if ( is_pv_32on64_domain(v->domain) ) > + if ( is_pv_32on64_domain(v->domain) || > + (is_hvm_pv_evtchn_domain(v->domain) && > + has_32bit_shinfo(v->domain)) ) > { > struct compat_vcpu_runstate_info info;Is there any reason why this cannot be just has_32bit_shinfo()? Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Stefano Stabellini
2010-May-28 15:01 UTC
Re: [Xen-devel] [PATCH] xen: update_runstate_area for 32 bit PV on HVM guests
On Fri, 28 May 2010, Jan Beulich wrote:> >>> On 28.05.10 at 16:45, Stefano Stabellini <stefano.stabellini@eu.citrix.com> wrote: > > --- a/xen/arch/x86/domain.c Thu May 27 09:39:47 2010 +0100 > > +++ b/xen/arch/x86/domain.c Fri May 28 15:42:28 2010 +0100 > > @@ -1315,7 +1315,9 @@ > > return; > > > > #ifdef CONFIG_COMPAT > > - if ( is_pv_32on64_domain(v->domain) ) > > + if ( is_pv_32on64_domain(v->domain) || > > + (is_hvm_pv_evtchn_domain(v->domain) && > > + has_32bit_shinfo(v->domain)) ) > > { > > struct compat_vcpu_runstate_info info; > > Is there any reason why this cannot be just has_32bit_shinfo()? >no, actually has_32bit_shinfo should be able to cover all cases _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2010-Jun-01 05:46 UTC
Re: [Xen-devel] [PATCH] xen: update_runstate_area for 32 bit PV on HVM guests
On 28/05/2010 16:01, "Stefano Stabellini" <Stefano.Stabellini@eu.citrix.com> wrote:>>> #ifdef CONFIG_COMPAT >>> - if ( is_pv_32on64_domain(v->domain) ) >>> + if ( is_pv_32on64_domain(v->domain) || >>> + (is_hvm_pv_evtchn_domain(v->domain) && >>> + has_32bit_shinfo(v->domain)) ) >>> { >>> struct compat_vcpu_runstate_info info; >> >> Is there any reason why this cannot be just has_32bit_shinfo()? >> > > no, actually has_32bit_shinfo should be able to cover all casesXen-unstable:21493 -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel