• Ashish Kalra's avatar
    x86/kvm: Add kexec support for SEV Live Migration. · 73f1b4fe
    Ashish Kalra authored
    Reset the host's shared pages list related to kernel
    specific page encryption status settings before we load a
    new kernel by kexec. We cannot reset the complete
    shared pages list here as we need to retain the
    UEFI/OVMF firmware specific settings.
    
    The host's shared pages list is maintained for the
    guest to keep track of all unencrypted guest memory regions,
    therefore we need to explicitly mark all shared pages as
    encrypted again before rebooting into the new guest kernel.
    Signed-off-by: default avatarAshish Kalra <ashish.kalra@amd.com>
    Reviewed-by: default avatarSteve Rutherford <srutherford@google.com>
    Message-Id: <3e051424ab839ea470f88333273d7a185006754f.1629726117.git.ashish.kalra@amd.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    73f1b4fe
kvm.c 26.7 KB