On Thu, 2024-11-21 at 19:57 +0800, Yan Zhao wrote: > > +static void tdx_no_vcpus_enter_start(struct kvm *kvm) > +{ I wonder if an mmu write lock assert here would be excessive. > + kvm_make_all_cpus_request(kvm, KVM_REQ_NO_VCPU_ENTER_INPROGRESS); > +} > + > +static void tdx_no_vcpus_enter_stop(struct kvm *kvm) > +{ > + struct kvm_vcpu *vcpu; > + unsigned long i; > + > + kvm_for_each_vcpu(i, vcpu, kvm) > + kvm_clear_request(KVM_REQ_NO_VCPU_ENTER_INPROGRESS, vcpu); > +} > +