Skip to content

x86: MSR_GS_BASE and friends

Sean Christopherson kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14x86/cstart: Don't use MSR_GS_BASE in 32-bit boot codex86/cstart.S+23 -54 replies
2/14x86: msr: Exclude GS/FS_BASE MSRs from 32-bit buildsx86/msr.c+1 -10 replies
3/14x86: msr: Advertise GenuineIntel as vendor to play nice with SYSENTERx86/unittests.cfg+3 -01 reply
4/14x86: msr: Restore original MSR value after writing arbitrary test valuex86/msr.c+4 -10 replies
5/14x86: Force the compiler to retrieve exception info from per-cpu arealib/x86/desc.c+3 -30 replies
6/14x86: msr: Replace spaces with tabs in all of msr.cx86/msr.c+83 -840 replies
7/14x86: msr: Use ARRAY_SIZE() instead of open coded equivalentx86/msr.c+2 -20 replies
8/14x86: msr: Use the #defined MSR indices in favor of open coding the valuesx86/msr.c+12 -120 replies
9/14x86: msr: Drop the explicit expected valuex86/msr.c+19 -180 replies
10/14x86: msr: Add builder macros to define MSR entriesx86/msr.c+21 -530 replies
11/14x86: msr: Pass msr_info instead of doing a lookup at runtimex86/msr.c+8 -280 replies
12/14x86: msr: Verify 64-bit only MSRs fault on 32-bit hostslib/x86/processor.h x86/msr.c x86/unittests.cfg+67 -181 reply
13/14x86: msr: Test that always-canonical MSRs #GP on non-canonical valuelib/x86/processor.h x86/msr.c x86/vmx_tests.c+10 -20 replies
14/14x86: msr: Verify that EFER.SCE can be written on 32-bit vCPUsx86/msr.c+8 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [kvm-unit-tests PATCH 00/14] x86: MSR_GS_BASE and friends

Fix unit tests on 32-bit SVM, and on VMX if/when 32-bit VMX starts rejecting MSR_GS_BASE accesses.

Fix a variety of semi-related bugs in the MSR test, rework the test to make the code maintainable, and expand its test coverage.

Sean Christopherson (14):
x86/cstart: Don't use MSR_GS_BASE in 32-bit boot code
x86: msr: Exclude GS/FS_BASE MSRs from 32-bit builds
x86: msr: Advertise GenuineIntel as vendor to play nice with SYSENTER
x86: msr: Restore original MSR value after writing arbitrary test
value
x86: Force the compiler to retrieve exception info from per-cpu area
x86: msr: Replace spaces with tabs in all of msr.c
x86: msr: Use ARRAY_SIZE() instead of open coded equivalent
x86: msr: Use the #defined MSR indices in favor of open coding the
values
x86: msr: Drop the explicit expected value
x86: msr: Add builder macros to define MSR entries
x86: msr: Pass msr_info instead of doing a lookup at runtime
x86: msr: Verify 64-bit only MSRs fault on 32-bit hosts
x86: msr: Test that always-canonical MSRs #GP on non-canonical value
x86: msr: Verify that EFER.SCE can be written on 32-bit vCPUs

 lib/x86/desc.c      |   6 +-
 lib/x86/processor.h |  24 +++++++
 x86/cstart.S        |  28 ++++++--
 x86/msr.c           | 163 +++++++++++++++++++++-----------------------
 x86/unittests.cfg   |   5 ++
 x86/vmx_tests.c     |   2 -
 6 files changed, 131 insertions(+), 97 deletions(-)
Signature · 1 line
2.31.1.498.g6c1eba8ee3d-goog