On Mon, Jan 30, 2023 at 08:57:16PM +0000, Kechen Lu wrote: >> On Sat, Jan 21, 2023 at 02:07:37AM +0000, Kechen Lu wrote: >> >+static void svm_update_disabled_exits(struct kvm_vcpu *vcpu) >> >> Is it possible to call this function on vCPU creation, i.e., consolidate >> initialization and runtime toggling? >> > >Chao, can you elaborate on this? If I understand correctly, >you mean replacing the current redundant code on vCPU creation >for checking the xxx_in_guest and set intercept, while instead, calling this >svm/vmx_update_disabled_exits()? That's exactly what I mean. >Yeah, I think this makes sense to >me.