Re: [PATCH] KVM: x86/cpuid: Expose the true number of available ASIDs

From: Paolo Bonzini
Date: Thu Jul 15 2021 - 07:19:27 EST


On 15/07/21 12:45, Like Xu wrote:
The original fixed number "8" was first introduced 11 years ago. Time has
passed and now let KVM report the true number of address space identifiers
(ASIDs) that are supported by the processor returned in Fn8000_000A_EBX.

It helps user-space to make better decisions about guest values.

- entry->ebx = 8; /* Lets support 8 ASIDs in case we add proper
- ASID emulation to nested SVM */

Why, since we don't have ASID emulation yet anyway?

Paolo