]> git.baikalelectronics.ru Git - kernel.git/commit
X86/KVM: Clear encryption attribute when SEV is active
authorBrijesh Singh <brijesh.singh@amd.com>
Fri, 20 Oct 2017 14:30:59 +0000 (09:30 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 7 Nov 2017 14:36:00 +0000 (15:36 +0100)
commitff7482cbd6f7e11d0a6013a1498124d922ef45ea
treeeb69b20afde0696cb02d355976fe4efcaada2fac
parent69ccad176afcf660b5a1c43d965a8e0166e2de11
X86/KVM: Clear encryption attribute when SEV is active

The guest physical memory area holding the struct pvclock_wall_clock and
struct pvclock_vcpu_time_info are shared with the hypervisor. It
periodically updates the contents of the memory.

When SEV is active, the encryption attributes from the shared memory pages
must be cleared so that both hypervisor and guest can access the data.

Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Borislav Petkov <bp@suse.de>
Tested-by: Borislav Petkov <bp@suse.de>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: kvm@vger.kernel.org
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lkml.kernel.org/r/20171020143059.3291-18-brijesh.singh@amd.com
arch/x86/entry/vdso/vma.c
arch/x86/kernel/kvmclock.c