]> git.baikalelectronics.ru Git - kernel.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)
commit3efa8c8a573533b81a0bb48762628ac2ba337ebf
tree04887282305fc5c0f9d9a4d7507d22d5d81c46cd
parent52c0f38eba2bbb77aa0568c1c4f8584b1c615e14
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