summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-09-16 12:25:57 +0300
committerMarcelo Tosatti <mtosatti@redhat.com>2009-09-16 16:00:49 -0300
commit028c437314566fda8b4fa427e04fe59d1cf18c71 (patch)
tree3907db3a9c14dbe64879e768e9b593eb319e9cb7
parenttest: vm: map mmio 1:1 (diff)
downloadqemu-kvm-028c437314566fda8b4fa427e04fe59d1cf18c71.tar.gz
qemu-kvm-028c437314566fda8b4fa427e04fe59d1cf18c71.tar.bz2
qemu-kvm-028c437314566fda8b4fa427e04fe59d1cf18c71.zip
test: apic: use 1:1 mapping for apic
This allows the apic code to be run early, before virtual memory is set up. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-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 504def2ad..63d326d45 100644
--- a/kvm/user/test/x86/apic.c
+++ b/kvm/user/test/x86/apic.c
@@ -426,8 +426,8 @@ int main()
{
setup_vm();
- g_apic = vmap(0xfee00000, 0x1000);
- g_ioapic = vmap(0xfec00000, 0x1000);
+ g_apic = (void *)0xfee00000;
+ g_ioapic = (void *)0xfec00000;
test_lapic_existence();