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)
commit819aeee065e5d1b417ecd633897427c89f3253ec
treeeb69b20afde0696cb02d355976fe4efcaada2fac
parent4716276184ec67a123a4eab81609a0688b1d650b
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