Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1935627ybn; Thu, 26 Sep 2019 04:34:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqyELXrCq0zsoI6sbrGADINiETu8eVGlWB4i0empfYM6IO5uUssXGYj79p3Ju6zxDKOzRdmx X-Received: by 2002:a05:6402:13c9:: with SMTP id a9mr2963619edx.25.1569497692615; Thu, 26 Sep 2019 04:34:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569497692; cv=none; d=google.com; s=arc-20160816; b=nC2kwrC2b1D2bYj/ISrZGW8P3z3z+EZlwMjl56Meu1Ab0MhuvyC8xx2P6LegoRLX9t Zu6eS7XwkIlAsHyx2sUrPbMGuTeHgXCGCZeQnJiEaqzv+C2YJ0WUC7exV5kYPb4dx+uM VNPZMBst0kcz27tyE6Ktlbf1oKym7os4B4ytDSv4fxywI6KAdUxzqrRrPbZM10+OD+LU QJBiwelkGkLoB/In1o2U5CmDuh5uhi0nfm3OAPwRS4Io7v6LcXD0I2ToO1dPCU7EbeHr M135h7bLQljLoRlkgom15aX0BFCjAbtyx7ypHOMkJGihGvZhu0HhNlE3U0G88aqSorGW tgIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=W65Qj1spfIW0T5TXpC/L2KW0atWcCOLy480ZPUWtihc=; b=Vf63KUqoJh8iSjsB/Nl+s4Ex43LAQz9B78Iuzt+WdcZSxTLY/qiXVI+QY19Ci6i3/j PrbIDt/lR94qDB8pVlrz9kXY9QDKTURJ2ygw3XC574Fmx7ccpp6VVIJ4SaVmM6GggX8/ g4hvqUtuzWbTCLK93rP1batKasMOZG54HAC/vdcUvKdUg8lEpJLoQNIanMSziNPk+a7D W/8Omi0wUgu3iK95ZqqfWdYPFOJBL3LKeFVGHKbUmZfrWML6TTms33G8PtpDCe4q2hIp DVzwIC8CUhzjI2SkQ7SX72YYfL+WNJRDSLBbbrC7pJEFy3kuXOTlnElnBXawO04oz6rs lE5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=ib2W1W9s; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r8si1104327edm.158.2019.09.26.04.34.29; Thu, 26 Sep 2019 04:34:52 -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; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=ib2W1W9s; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726641AbfIZLbb (ORCPT + 99 others); Thu, 26 Sep 2019 07:31:31 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:38330 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726554AbfIZLb1 (ORCPT ); Thu, 26 Sep 2019 07:31:27 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x8QBTNkQ110404; Thu, 26 Sep 2019 11:31:09 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-2019-08-05; bh=W65Qj1spfIW0T5TXpC/L2KW0atWcCOLy480ZPUWtihc=; b=ib2W1W9sZq8A+/3X5IVog69x/N+0IZaTe6/7kVLPhek2eY3dc43wjUJvlTYEYCk6taY1 /slRc/8UUovk8L1yAveIRhcUY4zObH43ZLuqMWeLEElFYCqUV0wIAmnbDO9HRimKK+K6 oox6Jofub77uyWP6zDnToY2nxd5F+5sPhBNd+fqOdVIDrz+1TRSHgnp87PK9SDCiUeRZ 37nL9FVncyOA6BCkM/IuUYyPHlCtRYRYhcXAymhtHZA7eyzbS6Zu2uVzSif064FpCZoP 7A5CbqTp12eYvte2HLBoEJrvDi6rqy78OmRY+IibuSOhY5i3VEYXQLLXgbNFTi60EvAs 4g== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 2v5cgraxv9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 26 Sep 2019 11:31:09 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x8QBTGE0156616; Thu, 26 Sep 2019 11:31:09 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 2v8tpjwtuc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 26 Sep 2019 11:31:08 +0000 Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x8QBV8Lc028193; Thu, 26 Sep 2019 11:31:08 GMT Received: from [192.168.14.112] (/79.179.213.143) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 26 Sep 2019 04:31:07 -0700 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Subject: Re: [PATCH] KVM: nVMX: cleanup and fix host 64-bit mode checks From: Liran Alon In-Reply-To: <1569429286-35157-1-git-send-email-pbonzini@redhat.com> Date: Thu, 26 Sep 2019 14:31:04 +0300 Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Sean Christopherson , Jim Mattson , Krish Sadhukhan Content-Transfer-Encoding: quoted-printable Message-Id: <63797A78-1645-4A7E-970B-62C9A580B71B@oracle.com> References: <1569429286-35157-1-git-send-email-pbonzini@redhat.com> To: Paolo Bonzini X-Mailer: Apple Mail (2.3445.4.7) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9391 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=837 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1909260110 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9391 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=919 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1909260110 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 25 Sep 2019, at 19:34, Paolo Bonzini wrote: >=20 > KVM was incorrectly checking vmcs12->host_ia32_efer even if the "load > IA32_EFER" exit control was reset. Also, some checks were not using > the new CC macro for tracing. >=20 > Cleanup everything so that the vCPU's 64-bit mode is determined > directly from EFER_LMA and the VMCS checks are based on that, which > matches section 26.2.4 of the SDM. >=20 > Cc: Sean Christopherson > Cc: Jim Mattson > Cc: Krish Sadhukhan > Fixes: 5845038c111db27902bc220a4f70070fe945871c > Signed-off-by: Paolo Bonzini > =E2=80=94 Reviewed-by: Liran Alon