]> 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)
commit5e4274fbec96359cbd20ded0043b8e9418404fd4
tree04887282305fc5c0f9d9a4d7507d22d5d81c46cd
parentb652eb7ae45f3a09b1fdf36b44a7a8ffab2a7e5b
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