• Paolo Bonzini's avatar
    Merge branch 'kvm-sev-move-context' into kvm-master · 1f058331
    Paolo Bonzini authored
    Add support for AMD SEV and SEV-ES intra-host migration support.  Intra
    host migration provides a low-cost mechanism for userspace VMM upgrades.
    
    In the common case for intra host migration, we can rely on the normal
    ioctls for passing data from one VMM to the next. SEV, SEV-ES, and other
    confidential compute environments make most of this information opaque, and
    render KVM ioctls such as "KVM_GET_REGS" irrelevant.  As a result, we need
    the ability to pass this opaque metadata from one VMM to the next. The
    easiest way to do this is to leave this data in the kernel, and transfer
    ownership of the metadata from one KVM VM (or vCPU) to the next.  In-kernel
    hand off makes it possible to move any data that would be
    unsafe/impossible for the kernel to hand directly to userspace, and
    cannot be reproduced using data that can be handed to userspace.
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    1f058331
svm.h 16.4 KB