From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19C05C282C3 for ; Thu, 24 Jan 2019 17:28:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D49F621872 for ; Thu, 24 Jan 2019 17:28:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="JA8UKytw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729054AbfAXR2X (ORCPT ); Thu, 24 Jan 2019 12:28:23 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:41104 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727765AbfAXR2W (ORCPT ); Thu, 24 Jan 2019 12:28:22 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0OHDoY5152643; Thu, 24 Jan 2019 17:28:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2018-07-02; bh=qH3uhmI0NDU2EW/vOSPyOwJs9rKjXarcGd9TdF6mwx0=; b=JA8UKytwPTIZUkOMQ1/f/Xe8l7j0AFjBoYD2iiqFC9q9aFw4ZfIGhiTsozI/9Rlviom+ tcyWXNQqUxa1Cz6fTfYJIXIlp8Al94xMWaomPAjwJp1u8mNAwEJAyY1AY1dRE5QJsXvf +AHKPo6yXi2TGFOgQrdu9JqGV20ezqhENu3fOvMjh4hgepKkpe1pdNa7NQoWkU2e3GwX 8GMVASp5X7nFwPzPKHTbsXWmu/j8npbnWmXh+z9fthZmNL5uYygIKF+k8deOVI0+ei29 oLpmgHz36W3d2fahxJSYxD//otNl45JNviOWXqD8yFqE8ls5u/aDzohTOSGU5UbkUG74 wg== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2q3sdesdr0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Jan 2019 17:28:18 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x0OHSHPU013902 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Jan 2019 17:28:17 GMT Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x0OHSG9i030614; Thu, 24 Jan 2019 17:28:17 GMT Received: from [192.168.14.112] (/109.67.235.233) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Jan 2019 09:28:16 -0800 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Subject: Re: [PATCH] x86/kvm/hyper-v: tweak HYPERV_CPUID_ENLIGHTMENT_INFO From: Liran Alon In-Reply-To: <20190124171516.23626-1-vkuznets@redhat.com> Date: Thu, 24 Jan 2019 19:28:12 +0200 Cc: kvm@vger.kernel.org, Paolo Bonzini , =?utf-8?B?UmFkaW0gS3LEjW3DocWZ?= , Roman Kagan , linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <805B7B08-734E-4A96-AF98-D33065C59105@oracle.com> References: <20190124171516.23626-1-vkuznets@redhat.com> To: Vitaly Kuznetsov X-Mailer: Apple Mail (2.3445.4.7) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9146 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901240121 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 24 Jan 2019, at 19:15, Vitaly Kuznetsov = wrote: >=20 > We shouldn't probably be suggesting using Enlightened VMCS when it's = not > enabled (not supported from guest's point of view). System reset = through > synthetic MSR is not recommended neither by genuine Hyper-V nor my = QEMU. >=20 > Windows seems to be fine either way but let's be consistent. >=20 > Fixes: 2bc39970e932 ("x86/kvm/hyper-v: Introduce = KVM_GET_SUPPORTED_HV_CPUID") > Signed-off-by: Vitaly Kuznetsov > --- > arch/x86/kvm/hyperv.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c > index ac44a681f065..4730fcaa70cf 100644 > --- a/arch/x86/kvm/hyperv.c > +++ b/arch/x86/kvm/hyperv.c > @@ -1847,11 +1847,11 @@ int kvm_vcpu_ioctl_get_hv_cpuid(struct = kvm_vcpu *vcpu, struct kvm_cpuid2 *cpuid, > case HYPERV_CPUID_ENLIGHTMENT_INFO: > ent->eax |=3D = HV_X64_REMOTE_TLB_FLUSH_RECOMMENDED; > ent->eax |=3D HV_X64_APIC_ACCESS_RECOMMENDED; > - ent->eax |=3D HV_X64_SYSTEM_RESET_RECOMMENDED; > ent->eax |=3D HV_X64_RELAXED_TIMING_RECOMMENDED; > ent->eax |=3D HV_X64_CLUSTER_IPI_RECOMMENDED; > ent->eax |=3D = HV_X64_EX_PROCESSOR_MASKS_RECOMMENDED; > - ent->eax |=3D = HV_X64_ENLIGHTENED_VMCS_RECOMMENDED; > + if (evmcs_ver) > + ent->eax |=3D = HV_X64_ENLIGHTENED_VMCS_RECOMMENDED; >=20 > /* > * Default number of spinlock retry attempts, = matches > --=20 > 2.20.1 >=20 Seems to me that there are 2 unrelated separated patches here. Why not = split them? For content itself: Reviewed-by: Liran Alon