All of lore.kernel.org
 help / color / mirror / Atom feed
* MSR access API uses in KVM x86
@ 2025-04-21 17:21 Xin Li
  2025-04-22 14:40 ` Sean Christopherson
  0 siblings, 1 reply; 4+ messages in thread
From: Xin Li @ 2025-04-21 17:21 UTC (permalink / raw)
  To: Sean Christopherson, Paolo Bonzini
  Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, H. Peter Anvin,
	Ingo Molnar

It looks to me that MSR access API uses in KVM x86 are NOT consistent;
sometimes {wr,rd}msrl() are used and sometimes native_{wr,rd}msrl() are
used.

Was there a reason that how a generic or native MSR API was chosen?

In my opinion KVM should use the native MSR APIs, which can streamline
operations and potentially improve performance by avoiding the overhead
associated with generic MSR API indirect calls when CONFIG_XEN_PV=y.

No?

Thanks!
     Xin



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-04-23  9:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-21 17:21 MSR access API uses in KVM x86 Xin Li
2025-04-22 14:40 ` Sean Christopherson
2025-04-22 14:59   ` Juergen Gross
2025-04-23  9:07   ` Xin Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.