aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/lapic.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-06-09 08:56:27 -0400
committerAvi Kivity <avi@redhat.com>2009-09-10 01:32:52 -0400
commit1ed0ce000a6c20c36ec649e32fc24393ef418ed8 (patch)
tree85a78c27d972c64e8bd9ff6b429d398977f8ac8b /arch/x86/kvm/lapic.c
parentc5af89b68abb26eea5e745f33228f4d672f115e5 (diff)
KVM: Use pointer to vcpu instead of vcpu_id in timer code.
Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/lapic.c')
-rw-r--r--arch/x86/kvm/lapic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
index b0661300eb2..b1694dc4572 100644
--- a/arch/x86/kvm/lapic.c
+++ b/arch/x86/kvm/lapic.c
@@ -950,7 +950,7 @@ int kvm_create_lapic(struct kvm_vcpu *vcpu)
950 apic->lapic_timer.timer.function = kvm_timer_fn; 950 apic->lapic_timer.timer.function = kvm_timer_fn;
951 apic->lapic_timer.t_ops = &lapic_timer_ops; 951 apic->lapic_timer.t_ops = &lapic_timer_ops;
952 apic->lapic_timer.kvm = vcpu->kvm; 952 apic->lapic_timer.kvm = vcpu->kvm;
953 apic->lapic_timer.vcpu_id = vcpu->vcpu_id; 953 apic->lapic_timer.vcpu = vcpu;
954 954
955 apic->base_address = APIC_DEFAULT_PHYS_BASE; 955 apic->base_address = APIC_DEFAULT_PHYS_BASE;
956 vcpu->arch.apic_base = APIC_DEFAULT_PHYS_BASE; 956 vcpu->arch.apic_base = APIC_DEFAULT_PHYS_BASE;