[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v7 05/13] confidential guest support: Rework the "memory-encr
From: |
Cornelia Huck |
Subject: |
Re: [PATCH v7 05/13] confidential guest support: Rework the "memory-encryption" property |
Date: |
Fri, 15 Jan 2021 14:06:29 +0100 |
On Thu, 14 Jan 2021 10:58:03 +1100
David Gibson <david@gibson.dropbear.id.au> wrote:
> Currently the "memory-encryption" property is only looked at once we
> get to kvm_init(). Although protection of guest memory from the
> hypervisor isn't something that could really ever work with TCG, it's
> not conceptually tied to the KVM accelerator.
>
> In addition, the way the string property is resolved to an object is
> almost identical to how a QOM link property is handled.
>
> So, create a new "confidential-guest-support" link property which sets
> this QOM interface link directly in the machine. For compatibility we
> keep the "memory-encryption" property, but now implemented in terms of
> the new property.
>
> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
> Reviewed-by: Greg Kurz <groug@kaod.org>
> ---
> accel/kvm/kvm-all.c | 5 +++--
> accel/kvm/sev-stub.c | 5 +++--
> hw/core/machine.c | 43 +++++++++++++++++++++++++++++++++++++------
> include/hw/boards.h | 2 +-
> include/sysemu/sev.h | 2 +-
> target/i386/sev.c | 32 ++------------------------------
> 6 files changed, 47 insertions(+), 42 deletions(-)
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
- Re: [PATCH v7 03/13] sev: Remove false abstraction of flash encryption, (continued)
- [PATCH v7 07/13] confidential guest support: Introduce cgs "ready" flag, David Gibson, 2021/01/13
- [PATCH v7 04/13] confidential guest support: Move side effect out of machine_set_memory_encryption(), David Gibson, 2021/01/13
- [PATCH v7 05/13] confidential guest support: Rework the "memory-encryption" property, David Gibson, 2021/01/13
- Re: [PATCH v7 05/13] confidential guest support: Rework the "memory-encryption" property,
Cornelia Huck <=
- [PATCH v7 06/13] sev: Add Error ** to sev_kvm_init(), David Gibson, 2021/01/13
- [PATCH v7 10/13] spapr: Add PEF based confidential guest support, David Gibson, 2021/01/13
- [PATCH v7 11/13] spapr: PEF: prevent migration, David Gibson, 2021/01/13
- [PATCH v7 09/13] confidential guest support: Update documentation, David Gibson, 2021/01/13