mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chao Gao <chao.gao@intel.com>
To: Keqiang Duan <duankeqiangcym@gmail.com>
Cc: <seanjc@google.com>, <pbonzini@redhat.com>, <kvm@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <stable@vger.kernel.org>,
	Qinguang Chen <chenqinguang@kuaishou.com>,
	Zhiping Du <duzhiping@kuaishou.com>
Subject: Re: [PATCH v2] KVM: x86: Clear hardware HLT state when userspace makes a vCPU not-halted
Date: Tue, 15 Sep 2026 10:24:34 +0800	[thread overview]
Message-ID: <aqisYqQwC3k6trXb@intel.com> (raw)
In-Reply-To: <20260820123512.87236-1-duankeqiangcym@gmail.com>

On Thu, Aug 20, 2026 at 08:35:12PM +0800, Keqiang Duan wrote:
>Force a vCPU out of its hardware-tracked halted state when userspace puts
>the vCPU into any state other than HALTED via KVM_SET_MP_STATE, i.e. clear
>VMCS.GUEST_ACTIVITY_STATE if it says the vCPU is halted.  Add an optional
>kvm_x86_ops hook to do the clearing, as SVM has no equivalent VMCB field.

[snip]

>
>Fixes: caa057a2cad6 ("KVM: X86: Provide a capability to disable HLT intercepts")
>Cc: stable@vger.kernel.org
>Tested-by: Qinguang Chen <chenqinguang@kuaishou.com>
>Signed-off-by: Zhiping Du <duzhiping@kuaishou.com>
>Signed-off-by: Keqiang Duan <duankeqiangcym@gmail.com>

Reviewed-by: Chao Gao <chao.gao@intel.com>

      parent reply	other threads:[~2026-09-15  2:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-20 12:35 Keqiang Duan
2026-08-20 12:44 ` keqiang duan
2026-09-09  8:00   ` keqiang duan
2026-09-15  2:24 ` Chao Gao [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=aqisYqQwC3k6trXb@intel.com \
    --to=chao.gao@intel.com \
    --cc=chenqinguang@kuaishou.com \
    --cc=duankeqiangcym@gmail.com \
    --cc=duzhiping@kuaishou.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=seanjc@google.com \
    --cc=stable@vger.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®