• Paolo Bonzini's avatar
    KVM: vmx: shadow more fields that are read/written on every vmexits · c5d167b2
    Paolo Bonzini authored
    Compared to when VMCS shadowing was added to KVM, we are reading/writing
    a few more fields: the PML index, the interrupt status and the preemption
    timer value.  The first two are because we are exposing more features
    to nested guests, the preemption timer is simply because we have grown
    a new optimization.  Adding them to the shadow VMCS field lists reduces
    the cost of a vmexit by about 1000 clock cycles for each field that exists
    on bare metal.
    
    On the other hand, the guest BNDCFGS and TSC offset are not written on
    fast paths, so remove them.
    Suggested-by: default avatarJim Mattson <jmattson@google.com>
    Cc: Jim Mattson <jmattson@google.com>
    Cc: Wanpeng Li <wanpeng.li@hotmail.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
    c5d167b2
vmx.c 346 KB