linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xen pvhvm: do not remap pirqs onto evtchns if !xen_have_vector_callback
@ 2012-01-30 14:31 Stefano Stabellini
  2012-01-31 16:27 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 5+ messages in thread
From: Stefano Stabellini @ 2012-01-30 14:31 UTC (permalink / raw)
  To: xen-devel; +Cc: linux-kernel, Stefano Stabellini, Konrad Rzeszutek Wilk


Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>

diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c
index 492ade8..d99346e 100644
--- a/arch/x86/pci/xen.c
+++ b/arch/x86/pci/xen.c
@@ -374,7 +374,7 @@ int __init pci_xen_init(void)
 
 int __init pci_xen_hvm_init(void)
 {
-	if (!xen_feature(XENFEAT_hvm_pirqs))
+	if (!xen_have_vector_callback || !xen_feature(XENFEAT_hvm_pirqs))
 		return 0;
 
 #ifdef CONFIG_ACPI

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] xen pvhvm: do not remap pirqs onto evtchns if !xen_have_vector_callback
  2012-01-30 14:31 [PATCH] xen pvhvm: do not remap pirqs onto evtchns if !xen_have_vector_callback Stefano Stabellini
@ 2012-01-31 16:27 ` Konrad Rzeszutek Wilk
  2012-01-31 16:40   ` Stefano Stabellini
  0 siblings, 1 reply; 5+ messages in thread
From: Konrad Rzeszutek Wilk @ 2012-01-31 16:27 UTC (permalink / raw)
  To: Stefano Stabellini; +Cc: xen-devel, linux-kernel

On Mon, Jan 30, 2012 at 02:31:46PM +0000, Stefano Stabellini wrote:
> 
> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>

So the xen_have_vector_callback looks to be only set by

1398         if (xen_feature(XENFEAT_hvm_callback_vector))
1399                 xen_have_vector_callback = 1;

So could this be just done via a check for that instead?


> 
> diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c
> index 492ade8..d99346e 100644
> --- a/arch/x86/pci/xen.c
> +++ b/arch/x86/pci/xen.c
> @@ -374,7 +374,7 @@ int __init pci_xen_init(void)
>  
>  int __init pci_xen_hvm_init(void)
>  {
> -	if (!xen_feature(XENFEAT_hvm_pirqs))
> +	if (!xen_have_vector_callback || !xen_feature(XENFEAT_hvm_pirqs))
>  		return 0;
>  
>  #ifdef CONFIG_ACPI
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] xen pvhvm: do not remap pirqs onto evtchns if !xen_have_vector_callback
  2012-01-31 16:27 ` Konrad Rzeszutek Wilk
@ 2012-01-31 16:40   ` Stefano Stabellini
  2012-02-01  1:08     ` [Xen-devel] " Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 5+ messages in thread
From: Stefano Stabellini @ 2012-01-31 16:40 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: Stefano Stabellini, xen-devel, linux-kernel

On Tue, 31 Jan 2012, Konrad Rzeszutek Wilk wrote:
> On Mon, Jan 30, 2012 at 02:31:46PM +0000, Stefano Stabellini wrote:
> > 
> > Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> 
> So the xen_have_vector_callback looks to be only set by
> 
> 1398         if (xen_feature(XENFEAT_hvm_callback_vector))
> 1399                 xen_have_vector_callback = 1;
> 
> So could this be just done via a check for that instead?
> 

Sure, but I don't think it would be better: using
xen_have_vector_callback is more consistent and give us the flexibility
of allowing users to manually override it in the future.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xen-devel] [PATCH] xen pvhvm: do not remap pirqs onto evtchns if !xen_have_vector_callback
  2012-01-31 16:40   ` Stefano Stabellini
@ 2012-02-01  1:08     ` Konrad Rzeszutek Wilk
  2012-02-01 11:09       ` Stefano Stabellini
  0 siblings, 1 reply; 5+ messages in thread
From: Konrad Rzeszutek Wilk @ 2012-02-01  1:08 UTC (permalink / raw)
  To: Stefano Stabellini; +Cc: Konrad Rzeszutek Wilk, xen-devel, linux-kernel

On Tue, Jan 31, 2012 at 04:40:26PM +0000, Stefano Stabellini wrote:
> On Tue, 31 Jan 2012, Konrad Rzeszutek Wilk wrote:
> > On Mon, Jan 30, 2012 at 02:31:46PM +0000, Stefano Stabellini wrote:
> > > 
> > > Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> > 
> > So the xen_have_vector_callback looks to be only set by
> > 
> > 1398         if (xen_feature(XENFEAT_hvm_callback_vector))
> > 1399                 xen_have_vector_callback = 1;
> > 
> > So could this be just done via a check for that instead?
> > 
> 
> Sure, but I don't think it would be better: using
> xen_have_vector_callback is more consistent and give us the flexibility
> of allowing users to manually override it in the future.

ok. applied. Hm, I was thinking to put on stable@kernel.org - but how
far back should it go? 2.6.37?
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xen-devel] [PATCH] xen pvhvm: do not remap pirqs onto evtchns if !xen_have_vector_callback
  2012-02-01  1:08     ` [Xen-devel] " Konrad Rzeszutek Wilk
@ 2012-02-01 11:09       ` Stefano Stabellini
  0 siblings, 0 replies; 5+ messages in thread
From: Stefano Stabellini @ 2012-02-01 11:09 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk
  Cc: Stefano Stabellini, Konrad Rzeszutek Wilk, xen-devel, linux-kernel

On Wed, 1 Feb 2012, Konrad Rzeszutek Wilk wrote:
> On Tue, Jan 31, 2012 at 04:40:26PM +0000, Stefano Stabellini wrote:
> > On Tue, 31 Jan 2012, Konrad Rzeszutek Wilk wrote:
> > > On Mon, Jan 30, 2012 at 02:31:46PM +0000, Stefano Stabellini wrote:
> > > > 
> > > > Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> > > 
> > > So the xen_have_vector_callback looks to be only set by
> > > 
> > > 1398         if (xen_feature(XENFEAT_hvm_callback_vector))
> > > 1399                 xen_have_vector_callback = 1;
> > > 
> > > So could this be just done via a check for that instead?
> > > 
> > 
> > Sure, but I don't think it would be better: using
> > xen_have_vector_callback is more consistent and give us the flexibility
> > of allowing users to manually override it in the future.
> 
> ok. applied. Hm, I was thinking to put on stable@kernel.org - but how
> far back should it go? 2.6.37?

Yes, I think is 2.6.37 when we introduced using XENFEAT_hvm_pirqs.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-01 11:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-30 14:31 [PATCH] xen pvhvm: do not remap pirqs onto evtchns if !xen_have_vector_callback Stefano Stabellini
2012-01-31 16:27 ` Konrad Rzeszutek Wilk
2012-01-31 16:40   ` Stefano Stabellini
2012-02-01  1:08     ` [Xen-devel] " Konrad Rzeszutek Wilk
2012-02-01 11:09       ` Stefano Stabellini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).