Skip to contentSkip to conversation

xen pvhvm: do not remap pirqs onto evtchns if !xen_have_vector_callback

PATCH In review Stefano Stabellini 3 participants 5 messages Jan 30, 2012 – Feb 1, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen pvhvm: do not remap pirqs onto evtchns if !xen_have_vector_callback

arch/x86/pci/xen.c +1 -1
index 492ade8..d99346e 100644
@@ -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
#1 lore raw
Quoted 2 lines · Stefano Stabellini

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?

Quoted 19 lines
arch/x86/pci/xen.c +1 -2
index 492ade8..d99346e 100644
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
Quoted 11 lines · Konrad Rzeszutek Wilk
Quoted 2 lines · Stefano Stabellini

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.

#3 lore raw
Quoted 10 lines · Stefano Stabellini
Quoted 9 lines · Konrad Rzeszutek Wilk
Quoted 2 lines · Stefano Stabellini

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;

Quoted 6 lines
Quoted 2 lines

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 [email protected] - but how far back should it go? 2.6.37?

Quoted 5 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#4 lore raw
Quoted 14 lines · Konrad Rzeszutek Wilk
Quoted 13 lines · Stefano Stabellini
Quoted 11 lines · Konrad Rzeszutek Wilk
Quoted 2 lines · Stefano Stabellini

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?

Quoted 6 lines
Quoted 3 lines

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 [email protected] - but how far back should it go? 2.6.37?

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