aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/vioapic.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-11-07 15:48:10 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-11-07 15:48:10 +0000
commit1aa6e42118517949a420f1a402e9a9cd2dad273e (patch)
tree2da0a1cae47970099574f9a996424b3ec9e3d0f7 /xen/arch/x86/hvm/vioapic.c
parent25f5b0ff1569004165e5dbdf2872f4e7617a5b60 (diff)
downloadxen-1aa6e42118517949a420f1a402e9a9cd2dad273e.tar.gz
xen-1aa6e42118517949a420f1a402e9a9cd2dad273e.tar.bz2
xen-1aa6e42118517949a420f1a402e9a9cd2dad273e.zip
[HVM] VLAPIC cleanups. vlapic tsruct is statically contained
inside the vcpu structure. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/hvm/vioapic.c')
-rw-r--r--xen/arch/x86/hvm/vioapic.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/xen/arch/x86/hvm/vioapic.c b/xen/arch/x86/hvm/vioapic.c
index d470475f55..5b88280e9d 100644
--- a/xen/arch/x86/hvm/vioapic.c
+++ b/xen/arch/x86/hvm/vioapic.c
@@ -430,7 +430,6 @@ static void ioapic_deliver(hvm_vioapic_t *s, int irqno)
uint32_t deliver_bitmask;
struct vlapic *target;
-
HVM_DBG_LOG(DBG_LEVEL_IOAPIC,
"dest %x dest_mode %x delivery_mode %x vector %x trig_mode %x\n",
dest, dest_mode, delivery_mode, vector, trig_mode);
@@ -458,7 +457,7 @@ static void ioapic_deliver(hvm_vioapic_t *s, int irqno)
vector, deliver_bitmask);
if (target) {
ioapic_inj_irq(s, target, vector, trig_mode, delivery_mode);
- vcpu_kick(target->vcpu);
+ vcpu_kick(vlapic_vcpu(target));
} else
HVM_DBG_LOG(DBG_LEVEL_IOAPIC,
"null round robin mask %x vector %x delivery_mode %x\n",
@@ -482,7 +481,7 @@ static void ioapic_deliver(hvm_vioapic_t *s, int irqno)
target = s->lapic_info[bit];
if (target) {
ioapic_inj_irq(s, target, vector, trig_mode, delivery_mode);
- vcpu_kick(target->vcpu);
+ vcpu_kick(vlapic_vcpu(target));
}
}
break;