• Paolo Bonzini's avatar
    KVM: SEV: initialize regions_list of a mirror VM · 2b347a38
    Paolo Bonzini authored
    This was broken before the introduction of KVM_CAP_VM_MOVE_ENC_CONTEXT_FROM,
    but technically harmless because the region list was unused for a mirror
    VM.  However, it is untidy and it now causes a NULL pointer access when
    attempting to move the encryption context of a mirror VM.
    
    Fixes: 54526d1f ("KVM: x86: Support KVM VMs sharing SEV context")
    Message-Id: <20211123005036.2954379-7-pbonzini@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    2b347a38
sev.c 72.4 KB