From mboxrd@z Thu Jan 1 00:00:00 1970 From: Radim =?utf-8?B?S3LEjW3DocWZ?= Subject: Re: [PATCH 2/2] KVM: X86: Add per-VM no-HLT-exiting capability Date: Fri, 2 Feb 2018 20:02:43 +0100 Message-ID: <20180202190242.GE26932@flask> References: <1517555473-8313-1-git-send-email-wanpengli@tencent.com> <1517555473-8313-3-git-send-email-wanpengli@tencent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini To: Wanpeng Li Return-path: Received: from mx1.redhat.com ([209.132.183.28]:43260 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752181AbeBBTC6 (ORCPT ); Fri, 2 Feb 2018 14:02:58 -0500 Content-Disposition: inline In-Reply-To: <1517555473-8313-3-git-send-email-wanpengli@tencent.com> Sender: kvm-owner@vger.kernel.org List-ID: 2018-02-01 23:11-0800, Wanpeng Li: > From: Wanpeng Li > > If host CPUs are dedicated to a VM, we can avoid VM exits on HLT. > This patch adds the per-VM non-HLT-exiting capability. > > Cc: Paolo Bonzini > Cc: Radim Krčmář > Signed-off-by: Wanpeng Li > --- SMM handling needs more work: I think we should vmx_clear_hlt() upon SMI and RSM needs to implement auto halt restart (AMD might differ). And also look if we don't need vmx_clear_hlt() around INIT handling, thanks.