All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Add guest support for SEV live migration.
@ 2021-04-22 20:54 Ashish Kalra
  2021-04-22 20:55 ` [PATCH 1/4] KVM: x86: Add AMD SEV specific Hypercall3 Ashish Kalra
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Ashish Kalra @ 2021-04-22 20:54 UTC (permalink / raw)
  To: pbonzini
  Cc: tglx, mingo, hpa, joro, bp, thomas.lendacky, x86, kvm,
	linux-kernel, srutherford, seanjc, venu.busireddy, brijesh.singh

From: Ashish Kalra <ashish.kalra@amd.com>

The series adds guest support for SEV live migration.

The patch series introduces a new hypercall. The guest OS can use this
hypercall to notify the page encryption status. If the page is encrypted
with guest specific-key then we use SEV command during the migration.
If page is not encrypted then fallback to default.

This section descibes how the SEV live migration feature is negotiated
between the host and guest, the host indicates this feature support via 
KVM_FEATURE_CPUID. The guest firmware (OVMF) detects this feature and
sets a UEFI enviroment variable indicating OVMF support for live
migration, the guest kernel also detects the host support for this
feature via cpuid and in case of an EFI boot verifies if OVMF also
supports this feature by getting the UEFI enviroment variable and if it
set then enables live migration feature on host by writing to a custom
MSR, if not booted under EFI, then it simply enables the feature by
again writing to the custom MSR.

Ashish Kalra (2):
  EFI: Introduce the new AMD Memory Encryption GUID.
  x86/kvm: Add guest support for detecting and enabling SEV Live
    Migration feature.

Brijesh Singh (2):
  KVM: x86: Add AMD SEV specific Hypercall3
  mm: x86: Invoke hypercall when page encryption status is changed

 arch/x86/include/asm/kvm_para.h       |  12 +++
 arch/x86/include/asm/mem_encrypt.h    |   4 +
 arch/x86/include/asm/paravirt.h       |   6 ++
 arch/x86/include/asm/paravirt_types.h |   2 +
 arch/x86/include/asm/set_memory.h     |   2 +
 arch/x86/kernel/kvm.c                 | 106 ++++++++++++++++++++++++++
 arch/x86/kernel/paravirt.c            |   1 +
 arch/x86/mm/mem_encrypt.c             |  72 ++++++++++++++---
 arch/x86/mm/pat/set_memory.c          |   7 ++
 include/linux/efi.h                   |   1 +
 10 files changed, 204 insertions(+), 9 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-04-23  0:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 20:54 [PATCH 0/4] Add guest support for SEV live migration Ashish Kalra
2021-04-22 20:55 ` [PATCH 1/4] KVM: x86: Add AMD SEV specific Hypercall3 Ashish Kalra
2021-04-23  0:03   ` Sean Christopherson
2021-04-22 20:55 ` [PATCH 2/4] mm: x86: Invoke hypercall when page encryption status is changed Ashish Kalra
2021-04-22 20:56 ` [PATCH 3/4] EFI: Introduce the new AMD Memory Encryption GUID Ashish Kalra
2021-04-22 20:56 ` [PATCH 4/4] x86/kvm: Add guest support for detecting and enabling SEV Live Migration feature Ashish Kalra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.