--- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -10888,6 +10888,9 @@ bool kvm_arch_dy_runnable(struct kvm_vcp bool kvm_arch_vcpu_in_kernel(struct kvm_vcpu *vcpu) { + if (vcpu->arch.guest_state_protected) + return true; + return vcpu->arch.preempted_in_kernel; }