Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5714777ybi; Tue, 28 May 2019 18:29:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZ55xN2n6DYOGTSZi15xOWpzKmF6z+/bYQta5UvEsyLghbFStXGycmOf/ta2/zA+SBj8X0 X-Received: by 2002:aa7:989b:: with SMTP id r27mr1152787pfl.108.1559093394349; Tue, 28 May 2019 18:29:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559093394; cv=none; d=google.com; s=arc-20160816; b=kno2CwtnzYWDIHh4BYj+oIB2dj6SdMzaCWuOXfDE+eFITAP/d+jBM0OeaaVtLp3xqi yTUD52YrlX1ldDL/5DWbvQcDlegHBjnLl5qWi5pcFj+DpX0zcgBKBJ8jChxMXB9p+y7C uBBRPvoIm5nZ/WKXn8RiYxvvaXkrRzEkHjDoxgcTEVD4vV6FWnfXnxalQPak8z89ui7i jCUpVe+vWWFsdBUwPeAE1s7+6OiPK+UmevCn9CZjO5Qsd2Q0aKa1UJ99na2kT5sJO+EL jJOqfVgNOf3kN05b/f/SE7COudt3T0IPZeFJ58YmFXqAd2Sb0+RP+YjozETSPYIQ4+yx OEbw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Zy4dt0/WsQ2pPQWde6zfELpEkgD8cGRU5zkaONVLf7w=; b=GX1LOGLYz974bHrUJronX7nRASeVQXWBk/vl9QbpwOer2GhMS/PVJ45lwWBf4Nz1C9 XiKHP4a5W9DrR4wqGbm3lyXDeBn4fb2nzTwo0GRKsVbNMQdmdzvD3qQQxcRuClWUkmzJ qoqK56Tyajy9me4T6B4tFWm6OWk068gSb++S97yGKs6WT5Qj7LwAswJQ+xnBfUk2ylNp UNQJnnqoObzQWHXZxpgQcW3j/lpjEVRPSMRMXztYOeoyRSN3y9bhfPCtKrx3CYgJtUK9 Funlg/2reD177rjdMBwL9pcmAu+M+1is57xrvOUTo+21GP+zis1RA5a6+ckIt9qrULI7 VOaQ== 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 h3si22826806pls.213.2019.05.28.18.29.39; Tue, 28 May 2019 18:29:54 -0700 (PDT) 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 S1726097AbfE2B2X (ORCPT + 99 others); Tue, 28 May 2019 21:28:23 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41831 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725847AbfE2B2X (ORCPT ); Tue, 28 May 2019 21:28:23 -0400 Received: by mail-wr1-f68.google.com with SMTP id c2so436581wrm.8 for ; Tue, 28 May 2019 18:28:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Zy4dt0/WsQ2pPQWde6zfELpEkgD8cGRU5zkaONVLf7w=; b=XdzZ8tsZDV66g6exchJci/uYn83Fld86fihy3gS5aejUQUsgiTWlm0tfOjaRJfhCUk TcGmFiI5X0WbWM8h6JXG/9akhOOXy3QniF6kzNcKL51jfUtLbYi12f79nLWMBcvsR7nv mfU3ixSePN699I4GUeDIDu9/nRCOlx1F08eF64xpIp1DlQkH9doZ5In32oKnB3XOQ2Ov okDGtieRa6XU7kwIzGMXQHx+iRRAc7A7UuhXWhopIuFV+nM4NYMcXyWYZVBpsqRJ0xN2 GkdpSzRq9FUXmDs6JZMdrQJQxb/OHiZ4iMoInRAaMl2QLE54ocBq60TUmUFWvq9Kh3/N lH5g== X-Gm-Message-State: APjAAAWRm+1MKS7ICvXNe33DEb5PKBaVxntVgQsVSHcgqn7PTrOSg6o3 CD2q27z0Y12kxdT/O8YGtQ+dyQ== X-Received: by 2002:adf:b64b:: with SMTP id i11mr7328142wre.205.1559093301578; Tue, 28 May 2019 18:28:21 -0700 (PDT) Received: from [192.168.10.150] ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id r16sm11765117wrj.13.2019.05.28.18.28.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 May 2019 18:28:21 -0700 (PDT) Subject: Re: [PATCH v2 3/3] KVM: vmx: handle vm-exit for UMWAIT and TPAUSE To: Tao Xu , rkrcmar@redhat.com, corbet@lwn.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, sean.j.christopherson@intel.com Cc: x86@kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, jingqi.liu@intel.com References: <20190524075637.29496-1-tao3.xu@intel.com> <20190524075637.29496-4-tao3.xu@intel.com> From: Paolo Bonzini Message-ID: Date: Wed, 29 May 2019 03:28:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190524075637.29496-4-tao3.xu@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/05/19 09:56, Tao Xu wrote: > As the latest Intel 64 and IA-32 Architectures Software Developer's > Manual, UMWAIT and TPAUSE instructions cause a VM exit if the > “RDTSC exiting” and “enable user wait and pause” VM-execution controls > are both 1. > > This patch is to handle the vm-exit for UMWAIT and TPAUSE as invalid_op. KVM never enables RDTSC exiting, so this is not necessary. Paolo