Message ID | 20180723193250.13555-1-sean.j.christopherson@intel.com (mailing list archive) |
---|---|
Headers | show |
Series | KVM: vmx: optimize VMWRITEs to host FS/GS fields | expand |
On 23/07/2018 21:32, Sean Christopherson wrote: > Conceptually, this series is fairly simple: the host's FS/GS selector > and base values rarely change, so only update their corresponding VMCS > fields when necessary. VMWRITE takes ~27 cycles on modern hardware, > i.e. eliminating writes to HOST_{FS,GS}_{SEL,BASE} can save upwards of > ~100 cycles when reloading a vCPU after an exit to userspace. > > The actual optimization is implemented in the final two patches. The > preceding nine patches are a mix of refactoring and cleansing; KVM's > FS/GS related code in particular has become a bit crusty as KVM has > evolved over the years. Very nice, queued. Paolo