Re: [PATCH 2/3] KVM: x86: move kvm_inject_gp up from kvm_handle_invpcid to callers

From: Paolo Bonzini
Date: Tue Feb 02 2021 - 12:51:16 EST


On 02/02/21 18:38, Sean Christopherson wrote:
IMO, this isn't an improvement. For flows that can't easily be consolidated to x86.c, e.g. CRs (and DRs?), I agree it makes sense to use kvm_complete_insn_gp(), but this feels forced. What about a pure refactoring of kvm_handle_invpcid() to get a similar effect?

Yes, makes sense.

Paolo