Received: by 2002:a17:90a:bc8d:0:0:0:0 with SMTP id x13csp1165117pjr; Thu, 21 May 2020 01:28:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIXUsenSDBkhqLl5qqFkzVRJqXdFpvqzxZJGtnZR5dAzsXxbtiTzjFD7+lM8QUuFo/Nz6L X-Received: by 2002:a50:fd04:: with SMTP id i4mr7111124eds.43.1590049718005; Thu, 21 May 2020 01:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590049717; cv=none; d=google.com; s=arc-20160816; b=jAM5mpmyn/Jn1Wv8CxvPLiLcmUkXrgTorJXVMl937+vbM2rlZtTKJJf7N+lrhriaFg 0Ba7XYLRbBotQzPLBYgJURkTju3ZCZ411AdWJ5DbAfJew4eMgFcr0MSFNYSmF0uI9OzQ fJACRliIIrO15rjoNWptxQf1Ow+XTkFvzWONKKXBr0ar6WClOoeg/r1Ael6khkEpIwaB uicCr20vls+OMe/euQUhxqF3Q/5GyWddUdYdrIg6nd8LpdOc/bcU0zUGxYMTW4r0+R01 aAsL4acQmGwt4/1EnXzFuJWt0PWXAARSRxC8SxbH6tNgDZtmzQ7YkypM3jjgOx9LxaLQ WIpA== 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:dkim-signature; bh=UgPlPKwQ78SmEvwlM+tSnD4eOCAOdkr7Ntl2fCb3Qdo=; b=pOuKLbRmP78sGCpMw/QKuoFw6ti9+pXeGMkP7nGR2PD9Z9fxjbyMQWxe51SQh5QDUj j+YL0AsRkQGOJMxWjZBW15lwS7PHa27/ei1xF3gRt8QOKS/BJyxOVB2c6pcsZkopGqkP 3j0zJSizfwQ7ycNLIwkE8nJpjztPMc0KkOFf7MqCQr+jCIB7Sgx0ZZuB8u2CUJ/x+LAT XF12D1mM2bN/rqkWdseXld/WIIjCSs0B66Yco/XnG+JYtaXTKpwFIBcuMme/ZAhulT9k fQWL2jxLxiWkaVmtJI2kMWBnQMr/iXBuf4jyiZjFt5TZK4dP5EjhBz00/3FFyakNZi4t jmmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KiS63N3C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec15si2852505ejb.286.2020.05.21.01.28.14; Thu, 21 May 2020 01:28:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KiS63N3C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728582AbgEUIY2 (ORCPT + 99 others); Thu, 21 May 2020 04:24:28 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:29559 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728374AbgEUIY2 (ORCPT ); Thu, 21 May 2020 04:24:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590049467; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UgPlPKwQ78SmEvwlM+tSnD4eOCAOdkr7Ntl2fCb3Qdo=; b=KiS63N3Cn7Czi5DVNZGyjNaxec7dLbyPv4piB4gVvc776I0UdY/hFDUKDkwLBrApkfuT/U 3FB8opFdS3gpc9WHzuLuJqx+ltoawgPsWDMFqvEQc0uWHdRK70kjlzGu8njB9Rfu59nSYt ggQAeYpz9afFTmSC+O3b2rdqJjCxkzo= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-167-HFw0fZHhMRSxz11tr1JoSA-1; Thu, 21 May 2020 04:24:25 -0400 X-MC-Unique: HFw0fZHhMRSxz11tr1JoSA-1 Received: by mail-ed1-f70.google.com with SMTP id a18so2509819eds.9 for ; Thu, 21 May 2020 01:24:25 -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=UgPlPKwQ78SmEvwlM+tSnD4eOCAOdkr7Ntl2fCb3Qdo=; b=rBAvkKt+RFxH8/MxsuJUZf8Rm4mO5XkzTOOVfeCng32vC5SxKI+LUw7DK/Yw6VJBMc SmyxjLFmgwoAFTD7ztBRcQaBgtKRc5S3Vkwce2B/6Tx1D3+xhbqYqRCwPKZjHqmqoU9q vSV1eJRzKy7+fOPHvVfWpty0DyTEXcx5DHRgyfAiPHcRxfJrah1Ssg/bAi5RElRE2CID O+doqONUFYuv+aZ3qGI0zs8owX1jou65ahbs9TqwgkCrCT6P1s9vySHF1IwWVSB+yCzY Kt8qRvbWuKrRE8/Fc5ybKz5vjAkQJjd1O7WfA1b3Fl3uzx8w5au+su82MXKYJYj8QnC9 TtQQ== X-Gm-Message-State: AOAM530FeFDuTQwmRQNQ2reC8OxcdkJ5jhehsNXxYVTEHRlGmXcgnS03 bYaXgHLE+QVixBnyVOQQiFaeifyoVaF5o358eGRfRVn5jVAbqpOU5TjOdyAEhBkCyigzjGZXvWh 9JG1JY0H9GGlzIjqXXbNL3OQw X-Received: by 2002:a17:907:9d5:: with SMTP id bx21mr2366556ejc.510.1590049464362; Thu, 21 May 2020 01:24:24 -0700 (PDT) X-Received: by 2002:a17:907:9d5:: with SMTP id bx21mr2366545ejc.510.1590049464136; Thu, 21 May 2020 01:24:24 -0700 (PDT) Received: from [192.168.178.58] ([151.30.94.134]) by smtp.gmail.com with ESMTPSA id s20sm4204784eju.96.2020.05.21.01.24.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 May 2020 01:24:23 -0700 (PDT) Subject: Re: [PATCH 2/2] kvm/x86: don't expose MSR_IA32_UMWAIT_CONTROL unconditionally To: Xiaoyao Li , Maxim Levitsky , kvm@vger.kernel.org, Tao Xu Cc: linux-kernel@vger.kernel.org References: <20200520160740.6144-1-mlevitsk@redhat.com> <20200520160740.6144-3-mlevitsk@redhat.com> <81228a0e-7797-4f34-3d6d-5b0550c10a8f@intel.com> From: Paolo Bonzini Message-ID: <13f16f34-ce01-4207-1d1d-775b15a1e0f7@redhat.com> Date: Thu, 21 May 2020 10:24:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <81228a0e-7797-4f34-3d6d-5b0550c10a8f@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/05/20 06:33, Xiaoyao Li wrote: > I remember there is certainly some reason why we don't expose WAITPKG to > guest by default. That's a userspace policy decision. KVM_GET_SUPPORTED_CPUID should still tell userspace that it's supported. Paolo > Tao, please help clarify it.