Skip to content

Commit 642525e

Browse files
committed
KVM: SEV: move mirror status to destination of KVM_CAP_VM_MOVE_ENC_CONTEXT_FROM
Allow intra-host migration of a mirror VM; the destination VM will be a mirror of the same ASID as the source. Fixes: b566393 ("KVM: SEV: Add support for SEV intra host migration") Reviewed-by: Sean Christopherson <seanjc@google.com> Message-Id: <20211123005036.2954379-8-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 2b347a3 commit 642525e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/x86/kvm/svm/sev.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,11 +1619,13 @@ static void sev_migrate_from(struct kvm_sev_info *dst,
16191619
dst->asid = src->asid;
16201620
dst->handle = src->handle;
16211621
dst->pages_locked = src->pages_locked;
1622+
dst->enc_context_owner = src->enc_context_owner;
16221623

16231624
src->asid = 0;
16241625
src->active = false;
16251626
src->handle = 0;
16261627
src->pages_locked = 0;
1628+
src->enc_context_owner = NULL;
16271629

16281630
list_cut_before(&dst->regions_list, &src->regions_list, &src->regions_list);
16291631
}

0 commit comments

Comments
 (0)