aboutsummaryrefslogtreecommitdiff
path: root/kvm
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-09-16 12:25:52 +0300
committerMarcelo Tosatti <mtosatti@redhat.com>2009-09-16 16:00:47 -0300
commitbafdb3fd2e6891d2bf89dba8acc75dc1fd723fb1 (patch)
tree3cb70b6c369a36c07872fa7b4f973cff7f6ec13e /kvm
parenttest: Use function table for APIC access (diff)
downloadqemu-kvm-bafdb3fd2e6891d2bf89dba8acc75dc1fd723fb1.tar.gz
qemu-kvm-bafdb3fd2e6891d2bf89dba8acc75dc1fd723fb1.tar.bz2
qemu-kvm-bafdb3fd2e6891d2bf89dba8acc75dc1fd723fb1.zip
test: use new apic_icr_write() to issue IPI
Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'kvm')
-rw-r--r--kvm/user/test/x86/apic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvm/user/test/x86/apic.c b/kvm/user/test/x86/apic.c
index 72dd963f3..fdeec4c5e 100644
--- a/kvm/user/test/x86/apic.c
+++ b/kvm/user/test/x86/apic.c
@@ -260,8 +260,8 @@ static void test_self_ipi(void)
set_idt_entry(vec, self_ipi_isr);
irq_enable();
- apic_write(APIC_ICR,
- APIC_DEST_SELF | APIC_DEST_PHYSICAL | APIC_DM_FIXED | vec);
+ apic_icr_write(APIC_DEST_SELF | APIC_DEST_PHYSICAL | APIC_DM_FIXED | vec,
+ 0);
asm volatile ("nop");
report("self ipi", ipi_count == 1);
}