diff options
author | Gleb Natapov <gleb@redhat.com> | 2009-06-09 14:56:27 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 07:32:52 +0200 |
commit | 1ed0ce000a6c20c36ec649e32fc24393ef418ed8 (patch) | |
tree | 85a78c27d972c64e8bd9ff6b429d398977f8ac8b /arch/x86/kvm/lapic.c | |
parent | KVM: Introduce kvm_vcpu_is_bsp() function. (diff) | |
download | linux-1ed0ce000a6c20c36ec649e32fc24393ef418ed8.tar.xz linux-1ed0ce000a6c20c36ec649e32fc24393ef418ed8.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index b0661300eb28..b1694dc45729 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) apic->lapic_timer.timer.function = kvm_timer_fn; apic->lapic_timer.t_ops = &lapic_timer_ops; apic->lapic_timer.kvm = vcpu->kvm; - apic->lapic_timer.vcpu_id = vcpu->vcpu_id; + apic->lapic_timer.vcpu = vcpu; apic->base_address = APIC_DEFAULT_PHYS_BASE; vcpu->arch.apic_base = APIC_DEFAULT_PHYS_BASE; |