From: "Yang, Weijiang" <weijiang.yang@intel.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [PATCH] target/i386: enumerate bit 56 of MSR_IA32_VMX_BASIC
Date: Thu, 21 Sep 2023 14:47:54 +0800 [thread overview]
Message-ID: <a2ba1567-1dd3-06c8-08d8-b198abde9e61@intel.com> (raw)
In-Reply-To: <20230920154136.33171-1-pbonzini@redhat.com>
On 9/20/2023 11:41 PM, Paolo Bonzini wrote:
> On parts that enumerate IA32_VMX_BASIC MSR bit as 1, any exception vector
> can be delivered with or without an error code if the other consistency
> checks are satisfied.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> target/i386/cpu.c | 1 +
> target/i386/cpu.h | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/target/i386/cpu.c b/target/i386/cpu.c
> index 6e52c7be1e1..8f334dbbcc2 100644
> --- a/target/i386/cpu.c
> +++ b/target/i386/cpu.c
> @@ -1347,6 +1347,7 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
> .feat_names = {
> [54] = "vmx-ins-outs",
> [55] = "vmx-true-ctls",
> + [56] = "vmx-any-errcode",
> },
> .msr = {
> .index = MSR_IA32_VMX_BASIC,
> diff --git a/target/i386/cpu.h b/target/i386/cpu.h
> index eab610e5cd5..2e09c588f0b 100644
> --- a/target/i386/cpu.h
> +++ b/target/i386/cpu.h
> @@ -1039,6 +1039,7 @@ uint64_t x86_cpu_get_supported_feature_word(FeatureWord w,
> #define MSR_VMX_BASIC_DUAL_MONITOR (1ULL << 49)
> #define MSR_VMX_BASIC_INS_OUTS (1ULL << 54)
> #define MSR_VMX_BASIC_TRUE_CTLS (1ULL << 55)
> +#define MSR_VMX_BASIC_ANY_ERRCODE (1ULL << 56)
>
> #define MSR_VMX_MISC_PREEMPTION_TIMER_SHIFT_MASK 0x1Full
> #define MSR_VMX_MISC_STORE_LMA (1ULL << 5)
Thanks Paolo!
I forgot to post refreshed CET QEMU series which includes this bit enabling.
Reviewed-by: Yang Weijiang <weijiang.yang@intel.com>
prev parent reply other threads:[~2023-09-21 6:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-20 15:41 [PATCH] target/i386: enumerate bit 56 of MSR_IA32_VMX_BASIC Paolo Bonzini
2023-09-21 6:47 ` Yang, Weijiang [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=a2ba1567-1dd3-06c8-08d8-b198abde9e61@intel.com \
--to=weijiang.yang@intel.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).