From: Chao Gao <chao.gao@intel.com>
To: Sohil Mehta <sohil.mehta@intel.com>
Cc: <kvm@vger.kernel.org>, Paolo Bonzini <pbonzini@redhat.com>,
"Sean Christopherson" <seanjc@google.com>,
Thomas Gleixner <tglx@kernel.org>,
"Ingo Molnar" <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
"H . Peter Anvin" <hpa@zytor.com>, Xin Li <xin@zytor.com>,
Shivansh Dhiman <shivansh.dhiman@amd.com>,
David Woodhouse <dwmw@amazon.co.uk>,
Binbin Wu <binbin.wu@linux.intel.com>,
"Chang S . Bae" <chang.seok.bae@intel.com>,
Zhao Liu <zhao1.liu@intel.com>, <x86@kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 1/3] KVM: VMX: Support the secondary VM-exit controls
Date: Thu, 3 Dec 2026 21:14:31 +0800 [thread overview]
Message-ID: <axFrN_sqFkLOaCET@intel.com> (raw)
In-Reply-To: <20261203065149.2952509-2-sohil.mehta@intel.com>
On Wed, Dec 02, 2026 at 10:51:47PM -0800, Sohil Mehta wrote:
>From: "Xin Li (Intel)" <xin@zytor.com>
>
>Add the VMCS field for the secondary VM-exit controls, its controls
>shadow and the vmcs_config plumbing. Activate the controls in vmcs01
>whenever hardware supports them, and copy them into vmcs02.
>
>The secondary VM-exit controls are a 64-bit VMCS field for controls that
>no longer fit in the 32-bit primary field. Bit 31 of the primary VM-exit
>controls activates them. No feature KVM supports uses any of these
>controls yet, but the upcoming FRED KVM support is planning to use them.
>With every control bit clear, KVM behaves exactly as before.
>
>Check the secondary controls through their own entry/exit pair table.
>Avoid using a shared table because a failed check would clear the
>activation bit and turn off every secondary control, not just the
>inconsistent one. The new table stays empty until the first feature adds
>a pair.
This only matters with error_on_inconsistent_vmcs_config=0, because
kvm_intel refuses to load on a failed check by default. Sean's reason
in [1] is the stronger one:
"two tables provides better separation, which makes it easier
to follow what's going on, and avoids "polluting" every entry
with empty fields."
I would use it here instead and add a link to that discussion.
[1]: https://lore.kernel.org/all/Z739wdGmk4ZuWJ8v@google.com/
next prev parent reply other threads:[~2026-12-03 13:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 6:51 [PATCH v2 0/3] KVM: VMX: Support the secondary VM-exit controls Sohil Mehta
2026-12-03 6:51 ` [PATCH v2 1/3] " Sohil Mehta
2026-12-03 7:16 ` sashiko-bot
2026-12-03 13:14 ` Chao Gao [this message]
2026-12-03 6:51 ` [PATCH v2 2/3] KVM: VMX: Treat partial support of an entry/exit pair as inconsistent Sohil Mehta
2026-12-03 6:51 ` [PATCH v2 3/3] KVM: VMX: Dump the secondary VM-exit controls in dump_vmcs() Sohil Mehta
2026-12-03 13:24 ` [PATCH v2 0/3] KVM: VMX: Support the secondary VM-exit controls Chao Gao
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=axFrN_sqFkLOaCET@intel.com \
--to=chao.gao@intel.com \
--cc=binbin.wu@linux.intel.com \
--cc=bp@alien8.de \
--cc=chang.seok.bae@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=dwmw@amazon.co.uk \
--cc=hpa@zytor.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pbonzini@redhat.com \
--cc=seanjc@google.com \
--cc=shivansh.dhiman@amd.com \
--cc=sohil.mehta@intel.com \
--cc=tglx@kernel.org \
--cc=x86@kernel.org \
--cc=xin@zytor.com \
--cc=zhao1.liu@intel.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