--- zzzz-none-000/linux-3.10.107/arch/x86/kvm/kvm_cache_regs.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/x86/kvm/kvm_cache_regs.h 2021-02-04 17:41:59.000000000 +0000 @@ -99,4 +99,9 @@ return vcpu->arch.hflags & HF_GUEST_MASK; } +static inline bool is_smm(struct kvm_vcpu *vcpu) +{ + return vcpu->arch.hflags & HF_SMM_MASK; +} + #endif