diff options
| author | Marcelo Tosatti <mtosatti@redhat.com> | 2009-06-17 09:07:59 -0400 |
|---|---|---|
| committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:33:04 -0400 |
| commit | d3efc8efdbaa81e9db3089810fcd526fccba234d (patch) | |
| tree | 6ceb847fdf285151edef5ae59854b31ea1598c19 | |
| parent | 2023a29cbe34139afcea8f65f8aef78c325c5dc0 (diff) | |
KVM: use vcpu_id instead of bsp_vcpu pointer in kvm_vcpu_is_bsp
Change kvm_vcpu_is_bsp to use vcpu_id instead of bsp_vcpu pointer, which
is only initialized at the end of kvm_vm_ioctl_create_vcpu.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
| -rw-r--r-- | include/linux/kvm_host.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 0604d56f6ee..4ea42c95053 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
| @@ -538,7 +538,7 @@ static inline void kvm_irqfd_release(struct kvm *kvm) {} | |||
| 538 | #ifdef CONFIG_KVM_APIC_ARCHITECTURE | 538 | #ifdef CONFIG_KVM_APIC_ARCHITECTURE |
| 539 | static inline bool kvm_vcpu_is_bsp(struct kvm_vcpu *vcpu) | 539 | static inline bool kvm_vcpu_is_bsp(struct kvm_vcpu *vcpu) |
| 540 | { | 540 | { |
| 541 | return vcpu->kvm->bsp_vcpu == vcpu; | 541 | return vcpu->kvm->bsp_vcpu_id == vcpu->vcpu_id; |
| 542 | } | 542 | } |
| 543 | #endif | 543 | #endif |
| 544 | #endif | 544 | #endif |
