Skip to content

VMCS shadowing fix

Jim Mattson kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4kvm: nVMX: Add support for "VMWRITE to any supported field"arch/x86/kvm/vmx.c+39 -666 replies
2/4kvm: vmx: Introduce vmcs_read_any and vmcs_write_anyarch/x86/kvm/vmx.c+41 -322 replies
3/4kvm: nVMX: Introduce/rename enums for VMCS field encodingsarch/x86/kvm/vmx.c+36 -272 replies
4/4kvm: nVMX: Shadow "high" parts of shadowed 64-bit VMCS fieldsarch/x86/kvm/vmx.c+43 -272 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchPaolo Bonzini
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] VMCS shadowing fix

64-bit VMCS fields were not being handled properly by the VMCS shadowing code. In particular, some full-width fields (TSC_OFFSET and GUEST_PHYSICAL_ADDRESS) were being shadowed, but accesses to the high 32-bits of these fields were not. Interleaved L1 accesses to the full-width fields and the high 32-bits returned inconsistent results.

To make this cherry-pick easier, I also pulled in three other commits which are in preparation for virtualized VMCS shadowing support. I plan on submitting the patches for virtualized VMCS shadowing in the very near future.

Jim Mattson (4):
kvm: nVMX: Add support for "VMWRITE to any supported field"
kvm: vmx: Introduce vmcs_read_any and vmcs_write_any
kvm: nVMX: Introduce/rename enums for VMCS field encodings
kvm: nVMX: Shadow "high" parts of shadowed 64-bit VMCS fields

 arch/x86/kvm/vmx.c | 231 +++++++++++++++++++++++++++--------------------------
 1 file changed, 119 insertions(+), 112 deletions(-)
Signature · 1 line
2.13.2.725.g09c95d1e9-goog