[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH RFC 04/10] x86/passthrough: arch_pci_clean_irqs is HVM only
Provide a !CONFIG_HVM stub in preparation for future usage. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- xen/drivers/passthrough/x86/pci.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xen/drivers/passthrough/x86/pci.c b/xen/drivers/passthrough/x86/pci.c index e0a7e473b1..cdba905466 100644 --- a/xen/drivers/passthrough/x86/pci.c +++ b/xen/drivers/passthrough/x86/pci.c @@ -4,6 +4,8 @@ #include <asm/hvm/irq.h> +#ifdef CONFIG_HVM + static int pci_clean_dpci_irq(struct domain *d, struct hvm_pirq_dpci *pirq_dpci, void *arg) { @@ -52,6 +54,16 @@ int arch_pci_clean_irqs(struct domain *d) return 0; } +#else + +int arch_pci_clean_irqs(struct domain *d) +{ + ASSERT(!is_hvm_domain(d)); + return 0; +} + +#endif + /* * Local variables: * mode: C -- 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |