From patchwork Thu Sep 13 13:47:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liran Alon X-Patchwork-Id: 10599581 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B71F614BD for ; Thu, 13 Sep 2018 13:48:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5D262AF39 for ; Thu, 13 Sep 2018 13:48:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A4072AF3F; Thu, 13 Sep 2018 13:48:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D1442AF39 for ; Thu, 13 Sep 2018 13:48:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730395AbeIMS6U (ORCPT ); Thu, 13 Sep 2018 14:58:20 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:48566 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730506AbeIMS6U (ORCPT ); Thu, 13 Sep 2018 14:58:20 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8DDiAMZ020215; Thu, 13 Sep 2018 13:48:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2018-07-02; bh=5Mh7Uj2YQXC1wAIaq2Lw8DIZa3VwwXTJsalAPfnbxV4=; b=wb9+TrpWIkIaabzN1ipku9+6+vKLKBnK0EIQKsZJtang3Hu8uKonAUUrFnB2X5tBfivh RB6HLJ6X2BxhLW8leUAVueDmUsII1SF/pFTMKC/yzymHvUWIzfz/1OW27YcZ/M+Ibc1C pmH71nAZW+9Mq1xa4QxGG+lVH/zqz/lg/Di+7+beCXL4gRi0CwBAotGiJaEqaWfvD3YH pSl/InbFUSkQuMlMgefECZvsuVQM0tSXehWmrbiA8EVB4sY+V+Bc+NR5YzJCUybI5126 zO6EBq2YPNOs7sewUQWY79LWJvz2d97alazJZ/c4mFpReIp543Vt1SFLLV1ILUUiXOGK PQ== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2mc6cq1gxq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 13 Sep 2018 13:48:44 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w8DDmgBC022145 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 13 Sep 2018 13:48:43 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w8DDmgvE013573; Thu, 13 Sep 2018 13:48:42 GMT Received: from spark.ravello.local (/213.57.127.2) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 13 Sep 2018 06:48:42 -0700 From: Liran Alon To: pbonzini@redhat.com, rkrcmar@redhat.com, kvm@vger.kernel.org Cc: idan.brown@oracle.com Subject: [PATCH v2 0/2] KVM: nVMX: Fix bugs in MPX VMX controls emulation Date: Thu, 13 Sep 2018 16:47:39 +0300 Message-Id: <20180913134741.19469-1-liran.alon@oracle.com> X-Mailer: git-send-email 2.16.1 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9014 signatures=668708 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=593 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809130141 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, This series aims to fix 2 issues in MPX VMX controls emulation. The 1st patch makes sure that we don't expose MPX VMX controls to guest in case vCPU doesn't support MPX (It is not exposed via CPUID). The 2nd patch fixes an issue in emulation of VM_ENTRY_LOAD_BNDCFGS. Regards, -Liran v1->v2 Changes: Fixed enter_vmx_non_root_mode() change to not vmcs_read(GUEST_BNDCFGS) in case !vmx_mpx_supported() (Thanks to Sean J Christopherson)