From 9f278f28f5b52770a3a5b8ecfe727e650e2b6797 Mon Sep 17 00:00:00 2001 From: Robert Mustacchi Date: Fri, 3 Jun 2011 11:37:58 -0700 Subject: HVM-281 kvm_lapic_t should be defined in kvm_lapic.h HVM-282 kvm_lapic_set_vapic_addr definition should match Linux HVM-283 qemu build is broken --- kvm_lapic.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'kvm_lapic.c') diff --git a/kvm_lapic.c b/kvm_lapic.c index 54c46ae..a2db3b3 100644 --- a/kvm_lapic.c +++ b/kvm_lapic.c @@ -32,6 +32,7 @@ #include "kvm.h" #include "apicdef.h" #include "kvm_ioapic.h" +#include "kvm_lapic.h" #include "irq.h" int __apic_accept_irq(struct kvm_lapic *, int, int, int, int); @@ -1300,12 +1301,12 @@ kvm_lapic_sync_to_vapic(struct kvm_vcpu *vcpu) } int -kvm_lapic_set_vapic_addr(struct kvm_vcpu *vcpu, struct kvm_vapic_addr *addr) +kvm_lapic_set_vapic_addr(struct kvm_vcpu *vcpu, gpa_t vapic_addr) { if (!irqchip_in_kernel(vcpu->kvm)) return (EINVAL); - vcpu->arch.apic->vapic_addr = addr->vapic_addr; + vcpu->arch.apic->vapic_addr = vapic_addr; return (0); } -- cgit v1.2.3