From patchwork Fri Jun 22 23:59: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: 10483345 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 992D26023A for ; Sat, 23 Jun 2018 00:00:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8724628E24 for ; Sat, 23 Jun 2018 00:00:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B7F129004; Sat, 23 Jun 2018 00:00:36 +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 2F47A28E24 for ; Sat, 23 Jun 2018 00:00:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934413AbeFWAAe (ORCPT ); Fri, 22 Jun 2018 20:00:34 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:36146 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934441AbeFWAA2 (ORCPT ); Fri, 22 Jun 2018 20:00:28 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5MNxQc5105824; Sat, 23 Jun 2018 00:00:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2017-10-26; bh=9LZLfQAUAt6GxxWN1nOOuDxb20huePqwogwCknf4oBE=; b=o/7TnW4HK5M4kJVTfntR6Ohjoqc6/hfLQcTKTg9+AoVWtZAtpJwZtsTNvdlkJspMc90S czMKPTnc0YBnwI9yBs7tk5eHig650RdoIMoDn7Kux4VLjVzAu8qvURFY+dpqszezb8tB doZZNEVhvn5kpiwqjxh1YrGNzMXPKDuUaU63fkflTZ6WhLnlib2U6idEo3GXmzn0kJij +kl6Lai9lkepagMRHJcrPXETHcFO/Cy1FARB53w0rcVdIzf9mK3C91fLRmgk8tNotJbn gGVfHqq0CA3kw+3Itg7bEdo6Mvqfb+VfmdWWsSx7u+13/ssRZzAOfGTo+fwykhT+WB5Z Iw== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2jrp8huqt0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 23 Jun 2018 00:00:14 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w5N00BA8024103 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 23 Jun 2018 00:00:11 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w5N00Agm026275; Sat, 23 Jun 2018 00:00:11 GMT Received: from liran-pc.mynet (/79.183.72.72) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 22 Jun 2018 17:00:10 -0700 From: Liran Alon To: pbonzini@redhat.com, rkrcmar@redhat.com, kvm@vger.kernel.org Cc: jmattson@google.com, idan.brown@oracle.com, Liran Alon Subject: [PATCH kvm-unit-tests 8/9] x86: nVMX: Add VMCS shadowing definitions Date: Sat, 23 Jun 2018 02:59:39 +0300 Message-Id: <1529711980-32764-9-git-send-email-liran.alon@oracle.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1529711980-32764-1-git-send-email-liran.alon@oracle.com> References: <1529711980-32764-1-git-send-email-liran.alon@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8932 signatures=668703 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=601 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1806220265 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Liran Alon Signed-off-by: Jim Mattson --- x86/vmx.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/x86/vmx.h b/x86/vmx.h index 4a96a88261dd..a6681c4e54bf 100644 --- a/x86/vmx.h +++ b/x86/vmx.h @@ -146,6 +146,10 @@ enum Encoding { APIC_ACCS_ADDR = 0x2014ul, EPTP = 0x201aul, EPTP_HI = 0x201bul, + VMREAD_BITMAP = 0x2026ul, + VMREAD_BITMAP_HI = 0x2027ul, + VMWRITE_BITMAP = 0x2028ul, + VMWRITE_BITMAP_HI = 0x2029ul, EOI_EXIT_BITMAP0 = 0x201cul, EOI_EXIT_BITMAP1 = 0x201eul, EOI_EXIT_BITMAP2 = 0x2020ul, @@ -410,6 +414,7 @@ enum Ctrl1 { CPU_APIC_REG_VIRT = 1ul << 8, CPU_VINTD = 1ul << 9, CPU_RDRAND = 1ul << 11, + CPU_SHADOW_VMCS = 1ul << 14, CPU_RDSEED = 1ul << 16, CPU_PML = 1ul << 17, };