• Marc Orr's avatar
    KVM: x86: Always set kvm_run->if_flag · c5063551
    Marc Orr authored
    The kvm_run struct's if_flag is a part of the userspace/kernel API. The
    SEV-ES patches failed to set this flag because it's no longer needed by
    QEMU (according to the comment in the source code). However, other
    hypervisors may make use of this flag. Therefore, set the flag for
    guests with encrypted registers (i.e., with guest_state_protected set).
    
    Fixes: f1c6366e ("KVM: SVM: Add required changes to support intercepts under SEV-ES")
    Signed-off-by: default avatarMarc Orr <marcorr@google.com>
    Message-Id: <20211209155257.128747-1-marcorr@google.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Reviewed-by: default avatarMaxim Levitsky <mlevitsk@redhat.com>
    c5063551
kvm_host.h 58.8 KB