Received: by 10.223.176.5 with SMTP id f5csp2204555wra; Sun, 4 Feb 2018 23:24:37 -0800 (PST) X-Google-Smtp-Source: AH8x2271dqBKhuXeBKtf7mO/JyErdiAmfwBh0uSCkboRVno+imXxemYpTKiyhTpZYjnD4HvofR6i X-Received: by 10.98.101.71 with SMTP id z68mr47967555pfb.181.1517815477267; Sun, 04 Feb 2018 23:24:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517815477; cv=none; d=google.com; s=arc-20160816; b=y2B+CgfUlj6/NFMaS1lFEGIWsi9njCl+hoqbKQqw8VoQRQkSBO/Hvho1LVxaV4DGbM pGEaxegTXf0Hw+znlHZIDW3t/rl+Q8NpkVhjrG179U8B4ErbU8yR5ewMFGGr3EKkEhTs Dha2qDNxUbbxUefX2kwp6r8oQULvWyJOrqQjGhP9bBsLiWCVIpnsh/GRWsBSRgO0P7a0 RMfC30wpM5HNtnnPyLQSitcgnk38dn6LAyjLkx6raAxPVYKf/BscPoVTTob9wE97Yrnw L5CGy0vioA0ej7aXuMrC2tTDWomf+dR/Isp4EAemaPgDvGCx/QTzEH+PNsWgnFGtoMxa eawg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=tsWQVwVMANNoM9mpuc0kHS//xqByq7XrWAnTxWm3RSc=; b=AMTbew4RJ/eq5XL9EAxd/4CTRneSlUwuzHhqHDiqKZcyjU9aXNb16Q6kEdqmqphhLH onCaA6o8EVd18w2Y/b1ZPzG4gO8eDpupL/LbFvixYP1VlJJmd6OrB9JcOi091rDBSVAA v9l+/fUmqRPfaPb0GViJUxOqt02+sD94JoD4gX4+Io4Nn6qCqv4ReyfPYGganV+Pj9iB 6WKI/5971qfkY9X6bTM1x1UINDelsq6j3zadvQc+K7dIjx/aKk/1PAR7E+JJeV96h4uF kx5MQkrxoCm91RgxwUBlJxS/frRgsYUvdgMcAqeRWnnbRBRxaxn50qtHFzhveKPy6sNT zhxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FpkvdJhr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w22si202157pgm.799.2018.02.04.23.24.22; Sun, 04 Feb 2018 23:24:37 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FpkvdJhr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750962AbeBEHWk (ORCPT + 99 others); Mon, 5 Feb 2018 02:22:40 -0500 Received: from mail-ot0-f196.google.com ([74.125.82.196]:40325 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750943AbeBEHWc (ORCPT ); Mon, 5 Feb 2018 02:22:32 -0500 Received: by mail-ot0-f196.google.com with SMTP id s4so1829501oth.7; Sun, 04 Feb 2018 23:22:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=tsWQVwVMANNoM9mpuc0kHS//xqByq7XrWAnTxWm3RSc=; b=FpkvdJhr1coOYl7aBpeUG0UaVU5lrBuGagPV1P72QNR1PE3Y8wHyY2yIOzS0zNn5yV STDRpWfa8bOjgkfCEFHYhtFp4J3xkV31DA/WemhzN7l8gyX293++/mPle8UZ04sat5AA bhmd6/a0EluKsCRbVZig5gvyQQmBBcXqKhihwn2Rf8EvG4lgGjpc182vsjpb0vr/6Dem 4cwetWrDObFZXJaOccLbTBxylTPknC9UrJkrK2OVlHSKoDQGfZ2803/OyOT0vo7jQNvg Wnk8Ynj7MypIIbMnNDEoDd9ARLtWgN7R+D41ufgNOJmr3LeAwvE0x/r1090F/K5kFlOy 3DBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=tsWQVwVMANNoM9mpuc0kHS//xqByq7XrWAnTxWm3RSc=; b=p6Vm9CJtHTZ4C385MNgqWN+vJewKDr2CSB9PkJvnaXtR9b+tmGvXJudqGoErVWtaO3 r064ZjaFWPSOmklQnb3RcWZbLvP1/qNcOzCEOCHMNMYSrtOuSA8BWDRTa0z+ktBPG7le So/HTBE2QwvHscfd9lj4+omEobnQWY3OopL4KW/GuHAmEACCuPzNHORf78US9myhKvet Zu7c0mPSyvC2iXuY4JcucxiVTC0UJc3oC+KnH0LsY5QtfLT8z/MZit0btfkqME2lHMG6 EVpJgu/qNHBL6yePWwkagsB3D+P+jpOl1kIMu8do8Xqq8Un8YgWuTGCmG3BtfqIqSQyj aoZQ== X-Gm-Message-State: APf1xPAOZiJPDAT1BO9bgnnWPwurGEMFLJHJ7PMP+cTkig625DXvc48K dcDJtCr2iSS/MqqtoySI1oe3nj7f8Hqnw1saw6I= X-Received: by 10.157.31.34 with SMTP id x31mr10546084otd.125.1517815351730; Sun, 04 Feb 2018 23:22:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.10.129 with HTTP; Sun, 4 Feb 2018 23:22:31 -0800 (PST) In-Reply-To: <20180202190242.GE26932@flask> References: <1517555473-8313-1-git-send-email-wanpengli@tencent.com> <1517555473-8313-3-git-send-email-wanpengli@tencent.com> <20180202190242.GE26932@flask> From: Wanpeng Li Date: Mon, 5 Feb 2018 15:22:31 +0800 Message-ID: Subject: Re: [PATCH 2/2] KVM: X86: Add per-VM no-HLT-exiting capability To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Cc: linux-kernel@vger.kernel.org, kvm , Paolo Bonzini Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-02-03 3:02 GMT+08:00 Radim Kr=C4=8Dm=C3=A1=C5=99 : > 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=C4=8Dm=C3=A1=C5=99 >> 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). Do it in v2. > > And also look if we don't need vmx_clear_hlt() around INIT handling, You are right, the guest stuck after utilizing system_reset command in qemu monitor w/o vmx_clear_hlt() around INIT handling, fix it in v2. Regards, Wanpeng Li