• Jim Mattson's avatar
    KVM: nVMX: Restore the VMCS12 offsets for v4.0 fields · b348e793
    Jim Mattson authored
    Changing the VMCS12 layout will break save/restore compatibility with
    older kvm releases once the KVM_{GET,SET}_NESTED_STATE ioctls are
    accepted upstream. Google has already been using these ioctls for some
    time, and we implore the community not to disturb the existing layout.
    
    Move the four most recently added fields to preserve the offsets of
    the previously defined fields and reserve locations for the vmread and
    vmwrite bitmaps, which will be used in the virtualization of VMCS
    shadowing (to improve the performance of double-nesting).
    Signed-off-by: default avatarJim Mattson <jmattson@google.com>
    Reviewed-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    [Kept the SDM order in vmcs_field_to_offset_table. - Radim]
    Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
    b348e793
vmx.c 362 KB