Messages in this thread |  | | From | "Huang, Kai" <> | | Subject | Re: [PATCH v3 08/40] KVM: x86: Add mode-aware versions of kvm_<reg>_{read,write}() helpers | | Date | Wed, 3 Jun 2026 11:15:40 +0000 |
| |
On Fri, 2026-05-29 at 15:21 -0700, Sean Christopherson wrote: > Make kvm_<reg>_{read,write}() mode-aware (where the value is truncated to > 32 bits if the vCPU isn't in 64-bit mode), and convert all the intentional > "raw" accesses to kvm_<reg>_{read,write}_raw() versions. To avoid > confusion and bikeshedding over whether or not explicit 32-bit accesses > should use the "raw" or mode-aware variants, add and use "e" versions, e.g. > for things like RDMSR, WRMSR, and CPUID, where the instruction uses only > bits 31:0, regardless of mode. > > No functional change intended (all use of "e" versions is for cases where > the value is already truncated due to bouncing through a u32). > > Cc: Binbin Wu <binbin.wu@linux.intel.com> > Cc: Kai Huang <kai.huang@intel.com> > Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com> > Signed-off-by: Sean Christopherson <seanjc@google.com> >
Reviewed-by: Kai Huang <kai.huang@intel.com>
|  |