• Brijesh Singh's avatar
    KVM: SVM: Reserve ASID range for SEV guest · ed3cd233
    Brijesh Singh authored
    A SEV-enabled guest must use ASIDs from the defined subset, while non-SEV
    guests can use the remaining ASID range. The range of allowed SEV guest
    ASIDs is [1 - CPUID_8000_001F[ECX][31:0]].
    
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: "Radim Krčmář" <rkrcmar@redhat.com>
    Cc: Joerg Roedel <joro@8bytes.org>
    Cc: Borislav Petkov <bp@suse.de>
    Cc: Tom Lendacky <thomas.lendacky@amd.com>
    Cc: x86@kernel.org
    Cc: kvm@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Improvements-by: default avatarBorislav Petkov <bp@suse.de>
    Signed-off-by: default avatarBrijesh Singh <brijesh.singh@amd.com>
    Reviewed-by: default avatarBorislav Petkov <bp@suse.de>
    ed3cd233
svm.c 145 KB