mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
KVM: x86: use inlines instead of macros for is_sev_*guest
This helps avoiding more embarrassment to this maintainer, but also will catch mistakes more easily for others. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
92cdeac6a4
commit
01f217fa8a
|
|
@ -422,9 +422,19 @@ static __always_inline bool is_sev_snp_guest(struct kvm_vcpu *vcpu)
|
|||
return ____sev_snp_guest(vcpu->kvm);
|
||||
}
|
||||
#else
|
||||
#define is_sev_guest(vcpu) false
|
||||
#define is_sev_es_guest(vcpu) false
|
||||
#define is_sev_snp_guest(vcpu) false
|
||||
static __always_inline bool is_sev_guest(struct kvm_vcpu *vcpu)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
static __always_inline bool is_sev_es_guest(struct kvm_vcpu *vcpu)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static __always_inline bool is_sev_snp_guest(struct kvm_vcpu *vcpu)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline bool ghcb_gpa_is_registered(struct vcpu_svm *svm, u64 val)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user