mbox series

[kvm-unit-tests,0/3] x86/msr: Add tests for command MSRs

Message ID 20230328050231.3008531-1-seanjc@google.com (mailing list archive)
Headers show
Series x86/msr: Add tests for command MSRs | expand

Message

Sean Christopherson March 28, 2023, 5:02 a.m. UTC
Add testcases for the write-only MSRs IA32_PRED_CMD and IA32_FLUSH_CMD.

Note, this depends on the x2APIC MSR series[*].  Unless someone yells,
I'll include both in a pull request later this week.

[*] https://lkml.kernel.org/r/20230107011737.577244-1-seanjc%40google.com

Sean Christopherson (3):
  x86: Add define for MSR_IA32_PRED_CMD's PRED_CMD_IBPB (bit 0)
  x86/msr: Add testcases for MSR_IA32_PRED_CMD and its IBPB command
  x86/msr: Add testcases for MSR_IA32_FLUSH_CMD and its L1D_FLUSH
    command

 lib/x86/msr.h       |  4 ++++
 lib/x86/processor.h |  1 +
 x86/msr.c           | 38 ++++++++++++++++++++++++++++++++++++++
 x86/vmexit.c        |  2 +-
 4 files changed, 44 insertions(+), 1 deletion(-)


base-commit: fa1bddcf1565fc90b98f760358ff74d741fd9a2f

Comments

Sean Christopherson April 5, 2023, 11 p.m. UTC | #1
On Mon, 27 Mar 2023 22:02:28 -0700, Sean Christopherson wrote:
> Add testcases for the write-only MSRs IA32_PRED_CMD and IA32_FLUSH_CMD.
> 
> Note, this depends on the x2APIC MSR series[*].  Unless someone yells,
> I'll include both in a pull request later this week.
> 
> [*] https://lkml.kernel.org/r/20230107011737.577244-1-seanjc%40google.com
> 
> [...]

Applied to kvm-x86 next, thanks!

[1/3] x86: Add define for MSR_IA32_PRED_CMD's PRED_CMD_IBPB (bit 0)
      https://github.com/kvm-x86/kvm-unit-tests/commit/056a56f6e8d0
[2/3] x86/msr: Add testcases for MSR_IA32_PRED_CMD and its IBPB command
      https://github.com/kvm-x86/kvm-unit-tests/commit/835268e75d12
[3/3] x86/msr: Add testcases for MSR_IA32_FLUSH_CMD and its L1D_FLUSH command
      https://github.com/kvm-x86/kvm-unit-tests/commit/408e9eaae1c6

--
https://github.com/kvm-x86/kvm-unit-tests/tree/next