[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 8/9] spapr: PEF: block migration
From: |
Dr. David Alan Gilbert |
Subject: |
Re: [PATCH v3 8/9] spapr: PEF: block migration |
Date: |
Fri, 26 Jun 2020 11:33:03 +0100 |
User-agent: |
Mutt/1.14.3 (2020-06-14) |
* David Gibson (david@gibson.dropbear.id.au) wrote:
> We haven't yet implemented the fairly involved handshaking that will be
> needed to migrate PEF protected guests. For now, just use a migration
> blocker so we get a meaningful error if someone attempts this (this is the
> same approach used by AMD SEV).
>
> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Do you expect this to happen if people run with -cpu host ?
Dave
> ---
> target/ppc/pef.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/target/ppc/pef.c b/target/ppc/pef.c
> index 53a6af0347..6a50efd580 100644
> --- a/target/ppc/pef.c
> +++ b/target/ppc/pef.c
> @@ -36,6 +36,8 @@ struct PefGuestState {
> Object parent_obj;
> };
>
> +static Error *pef_mig_blocker;
> +
> static int pef_kvm_init(HostTrustLimitation *gmpo, Error **errp)
> {
> if (!kvm_check_extension(kvm_state, KVM_CAP_PPC_SECURE_GUEST)) {
> @@ -52,6 +54,10 @@ static int pef_kvm_init(HostTrustLimitation *gmpo, Error
> **errp)
> }
> }
>
> + /* add migration blocker */
> + error_setg(&pef_mig_blocker, "PEF: Migration is not implemented");
> + migrate_add_blocker(pef_mig_blocker, &error_abort);
> +
> return 0;
> }
>
> --
> 2.26.2
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
- [PATCH v3 0/9] Generalize memory encryption models, David Gibson, 2020/06/18
- [PATCH v3 3/9] host trust limitation: Move side effect out of machine_set_memory_encryption(), David Gibson, 2020/06/18
- [PATCH v3 1/9] host trust limitation: Introduce new host trust limitation interface, David Gibson, 2020/06/18
- [PATCH v3 2/9] host trust limitation: Handle memory encryption via interface, David Gibson, 2020/06/18
- [PATCH v3 4/9] host trust limitation: Rework the "memory-encryption" property, David Gibson, 2020/06/18
- [PATCH v3 8/9] spapr: PEF: block migration, David Gibson, 2020/06/18
- Re: [PATCH v3 8/9] spapr: PEF: block migration,
Dr. David Alan Gilbert <=
- [PATCH v3 5/9] host trust limitation: Decouple kvm_memcrypt_*() helpers from KVM, David Gibson, 2020/06/18
- [PATCH v3 9/9] host trust limitation: Alter virtio default properties for protected guests, David Gibson, 2020/06/18
- Re: [PATCH v3 9/9] host trust limitation: Alter virtio default properties for protected guests, Daniel P . Berrangé, 2020/06/19
- Re: [PATCH v3 9/9] host trust limitation: Alter virtio default properties for protected guests, Michael S. Tsirkin, 2020/06/19
- Re: [PATCH v3 9/9] host trust limitation: Alter virtio default properties for protected guests, Michael S. Tsirkin, 2020/06/19
- Re: [PATCH v3 9/9] host trust limitation: Alter virtio default properties for protected guests, Daniel P . Berrangé, 2020/06/19
- Re: [PATCH v3 9/9] host trust limitation: Alter virtio default properties for protected guests, Halil Pasic, 2020/06/19
- Re: [PATCH v3 9/9] host trust limitation: Alter virtio default properties for protected guests, Michael S. Tsirkin, 2020/06/24
- Re: [PATCH v3 9/9] host trust limitation: Alter virtio default properties for protected guests, David Gibson, 2020/06/25
- Re: [PATCH v3 9/9] host trust limitation: Alter virtio default properties for protected guests, David Gibson, 2020/06/25