From patchwork Wed Mar 21 23:23:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liran Alon X-Patchwork-Id: 10300645 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 68F5560385 for ; Wed, 21 Mar 2018 23:24:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5934129908 for ; Wed, 21 Mar 2018 23:24:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C27F29917; Wed, 21 Mar 2018 23:24:05 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 BD6F729908 for ; Wed, 21 Mar 2018 23:24:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754211AbeCUXYD (ORCPT ); Wed, 21 Mar 2018 19:24:03 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:59824 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754050AbeCUXYC (ORCPT ); Wed, 21 Mar 2018 19:24:02 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2LNNixg166208; Wed, 21 Mar 2018 23:24:00 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=TdahDK1UgQceWo9oDqcMn2nOqrqoZ0Mpk/xGnz3wEl0=; b=ihN8QPaZTqPOdBMZd94qgZhugzxV4yjMhq67Z2l1GcteJbLYvK4ZEZMU1omc0jeT8MqG TuHPVL8+rYaq7YZcMEG0jhkVV6FGNmGRDqYSDsmYNLp8FVU9CIhLGI74OVPQj8DgxTMS rfJ5Vw/HTZU/bxUHY6mrn1V1Pih56N/CnRebyCGy1hlYIsHjD+oWaAi8G8kI/SV6Tyo7 B+exQCyicpuPJrWJQl4XFy5uoi30MVZUBijK/cM4/90iSb5BM5fnijYxvfx0FB7Wa8nT 1+rdUh/KTd6CFIvBGOLQRUoYSI9EBwVAzRrHEvoLJWOicGipW38ABkenlnxOdLAmNUBD cg== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2gv11f000r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Mar 2018 23:24:00 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2LNNwTu004302 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Mar 2018 23:23:59 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w2LNNwbw021083; Wed, 21 Mar 2018 23:23:58 GMT Received: from liran-pc.Home (/109.66.44.151) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 21 Mar 2018 16:23:58 -0700 From: Liran Alon To: pbonzini@redhat.com, rkrcmar@redhat.com, kvm@vger.kernel.org Cc: idan.brown@oracle.com, Arbel Moshe , Liran Alon , Krish Sadhukhan Subject: [PATCH 4/7] x86: nVMX: Add APICv related definitions Date: Thu, 22 Mar 2018 01:23:11 +0200 Message-Id: <1521674594-12085-5-git-send-email-liran.alon@oracle.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521674594-12085-1-git-send-email-liran.alon@oracle.com> References: <1521674594-12085-1-git-send-email-liran.alon@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8839 signatures=668695 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=747 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803200127 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Arbel Moshe Signed-off-by: Arbel Moshe Signed-off-by: Liran Alon Signed-off-by: Krish Sadhukhan --- x86/vmx.c | 1 + x86/vmx.h | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/x86/vmx.c b/x86/vmx.c index cc76b5b5a123..75ee8e75ad0a 100644 --- a/x86/vmx.c +++ b/x86/vmx.c @@ -492,6 +492,7 @@ static const char * const exit_reason_descriptions[] = { [VMX_FAIL_MCHECK] = "VMX_FAIL_MCHECK", [VMX_TPR_THRESHOLD] = "VMX_TPR_THRESHOLD", [VMX_APIC_ACCESS] = "VMX_APIC_ACCESS", + [VMX_EOI_INDUCED] = "VMX_EOI_INDUCED", [VMX_GDTR_IDTR] = "VMX_GDTR_IDTR", [VMX_LDTR_TR] = "VMX_LDTR_TR", [VMX_EPT_VIOLATION] = "VMX_EPT_VIOLATION", diff --git a/x86/vmx.h b/x86/vmx.h index bdcaac0edc01..c035420d7ce2 100644 --- a/x86/vmx.h +++ b/x86/vmx.h @@ -141,6 +141,10 @@ enum Encoding { APIC_ACCS_ADDR = 0x2014ul, EPTP = 0x201aul, EPTP_HI = 0x201bul, + EOI_EXIT_BITMAP0 = 0x201cul, + EOI_EXIT_BITMAP1 = 0x201eul, + EOI_EXIT_BITMAP2 = 0x2020ul, + EOI_EXIT_BITMAP3 = 0x2022ul, PMLADDR = 0x200eul, PMLADDR_HI = 0x200ful, @@ -321,6 +325,7 @@ enum Reason { VMX_FAIL_MCHECK = 41, VMX_TPR_THRESHOLD = 43, VMX_APIC_ACCESS = 44, + VMX_EOI_INDUCED = 45, VMX_GDTR_IDTR = 46, VMX_LDTR_TR = 47, VMX_EPT_VIOLATION = 48, @@ -364,6 +369,7 @@ enum Ctrl_pin { PIN_NMI = 1ul << 3, PIN_VIRT_NMI = 1ul << 5, PIN_PREEMPT = 1ul << 6, + PIN_POST_INTR = 1ul << 7, }; enum Ctrl0 { @@ -392,9 +398,11 @@ enum Ctrl1 { CPU_EPT = 1ul << 1, CPU_DESC_TABLE = 1ul << 2, CPU_RDTSCP = 1ul << 3, + CPU_VIRT_X2APIC = 1ul << 4, CPU_VPID = 1ul << 5, CPU_WBINVD = 1ul << 6, CPU_URG = 1ul << 7, + CPU_APIC_REG_VIRT = 1ul << 8, CPU_VINTD = 1ul << 9, CPU_RDRAND = 1ul << 11, CPU_RDSEED = 1ul << 16,