From: Sean Christopherson <seanjc@google.com>
To: Jim Mattson <jmattson@google.com>
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
"'Paolo Bonzini '" <pbonzini@redhat.com>
Subject: Re: [PATCH 2/2] KVM: x86: Use a switch statement in __feature_translate()
Date: Mon, 23 Oct 2023 17:25:20 -0700 [thread overview]
Message-ID: <ZTcO8M3T9DGYrN2M@google.com> (raw)
In-Reply-To: <20231024001636.890236-2-jmattson@google.com>
On Mon, Oct 23, 2023, Jim Mattson wrote:
> The compiler will probably do better than linear search.
It shouldn't matter, KVM relies on the compiler to resolve the translation at
compile time, e.g. the result is fed into reverse_cpuid_check().
I.e. we should pick whatever is least ugly.
next prev parent reply other threads:[~2023-10-24 0:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-24 0:16 [PATCH 1/2] KVM: x86: Advertise CPUID.(EAX=7,ECX=2):EDX[5:0] to userspace Jim Mattson
2023-10-24 0:16 ` [PATCH 2/2] KVM: x86: Use a switch statement in __feature_translate() Jim Mattson
2023-10-24 0:25 ` Sean Christopherson [this message]
2023-11-30 20:28 ` Sean Christopherson
2023-12-01 1:39 ` Jim Mattson
2023-10-25 7:06 ` [PATCH 1/2] KVM: x86: Advertise CPUID.(EAX=7,ECX=2):EDX[5:0] to userspace Chao Gao
2023-12-01 1:52 ` Sean Christopherson
2023-12-01 4:18 ` Jim Mattson
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=ZTcO8M3T9DGYrN2M@google.com \
--to=seanjc@google.com \
--cc=jmattson@google.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
/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