• Tom Lendacky's avatar
    KVM: SVM: Support MMIO for an SEV-ES guest · 8f423a80
    Tom Lendacky authored
    For an SEV-ES guest, MMIO is performed to a shared (un-encrypted) page
    so that both the hypervisor and guest can read or write to it and each
    see the contents.
    
    The GHCB specification provides software-defined VMGEXIT exit codes to
    indicate a request for an MMIO read or an MMIO write. Add support to
    recognize the MMIO requests and invoke SEV-ES specific routines that
    can complete the MMIO operation. These routines use common KVM support
    to complete the MMIO operation.
    Signed-off-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
    Message-Id: <af8de55127d5bcc3253d9b6084a0144c12307d4d.1607620209.git.thomas.lendacky@amd.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    8f423a80
sev.c 41.6 KB