[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC v2 11/18] guest memory protection: Handle memory encrption via
From: |
Richard Henderson |
Subject: |
Re: [RFC v2 11/18] guest memory protection: Handle memory encrption via interface |
Date: |
Mon, 1 Jun 2020 20:21:06 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
On 5/20/20 8:42 PM, David Gibson wrote:
> At the moment AMD SEV sets a special function pointer, plus an opaque
> handle in KVMState to let things know how to encrypt guest memory.
>
> Now that we have a QOM interface for handling things related to guest
> memory protection, use a QOM method on that interface, rather than a bare
> function pointer for this.
>
> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
> ---
> accel/kvm/kvm-all.c | 23 +++----
> accel/kvm/sev-stub.c | 5 --
> include/exec/guest-memory-protection.h | 2 +
> include/sysemu/sev.h | 6 +-
> target/i386/sev.c | 84 ++++++++++++++------------
> 5 files changed, 63 insertions(+), 57 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
- Re: [RFC v2 11/18] guest memory protection: Handle memory encrption via interface,
Richard Henderson <=