]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/kvm: Add kexec support for SEV Live Migration.
authorAshish Kalra <ashish.kalra@amd.com>
Tue, 24 Aug 2021 11:07:45 +0000 (11:07 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Nov 2021 12:37:44 +0000 (07:37 -0500)
commit73f1b4fece216c2e72be74c4d0d0f71a0b944bec
tree04887282305fc5c0f9d9a4d7507d22d5d81c46cd
parentf4495615d76cfe5a633b0886b5c30310ed94c357
x86/kvm: Add kexec support for SEV Live Migration.

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: Ashish Kalra <ashish.kalra@amd.com>
Reviewed-by: Steve Rutherford <srutherford@google.com>
Message-Id: <3e051424ab839ea470f88333273d7a185006754f.1629726117.git.ashish.kalra@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kernel/kvm.c