diff options
Diffstat (limited to 'include/linux/kvm_host.h')
| -rw-r--r-- | include/linux/kvm_host.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 27bd53b69080..82af5d0b996e 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
| @@ -982,11 +982,16 @@ static inline int kvm_ioeventfd(struct kvm *kvm, struct kvm_ioeventfd *args) | |||
| 982 | #endif /* CONFIG_HAVE_KVM_EVENTFD */ | 982 | #endif /* CONFIG_HAVE_KVM_EVENTFD */ |
| 983 | 983 | ||
| 984 | #ifdef CONFIG_KVM_APIC_ARCHITECTURE | 984 | #ifdef CONFIG_KVM_APIC_ARCHITECTURE |
| 985 | static inline bool kvm_vcpu_is_bsp(struct kvm_vcpu *vcpu) | 985 | static inline bool kvm_vcpu_is_reset_bsp(struct kvm_vcpu *vcpu) |
| 986 | { | 986 | { |
| 987 | return vcpu->kvm->bsp_vcpu_id == vcpu->vcpu_id; | 987 | return vcpu->kvm->bsp_vcpu_id == vcpu->vcpu_id; |
| 988 | } | 988 | } |
| 989 | 989 | ||
| 990 | static inline bool kvm_vcpu_is_bsp(struct kvm_vcpu *vcpu) | ||
| 991 | { | ||
| 992 | return (vcpu->arch.apic_base & MSR_IA32_APICBASE_BSP) != 0; | ||
| 993 | } | ||
| 994 | |||
| 990 | bool kvm_vcpu_compatible(struct kvm_vcpu *vcpu); | 995 | bool kvm_vcpu_compatible(struct kvm_vcpu *vcpu); |
| 991 | 996 | ||
| 992 | #else | 997 | #else |
