Re: [RFC PATCH v1 10/15] KVM: VMX: Use WRMSRNS or its immediate form when available

From: Xin Li
Date: Sat Apr 12 2025 - 00:30:17 EST


On 4/11/2025 1:50 PM, H. Peter Anvin wrote:
This is quite hideous. I have no objection to optimizing __vmx_vcpu_run(), but
I would much prefer that a macro like this live in generic code, and that it be
generic. It should be easy enough to provide an assembly friendly equivalent to
__native_wrmsr_constant().
Will do.
This should be coming anyway, right?

Absolutely.

Totally stupid me: we have it ready to use here, but ...