• Paolo Bonzini's avatar
    KVM: x86: move SMM exit to a new file · f1554150
    Paolo Bonzini authored
    Some users of KVM implement the UEFI variable store through a paravirtual
    device that does not require the "SMM lockbox" component of edk2, and
    would like to compile out system management mode.  In preparation for
    that, move the SMM exit code out of emulate.c and into a new file.
    
    The code is still written as a series of invocations of the emulator
    callbacks, but the two exiting_smm and leave_smm callbacks are merged
    into one, and all the code from em_rsm is now part of the callback.
    This removes all knowledge of the format of the SMM save state area
    from the emulator.  Further patches will clean up the code and
    invoke KVM's own functions to access control registers, descriptor
    caches, etc.
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Reviewed-by: default avatarMaxim Levitsky <mlevitsk@redhat.com>
    Message-Id: <20220929172016.319443-4-pbonzini@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    f1554150
kvm_emulate.h 18.4 KB