Received: by 10.223.176.5 with SMTP id f5csp1254369wra; Fri, 2 Feb 2018 14:03:54 -0800 (PST) X-Google-Smtp-Source: AH8x224htQuWgZtrrH93Z9Gu+Dk2d/+hc7+0ronbsB1fhRnaLSgGRX1yHOHEa+qWK7aD/IBdrgXf X-Received: by 10.99.123.92 with SMTP id k28mr456952pgn.71.1517609034852; Fri, 02 Feb 2018 14:03:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517609034; cv=none; d=google.com; s=arc-20160816; b=jWmKs3d/X6rV2OEDJwKiQdnxdwJsOw+zibkMoBzc8EEBngLELPMY00lerRfN8OUz69 Vai8Advne5BYMJw8LGw/KrCE4O4t3HNsgR5srLr8iCSHigrotCUtK7EZy+v/mXdx74M6 JocgkKMBvWUpZx/2038klNZ+m+vh79DHs889g4OrQ3QZnNWYhMGQpx/mQ3CLb3dUP8g0 7X7xJ/Veeg8lTSOkmv89aGh8YmAkuXAsp+qbVYEj31KdzQq7MS2NjbA9Jcmjfj+nZJwt MXYzn10oWhO5IJ5ChV/ttKUbUjiab/mAOSixK9sMEnqNAJCya8IVzZEr8EwZoUT9tPLf knsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=5D68c21NaHSE0T5yM/zwIDEjCX9uRJuTd9abAXV068s=; b=qFFyfUGkB+PEp03RiHlnSpQ0kSaqZBKhlLRfp5IQq8grLLk/ARhHaXUEe7HGiLUrXX vc3tOYQNMvn7zyHGqa2gNSsO6YTOOqBVI7lpzha8o3fDI80CX2DKWb321MnIz6vnvkY3 7eW547Q11nMk429qyJ5yNi+PWren06Yq6YqwyiabO9ssUIZ/Lqoon6JNhxuhueAbd5Pi Ql0mIV3m1GHA+AlguAUDl4qWpkcF59HCLzaF03Zd18+LjKxtkkWz87xVcIn0UkORXROW 6V0p1TuNaayFVrZ8YycSytu+60B2ERqwGHztIRUSXezMNSFYvuONK2EvHvsiQtA6aOG1 3hBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i20si1321181pgn.33.2018.02.02.14.03.40; Fri, 02 Feb 2018 14:03:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753469AbeBBTDD (ORCPT + 99 others); Fri, 2 Feb 2018 14:03:03 -0500 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 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 956CE5F7AD; Fri, 2 Feb 2018 19:02:58 +0000 (UTC) Received: from flask (unknown [10.43.2.80]) by smtp.corp.redhat.com (Postfix) with SMTP id 5045E5DD93; Fri, 2 Feb 2018 19:02:56 +0000 (UTC) Received: by flask (sSMTP sendmail emulation); Fri, 02 Feb 2018 20:02:43 +0100 Date: Fri, 2 Feb 2018 20:02:43 +0100 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: Wanpeng Li Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini Subject: Re: [PATCH 2/2] KVM: X86: Add per-VM no-HLT-exiting capability 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1517555473-8313-3-git-send-email-wanpengli@tencent.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 02 Feb 2018 19:02:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.