xen pvhvm: do not remap pirqs onto evtchns if !xen_have_vector_callback
PATCH 1/1 xen pvhvm: do not remap pirqs onto evtchns if !xen_have_vector_callback
arch/x86/pci/xen.c +1 -1
@@ -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
Quoted 2 lines · Stefano Stabellini
Signed-off-by Stefano Stabellini <[email protected]>
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@@ -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/
Quoted 11 lines · Konrad Rzeszutek Wilk
Quoted 2 lines · Stefano Stabellini
Signed-off-by Stefano Stabellini <[email protected]>So the
xen_have_vector_callbacklooks to be only set by1398 if (
xen_feature(XENFEAT_hvm_callback_vector))
1399xen_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.
Quoted 10 lines · Stefano Stabellini
Quoted 9 lines · Konrad Rzeszutek Wilk
Quoted 2 lines · Stefano Stabellini
Signed-off-by Stefano Stabellini <[email protected]>So the
xen_have_vector_callbacklooks to be only set by1398 if (
xen_feature(XENFEAT_hvm_callback_vector))
1399xen_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_callbackis 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
Quoted 14 lines · Konrad Rzeszutek Wilk
Quoted 13 lines · Stefano Stabellini
Quoted 11 lines · Konrad Rzeszutek Wilk
Quoted 2 lines · Stefano Stabellini
Signed-off-by Stefano Stabellini <[email protected]>So the
xen_have_vector_callbacklooks to be only set by1398 if (
xen_feature(XENFEAT_hvm_callback_vector))
1399xen_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_callbackis 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.