Re: [PATCH 09/11] KVM: vmx: always initialize HOST_{FS,GS}_BASE to zero during setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 23, 2018 at 12:33 PM Sean Christopherson
<sean.j.christopherson@xxxxxxxxx> wrote:
>
> The HOST_{FS,GS}_BASE fields are guaranteed to be written prior to
> VMENTER, by way of vmx_prepare_switch_to_guest().  Initialize the
> fields to zero for 64-bit kernels instead of pulling the base values
> from their respective MSRs.  In addition to eliminating two RDMSRs,
> vmx_prepare_switch_to_guest() can safely assume the initial value of
> the fields is zero in all cases.
>
> Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>

Reviewed-by: Peter Shier <pshier@xxxxxxxxxx>
Tested-by: Peter Shier <pshier@xxxxxxxxxx>



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux