aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/vmsi.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-11-18 11:16:36 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-11-18 11:16:36 +0000
commit5f8902540cff4f5a69218f3cdd04caf5a0028ee8 (patch)
tree46353fab9124865cef26978d00f27627974e63c8 /xen/arch/x86/hvm/vmsi.c
parenteab9e6e242d4698c015a7f3785e8fd67b44b3843 (diff)
downloadxen-5f8902540cff4f5a69218f3cdd04caf5a0028ee8.tar.gz
xen-5f8902540cff4f5a69218f3cdd04caf5a0028ee8.tar.bz2
xen-5f8902540cff4f5a69218f3cdd04caf5a0028ee8.zip
x86, hvm: Implement interrupt routing to least priority processor.
Instead of round robin the vcpu with the lowest processor priority is selected for the interrupt. If multiple vcpus share the same low priority then interrupts are distributed between those round robin. Signed-off-by: Juergen Gross <juergen.gross@fujitsu-siemens.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/hvm/vmsi.c')
-rw-r--r--xen/arch/x86/hvm/vmsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/vmsi.c b/xen/arch/x86/hvm/vmsi.c
index 6eefb61bfa..cc9e9adde5 100644
--- a/xen/arch/x86/hvm/vmsi.c
+++ b/xen/arch/x86/hvm/vmsi.c
@@ -152,7 +152,7 @@ int vmsi_deliver(struct domain *d, int pirq)
{
case dest_LowestPrio:
{
- target = apic_round_robin(d, vector, deliver_bitmask);
+ target = apic_lowest_prio(d, deliver_bitmask);
if ( target != NULL )
vmsi_inj_irq(d, target, vector, trig_mode, delivery_mode);
else