[Part1 PATCH v7 15/17] percpu: Introduce DEFINE_PER_CPU_DECRYPTED

2017-10-20 Thread Brijesh Singh
KVM guest defines three per-CPU variables (steal-time, apf_reason, and avic_eio) which are shared between a guest and a hypervisor. When SEV is active, memory is encrypted with a guest-specific key, and if the guest OS wants to share the memory region with the hypervisor then it must clear the

[Part1 PATCH v7 15/17] percpu: Introduce DEFINE_PER_CPU_DECRYPTED

2017-10-20 Thread Brijesh Singh
KVM guest defines three per-CPU variables (steal-time, apf_reason, and avic_eio) which are shared between a guest and a hypervisor. When SEV is active, memory is encrypted with a guest-specific key, and if the guest OS wants to share the memory region with the hypervisor then it must clear the