From: Like Xu <like.xu.linux@gmail.com>
To: Paolo Bonzini <pbonzini@redhat.com>, Joerg Roedel <joro@8bytes.org>
Cc: Sean Christopherson <seanjc@google.com>,
Vitaly Kuznetsov <vkuznets@redhat.com>,
Wanpeng Li <wanpengli@tencent.com>,
Jim Mattson <jmattson@google.com>,
x86@kernel.org, linux-kernel@vger.kernel.org,
kvm@vger.kernel.org
Subject: Re: [PATCH] KVM: x86/cpuid: Expose the true number of available ASIDs
Date: Thu, 15 Jul 2021 19:51:19 +0800 [thread overview]
Message-ID: <fe96fd65-df65-1306-f8d0-29fd3f35a531@gmail.com> (raw)
In-Reply-To: <3d2ad944-9e0c-dea7-f0e4-4e55072ccf99@redhat.com>
On 15/7/2021 7:19 pm, Paolo Bonzini wrote:
> 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
I suppose you're right on the current state.
But do we have an explanation as to why it is hard-coded as 8
and not zero or a real supported number?
prev parent reply other threads:[~2021-07-15 11:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-15 10:45 Like Xu
2021-07-15 11:19 ` Paolo Bonzini
2021-07-15 11:51 ` Like Xu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fe96fd65-df65-1306-f8d0-29fd3f35a531@gmail.com \
--to=like.xu.linux@gmail.com \
--cc=jmattson@google.com \
--cc=joro@8bytes.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=seanjc@google.com \
--cc=vkuznets@redhat.com \
--cc=wanpengli@tencent.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®