From patchwork Sat Dec 31 05:45:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suravee Suthikulpanit X-Patchwork-Id: 9492611 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 5859860416 for ; Sat, 31 Dec 2016 05:49:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45A0122689 for ; Sat, 31 Dec 2016 05:49:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A18C24B44; Sat, 31 Dec 2016 05:49:45 +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=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A809C25D99 for ; Sat, 31 Dec 2016 05:49:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cNCVR-00042J-Lz; Sat, 31 Dec 2016 05:47:01 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cNCVP-00041H-IK for xen-devel@lists.xen.org; Sat, 31 Dec 2016 05:46:59 +0000 Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id A8/CE-01392-25647685; Sat, 31 Dec 2016 05:46:58 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA1WSa0gUURTHu7Mz4xiOjaviaVHJgXyVpob5KCv IolBBiUh66WjT7sY+bGeVLUK2sJQlYqP8YJktJEWrJCWoqaEuFWxkli/MQtlKUCGt7INpSjOO mt1P/3t+/3sel0MplFOEiuItZt5k4HQsuR7XbGO3xOQcUOfG3RhISa79cR/fiw6+bJvHstExQ msoMFryCY3zvqroWaDl5+fLhBU1+trQegpnyhTg7H+nsCFvCjF5MDXqICSgZC5h0PnJugRIZi dMVn/yknQAEwJ1tmovyaRgPAjcE05MAv7MIXjybRpJGmc2w6MZFylpmsmE3uGHSx5gQsH96iY haW8mCxYG34h+SqyWCRUzh2W7H7irvuKSVjAAXePjCvkpC1VNVlLW5QjqGs5KWslEQ9+LruV4 Fsx2u7EVPWSvXI53Y/DAs0PqGZi3JNS2tuPypZWEn3P1uOzSQfvdS6TUEIjD9DSly55bGAx+H yfli4eAjor55bTBMOruJ2TQScD75hpMHicP5qr3yR4nDc9drOypJ+HyyzJC/i4VTLe4kR2F31 4z9u01YzsQ5kSRAm8q4U0x8YmxBSatWmPWc1pdTHzc9lg9LwicmtdxBUJsoVH/FIl7sE48Lai ++ZALbaQwNpBOSeFzlb4FxtPnNZygyTMV63jBhYIpigX65H51rtLPxKt5yxmtTlymFQyUDxtA h0qYFoo4vaBVy+g1ClMF0bPpImAkoCk2rD5bWcNeFKLyp5HYiNKniDfpteb/+SQKohDrT0dJ6 X20BvNq9kmxMCYWDtcVSoXN3D+ksqLzGdMNt443GzZtPbouAs8IHHFsCK7oPFL5OCd1rPfKxY 5rQ2HZH/sS2uxG965ke21kWklaQikXUZL9ZeBUef5Y6p0TTW17rt+L6liYaeVGwkrjfH73XPh Q5EoaukrPOCcSh2tKk+znDlgvOBb/EJxtsftXTf7+2UaLO2irx6ts9yCLCxouPlphEri/KV9+ u4EDAAA= X-Env-Sender: Suravee.Suthikulpanit@amd.com X-Msg-Ref: server-4.tower-31.messagelabs.com!1483163216!20347649!1 X-Originating-IP: [104.47.34.43] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.1.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6508 invoked from network); 31 Dec 2016 05:46:57 -0000 Received: from mail-by2nam01on0043.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) (104.47.34.43) by server-4.tower-31.messagelabs.com with AES256-SHA256 encrypted SMTP; 31 Dec 2016 05:46:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=w40TlkJZEBwkuCvPeXhspOdStss8OAWVz5SlUjCpoiM=; b=tNuL8uDsd9ujCj3BFHh0w2vY+VkG3yhWZoBglkp5iGDJ8nyQ++d47/navlwl5PjlKxnHKp2ukzuxezCTHxEzUp+mlPqnUGWRIngu8Dt1weX3XCOcn8GNwHe6wyqv2fmuEqimZFMwB3cNyCW0VnZkAe0qluc+42VyaaJTgJCCjFo= Received: from localhost.localdomain (114.109.128.54) by MWHPR12MB1453.namprd12.prod.outlook.com (10.172.55.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.789.14; Sat, 31 Dec 2016 05:46:46 +0000 From: Suravee Suthikulpanit To: Date: Fri, 30 Dec 2016 23:45:55 -0600 Message-ID: <1483163161-2402-5-git-send-email-suravee.suthikulpanit@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1483163161-2402-1-git-send-email-suravee.suthikulpanit@amd.com> References: <1483163161-2402-1-git-send-email-suravee.suthikulpanit@amd.com> MIME-Version: 1.0 X-Originating-IP: [114.109.128.54] X-ClientProxiedBy: PS1PR0601CA0058.apcprd06.prod.outlook.com (10.167.43.154) To MWHPR12MB1453.namprd12.prod.outlook.com (10.172.55.22) X-MS-Office365-Filtering-Correlation-Id: 1ac384eb-bb2a-4de7-c3a4-08d431406cf2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:MWHPR12MB1453; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1453; 3:DFqLa6jcpQ+BoTdY0FHJeyalGZOSMK/1TiMwQJjSUSdS7LYsjfMGTTxdt+xyMzF+kx2J4+DvUqw/vIu0PGmlbZUnOl9q2JRNHFLMnaZ6bg02Yk2kc9l8zFqMCtL/I0Xj0u+nxHxaJUHtjBvshC0qNAyTQCnzPiJQuJV2Rth+kU7aIfL3lC0E2UwOY0sgsTdNqlagNZV49LT9HiCzq/z7kUt0xPQ74etDDaAHVBJM1idABh2eDRG9hstcCDPcnMJWsaIQFKiTILyOElKR+EA7xg== X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1453; 25:EGTuRZQWUBvldePyakraJxruLisVanRezSqH5DrCTX/ZXlryxbuNhnKg9BGnipmtUBllAbsQ7LFij6rcQHRcf2f5ZXpc7C2hG4/JfmDx9TfDKtT+RJgFElvBWCWbyzPQ0bZuBC838Lmsvf0u2n3WpQd8A7/QkX0ryQ5IdCJ4isMSIr76J1LoI3QVKxuZlLYiauCKqOOdyUAO8s+Xq3hboi9rtQe0nMuZg0h7rPjSojOXiu7b+PgBcbJnOVw/OtdrLpwicv+QhRSkWEjwfJ4rEaBuY+qkhG1x9F1GYxuBVJBB/zZAwgzYH+dU2QDk2V6korhdN38PbhnjqOQAiosv0Cki08ZsJPZwKzsbZnDgPr62C8n6unNMtWYjI6xOsFs74ipjjJlCOR66gnHuSTGFZfIZxQujC2KlgcsTBKcCiR+CRdCadkfQg41LpRQnxbbXk04xZNhrhsZPIl+4RtVAj7Xmx+jkp72MRJENqRR06dQeTJKfXpR9Lr5Wliv6/kwr5iTkQgMJ442mHgCF4YleMLGFtguVDBCsQ8nMdeTYCuKVhJq7lYnwz1iTBNsyI3OGZlG+7Zvd5Tzwr5raGwbWDNJEH69R4AE++UrpWwWep91k6urh/tzGbI1HkCpXavTY5vjMGGm/I32yPL9gL1knROqhiOMQGkm2H9YzefCFhiF9YpRWX2qAK0HWs169tCC0ymHC/oAtAyHrP63xHGkNemcaGF4LvZ8CP+lfGbvAJKl4TVc0H7X+slwvCq8e8xBro7oC2DvyQ2OsgjM3NoJWqw== X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1453; 31:OKNBrIG6Y9a/iBzUlVfV6IJQnuWmG/7nRfbKFT5PMGlp1if7ENaUAFDXDDFSU9SmGGeAkLSPHohaq6BacHuZPJotWOc2DYtBFeoyqgoodVhJvtR2TEqe9LYuU1yev7p+/+kVT1xagd6Ln40AH6roFbdpzTLecJT1usRSZD8Ak5aWa3Z1ql/O7WWBOivu04jp0jL3nAKVIkG+3rS0+V6sMxLQUnQRvnuYs1lEMXmulEQBJnnVA72eHucfjuSFN+JR; 20:OUJVauywo17c5iXCqLPXOtdfVXey6Jq4PMpDpIJ9rlB9th0Vt4066EftTDxPmWJeQqye7L0PxQIHoxdhyvFT+6W+576P1j2Fnw0Ynbk7i0qkR2IYQdBaN59qcQfg7z3wk0aZ5RkEPtqI1RyRRnkD4aXgoaVnxFuZJPetqK7GaTyiDWXKPxSO6PP9ZoZAMCNOINEPHJxKbSmBX5p/qC4Y+uyBpVsFH1Bg3sSBWuImOVaSlN/SB8rKTaFKPGii4+Nd/hZRAL4Lo9xvTmgwagic1V82yY28Daqcitf1Z4TirCMTQO+8FcrJX8purq7ZSMjYrhsDhgMezkZZ14KRubBkiyniDAubemIz/0D8BYIxOmLJnOyuEFfHDHY81Waw6D5SyEgeC27yTdYuJ5S+HhFF6+rWfqCwaLRwPee2HzZeSnTuFOGsHHIFkkIyyZa1AaORKpXQGHUqmBaere62MU3UqoWEY68AeI12bTU3go/56MRGpSlP6WdaGD49ebLSvEKG X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(146099531331640); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123560025)(20161123564025)(20161123555025)(6072148); SRVR:MWHPR12MB1453; BCL:0; PCL:0; RULEID:; SRVR:MWHPR12MB1453; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1453; 4:DZ1LruZsPYvdUd3HMoaaBoN1DSqX1uKDGGBEMMHqTYj7lBuTuEu5xMkVnr9HZykiYVMpMva19piyqW0/JEdWbckLJXwr72SHA+rgtuTiPgXWZt5yLaBYLwDR7OPu070KLBgcbl668+JLh8D+TBbgTaVrz53ZcxsXHOmtF5QxfX1DAWIuUR32jQQy1cEK3M79oWT50+7liubfKa2wrx9zErGUx0Ipa+GkrUkIUxiwz4D14UUZJ9Nlknvf3tDnWmD5puluHvg3sS5cCLb6wqP0y4u7j5PUYIXRQzfqU6T+j2lI3xj8luKvS4LKmM/Lyv1cZvaXHA2SWdKnyrS7LWrESoK8cm2aIDFvjkaZdm8ErpTF+OcsY6DEv8f80dau+9w9bD+N3o+ptHNJLKLYKESC7UWJdQntU317lmb4W64ZJ7RrpThaUBl0oQcBk7SF5w0BdVhWF+DbEfEtqIBNrk5Svs3jW2iukcl1Sh45DCKep9tJwhXjMUnsE3Ocv3toHWPjIFoHOvM8hDK4Qk/1FdpPAfZfB9IFOXMn5ZVzCn1qA/TImIEzMMhxjldOi0KJcmOoJg1i0MeH8FxrTfbhFqO2fjRy26DWCCp+eJU8n1E8gesS22tIx7awUvAcP+E+KaLDLAHCnhZY7BjiPez+TgCQ3g6H0c9yOFuuFM5+x1vMLx4= X-Forefront-PRVS: 0173C6D4D5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(39860400002)(39840400002)(39850400002)(39410400002)(39450400003)(199003)(189002)(92566002)(68736007)(4326007)(25786008)(105586002)(48376002)(50466002)(81166006)(101416001)(305945005)(110136003)(7736002)(5003940100001)(8676002)(2351001)(3846002)(36756003)(106356001)(50986999)(6116002)(8666007)(81156014)(189998001)(42186005)(2950100002)(33646002)(76176999)(97736004)(66066001)(47776003)(54906002)(6666003)(86362001)(38730400001)(5660300001)(2906002)(6486002)(6506006)(6916009)(50226002)(6512006); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR12MB1453; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR12MB1453; 23:8aslIUBZQ+8k8jDkirmNUa8Bihat2kA1qACmNgBfQ?= =?us-ascii?Q?Y09N40omEI2bpqID0UsZcaXoTXrL270l9P41VvUpIF2JP3wKds2LdDv43nMd?= =?us-ascii?Q?LwbhM8LpUz6jEJeZibids2731HFIVkWH0Dx1yoffQexLtSCzeqLQIe4qEgIM?= =?us-ascii?Q?gfKlp+TsdV5wOQI8jEpgsu4LExWfa69o+SYqAiFVrGEtu4YL9OJ3I3e4ckAj?= =?us-ascii?Q?B4cAdWGYAy7MavmJSkOQdDRyjbqWkZR5pBuUtC2aZgaAVdyOsxkX9uS4MOe/?= =?us-ascii?Q?N7j7GnVaQS7syN/pgNqYX8+b5I4kp5OVYxHoHltPsD6M7ySIQbIURMzMUvf4?= =?us-ascii?Q?dnYM45QARmYps2EC9Z5waJcK4x7ygl34QoqQqJ17ckzk96ERyhQimv/MsQI2?= =?us-ascii?Q?3dF8DQg+64sD+TQqvLqW6PB/IOS8YHhOiooZVG3ODp0b2eVUiZfzilinSGaF?= =?us-ascii?Q?H1bN/KD2Exf18Apw+pTdt/anXr93ZUm332cjZdZrqUcLyAHjaJId9ngRbRo1?= =?us-ascii?Q?E8VDETjPj247yLQoj85ew7pKZ8Nh/An0vlHlmli6k2LXD+0zcH5F1uMP+krv?= =?us-ascii?Q?3mPQ1ogkNdPcx0JEmT7eH/CAXEmlF+urM6iWdgiShwRdqFCRFN5kl8Y9jN4p?= =?us-ascii?Q?18mT4Yjl4//fGlreSi0LPygJJu7tzFB66MyVnBJGTToMeZyehqiIpJr25dQR?= =?us-ascii?Q?sUr/3+ooy/FxFJYJfadRxyy+eb4X6zFxFoib28J5zZk8l1LEX42PxuEkjwsj?= =?us-ascii?Q?jJBW8aj1TFqVR1kbF2NJDeyMzq1CLKYW5hVCaNg2PmKJ1oNn0lIWRuvo8SPA?= =?us-ascii?Q?8PTibXdKr7PrHX1p3gikhmEw/gcMrFbF3YsHDopwz93CZN3T9b0y9GdUiISA?= =?us-ascii?Q?i+vFcmCL69YFK+9Q8aJg3sAAixfewNIQsoPJ/OVU1b84d/FV1DWswI16IAZv?= =?us-ascii?Q?SF3s+XWpO/sykss+1W5DmGkT+YnUh/EaE0g4cOo0hMPsiANmwDA2NnmADWm2?= =?us-ascii?Q?HrmuAtzMxo0H8pcOox3vrzzdwLO5AU2fRaoP1tQRaLeg0aW/2RHFFsM3rynb?= =?us-ascii?Q?5Fn0RihXfkD3+OVOqITVqrcku9BB9KKmS/98go0KR3dC3Azekeb3nwIsvjCY?= =?us-ascii?Q?7ovMEaqtQWeYt0bL0El2HDt+QyzLPaUCKEuNMzsl9Vik4W9f/Y1LYjlCCQcT?= =?us-ascii?Q?8abvulBeJZEM/+GWz9kwSft4jbsdvP9405SNAT+lazlsFiw+esCH0o4NzKDE?= =?us-ascii?Q?hR5N1PdEhFhA252SarJg/DDAAW+RFn63nWoHdlT?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1453; 6:ZVGLKUnDHm3ORpXKEH1oxLbSB8TaTtTQbLIEnQmtHsBm9j34BdWA5YruMQX2cPuro6TNEGt32RzR8uYtP6yBOtbupuI6V6c17birBFfHIa5XXgc/5H3AClArUxzUhJZif5nZIo0SYGNhO7/KDR8E8WQjz6STUwdB8Hm6z0PuUGIp9TOH4fgWRShkeG5KsdElI+25OOS/0walnMNZMR+B+74NykTWYlk16WGA1/DPjj975ALoxS2JQ6rKUCt3Xb0Ft93FIghsZ4E6rSvEg6K2aEVOCt/YkiLTXWwz/VgELabQ6b5QR87EJ1tUraF2D5WIY78JcNJJuXONfdMg8uuJrBzZdyImPJBu6L+tu2Jg3HK2gFTXrASd9cxVmhpxMAMhs+9Fg1ktbpi0Znv8VpvLSzsyCTmu713sokC9k06uH7+qwqCZd+uhNArwsGhGYGTGWI4SxWlRMWePfJgcD14iOg==; 5:qp5W+qdctqrq+nJHNOja9El/VOK9NiYa2ew8jD2npP326zYvuOrQYsdza5I/PeFw1LB7umlcvyIkC6tPwd8bu5xqNfw3BEc1kKHYA2xiaZrQPJRrLxSahkgxivCSondtUgJO16Zn3TGjXDgO8jpNdyvjSLmHlY0IQyKEj0PpVbI=; 24:BcxbKnfkG/nkkRMey2zNxlR7/YK2AGfwMuK6aOWo72+vfpwaUyspm/avvhdncK9KQk1kDoZvWiwviNyexzVnmH9ATC8PE/faWNdQ7K/2p6o= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1453; 7:PRIMO9ZLWJIRwRHtRCbvuvsdt2fGYlGEab+vC+y6+b5SUtdy13uekC9zWUeMPWqL6++zXeH/fmMAK07M5RMFKMBl+yl/4e3MzYVlw/LiCcRbPohNZ/X3H08K5ECzTgeaq0voEugOPe1a0M+H9B0OE7VgpsX9p7u5T5VpreNrndq/4eMOv2mpcVZ9dUHi+mY+Nat0cZClN69cdpYxzyuyR0Vh/RCDLT7IjuCcEkWwlM5PiXGK5wZbiLtRZc55lJ33Dey+wc56AUgXF/vD2RqE3MK8d3K1V4gffLB/Kf94j1Fw/wbMwEfeZWiaE4T2IlZy0FwkKilGjRY8WIIUMl88G/bt0yTfKbWX8tM6iuHmcRVsuyedZVK21LdHfRX+TBVNhT1/LrtTd+WIphPO6XLuYPxD8TFAs1RK4vQMO3gyzEH0Z+P4hlpUBkPSRdifN68LgrWztp7qRvVp2o26ucT+Wg==; 20:1DCX0KjMsWuGk0/dWX/Nj3LBfA7FlkOhgFJRqMHbelVPgWzGXK34LqQofxrbkpmgC9reZgVUBEML8Y8bA+mECIitUBVz2Lkt9X6Qw0/nA1IJg2T3qieLuuVEe39hJuNVtuoyEZaEpHIdEjgOzor6jnukglgRFUjHalfFVMfKaqVSNlpSfx0PvQAjkvp8xDsquTWkAjRey3TmaGmZXyE/6sh8n7HQp8pTjGW8YdW8C9QFGXzM5j/tOTJNDNFxC7Wo X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Dec 2016 05:46:46.3674 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1453 Cc: Jan Beulich , andrew.cooper3@citrix.com, Suravee Suthikulpanit , sherry.hurwitz@amd.com, boris.ostrovsky@oracle.com Subject: [Xen-devel] [PATCH v2 04/10] x86/SVM: Modify VMCB fields to add AVIC support X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Introduce AVIC-related VMCB fields. Signed-off-by: Suravee Suthikulpanit Reviewed-by: Konrad Rzeszutek Wilk Cc: Konrad Rzeszutek Wilk Cc: Jan Beulich Cc: Boris Ostrovsky --- xen/include/asm-x86/hvm/svm/vmcb.h | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/xen/include/asm-x86/hvm/svm/vmcb.h b/xen/include/asm-x86/hvm/svm/vmcb.h index bad2382..43cb98e 100644 --- a/xen/include/asm-x86/hvm/svm/vmcb.h +++ b/xen/include/asm-x86/hvm/svm/vmcb.h @@ -328,14 +328,15 @@ typedef union __packed struct { u64 tpr: 8; - u64 irq: 1; + u64 irq: 1; /* ignored in avic mode */ u64 rsvd0: 7; - u64 prio: 4; - u64 ign_tpr: 1; + u64 prio: 4; /* ignored in avic mode */ + u64 ign_tpr: 1; /* ignored in avic mode */ u64 rsvd1: 3; u64 intr_masking: 1; - u64 rsvd2: 7; - u64 vector: 8; + u64 rsvd2: 6; + u64 avic_enable: 1; + u64 vector: 8; /* ignored in avic mode */ u64 rsvd3: 24; } fields; } vintr_t; @@ -394,7 +395,8 @@ typedef union __packed uint32_t cr2: 1; /* debugctlmsr, last{branch,int}{to,from}ip */ uint32_t lbr: 1; - uint32_t resv: 21; + uint32_t avic: 1; + uint32_t resv: 20; } fields; } vmcbcleanbits_t; @@ -428,7 +430,8 @@ struct __packed vmcb_struct { u64 exitinfo2; /* offset 0x80 */ eventinj_t exitintinfo; /* offset 0x88 */ u64 _np_enable; /* offset 0x90 - cleanbit 4 */ - u64 res08[2]; + u64 avic_vapic_bar; /* offset 0x98 */ + u64 res08; /* offset 0xA0 */ eventinj_t eventinj; /* offset 0xA8 */ u64 _h_cr3; /* offset 0xB0 - cleanbit 4 */ lbrctrl_t lbr_control; /* offset 0xB8 */ @@ -437,7 +440,11 @@ struct __packed vmcb_struct { u64 nextrip; /* offset 0xC8 */ u8 guest_ins_len; /* offset 0xD0 */ u8 guest_ins[15]; /* offset 0xD1 */ - u64 res10a[100]; /* offset 0xE0 pad to save area */ + u64 avic_bk_pg_pa; /* offset 0xE0 */ + u64 res09a; /* offset 0xE8 */ + u64 avic_log_apic_id; /* offset 0xF0 */ + u64 avic_phy_apic_id; /* offset 0xF8 */ + u64 res09b[96]; /* offset 0x100 pad to save area */ svm_segment_register_t es; /* offset 1024 - cleanbit 8 */ svm_segment_register_t cs; /* cleanbit 8 */