]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'kvm-guest-sev-migration' into kvm-master
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Nov 2021 12:40:26 +0000 (07:40 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Nov 2021 12:40:26 +0000 (07:40 -0500)
commitd930fc96c5816caba7e5d9e2c0e5948fd0e557c2
tree9d4c34b26ba67337923c8681daf32d1b162426c8
parentc5c3978a80c459334ada620b97ec5287ba41d7dc
parent5e4274fbec96359cbd20ded0043b8e9418404fd4
Merge branch 'kvm-guest-sev-migration' into kvm-master

Add guest api and guest kernel support for SEV live migration.

Introduces a new hypercall to notify the host of changes to the page
encryption status.  If the page is encrypted then it must be migrated
through the SEV firmware or a helper VM sharing the key.  If page is
not encrypted then it can be migrated normally by userspace.  This new
hypercall is invoked using paravirt_ops.

Conflicts: sev_active() replaced by cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT).
arch/x86/include/asm/mem_encrypt.h
arch/x86/include/asm/paravirt.h
arch/x86/include/asm/paravirt_types.h
arch/x86/kernel/kvm.c
arch/x86/kernel/paravirt.c
arch/x86/mm/mem_encrypt.c
arch/x86/mm/pat/set_memory.c