[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 05/10] xen/arm: Process pending vPCI map/unmap operations
From: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx> vPCI may map and unmap PCI device memory (BARs) being passed through which may take a lot of time. For this those operations may be deferred to be performed later, so that they can be safely preempted. Run the corresponding vPCI code while switching a vCPU. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx> --- xen/arch/arm/traps.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 8f40d0e0b6b1..1c54dc0cdd51 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -33,6 +33,7 @@ #include <xen/symbols.h> #include <xen/version.h> #include <xen/virtual_region.h> +#include <xen/vpci.h> #include <public/sched.h> #include <public/xen.h> @@ -2253,6 +2254,11 @@ static void check_for_vcpu_work(void) { struct vcpu *v = current; + local_irq_enable(); + if ( has_vpci(v->domain) && vpci_process_pending(v) ) + raise_softirq(SCHEDULE_SOFTIRQ); + local_irq_disable(); + if ( likely(!v->arch.need_flush_to_ram) ) return; -- 2.17.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |