qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/3] target/i386: Add the immediate form MSR access instruction support
@ 2025-01-03  8:48 Xin Li (Intel)
  2025-01-03  8:48 ` [PATCH v1 1/3] target/i386: Remove FRED dependency on WRMSRNS Xin Li (Intel)
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Xin Li (Intel) @ 2025-01-03  8:48 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, mtosatti, xin3.li

The immediate form of MSR access instructions are primarily motivated by
performance, not code size: by having the MSR number in an immediate, it
is available *much* earlier in the pipeline, which allows the hardware
much more leeway about how a particular MSR is handled.

This new CPU feature is advertised through bit 5 of CPUID.7.1.ECX, which
needs to be added as a new CPU feature word.

WRMSRNS doesn't become a required feature for FERD, and Linux has removed
the dependency, as such remove the dependency from Qemu.


Xin Li (Intel) (3):
  target/i386: Remove FRED dependency on WRMSRNS
  target/i386: Add a new CPU feature word for CPUID.7.1.ECX
  target/i386: Add the immediate form MSR access instruction support

 target/i386/cpu.c | 27 ++++++++++++++++++++++-----
 target/i386/cpu.h |  4 ++++
 2 files changed, 26 insertions(+), 5 deletions(-)


base-commit: 1ada452efc7d8f8bf42cd5e8a2af1b4ac9167a1f
-- 
2.47.1



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

end of thread, other threads:[~2025-05-29 17:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-03  8:48 [PATCH v1 0/3] target/i386: Add the immediate form MSR access instruction support Xin Li (Intel)
2025-01-03  8:48 ` [PATCH v1 1/3] target/i386: Remove FRED dependency on WRMSRNS Xin Li (Intel)
2025-05-26  3:09   ` Xiaoyao Li
2025-01-03  8:48 ` [PATCH v1 2/3] target/i386: Add a new CPU feature word for CPUID.7.1.ECX Xin Li (Intel)
2025-05-26  3:47   ` Xiaoyao Li
2025-05-29  6:56     ` Xin Li
2025-05-29  7:13     ` Paolo Bonzini
2025-05-29  7:25       ` Xiaoyao Li
2025-05-29 17:26       ` Xin Li
2025-01-03  8:48 ` [PATCH v1 3/3] target/i386: Add the immediate form MSR access instruction support Xin Li (Intel)
2025-04-16  3:25 ` [PATCH v1 0/3] " Xin Li
2025-05-23  1:23   ` Xin Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).