Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755519AbcDGIVw (ORCPT ); Thu, 7 Apr 2016 04:21:52 -0400 Received: from mail-by2on0093.outbound.protection.outlook.com ([207.46.100.93]:13968 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751231AbcDGIVo (ORCPT ); Thu, 7 Apr 2016 04:21:44 -0400 Authentication-Results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=amd.com; From: Suravee Suthikulpanit To: , , , , , CC: , , , , Suravee Suthikulpanit , Suravee Suthikulpanit Subject: [PART1 RFC v4 05/11] svm: Introduce new AVIC VMCB registers Date: Thu, 7 Apr 2016 03:20:26 -0500 Message-ID: <1460017232-17429-6-git-send-email-Suravee.Suthikulpanit@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1460017232-17429-1-git-send-email-Suravee.Suthikulpanit@amd.com> References: <1460017232-17429-1-git-send-email-Suravee.Suthikulpanit@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [124.121.8.20] X-ClientProxiedBy: KL1PR02CA0009.apcprd02.prod.outlook.com (10.165.15.19) To SN1PR12MB0445.namprd12.prod.outlook.com (10.162.105.139) X-MS-Office365-Filtering-Correlation-Id: bab9a531-ef2c-4514-7538-08d35ebda589 X-Microsoft-Exchange-Diagnostics: 1;SN1PR12MB0445;2:ucChtdqTN/ST6ANwAAk/S9qKEDn1cv5Cf9BhW8PjFWB2HqorPR85DKr/gEYhYZZ4LK4veo37iMMKEb9QFeiKOaVGnkcSwJw3HEtbSDtFAi5/AAlsCJ1oOGxbM+iSo0TFgFm/fbNJ74U2/sBbwF5TbLI0FvlWSEmpwkgJLXsIqw8oy/c2LHUq67Fe0mktR7I5;3:TSpGdNfA3zE5njBYvTkoWVs296ksx1yVNlgis+sZsQqL46b146IwgmXMwjDNmX+OL4Qwt4rp230XF3jRdx7m1YFdmZNE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jRwNCKvVAEzzrV2Zowk0Suwr/XAyODlXmjYw5D1PiTLdNTi8cZZPC58/uUpOTNOuouGKwjizG3VLbLGCi2fGIGId1RG4m/BhdTcwTB3BhM+BJCQ1PNceX9yZGtqt4F4uRCbcVtC+usjcdGtHbM75sERJD5s2sML8/irZhN1R4evbMXc4b29jzyOPNVYieW/wiiwaWHJZ6kFe1O2MB;4:H24bwLG1QGtVNFYsp7ffB9Ga6mkixRRJmTuKIwG9lVqavp/VyF+khHw3+OIfPZpKjne8qFezUPm1CJ8jrFuaKajN0Ot9mWlWKekiv9k5DdEc7cdNfEDk0y9z47zdAcKByvz8vPTOp/Amgus+rCKoGgxwYVMh477Qwan7oeAGAEdTpxA6suGhHOtG732IYkv3gsbpTFGKVsrD1DLs1AMxsOHyToXOBFrbAFnZz76oi8aVjMZ4/ySznc69n5xGSzsnHLfBRVzLiiyt/EMz9zHMOYEV9qQ+1giprsygx01n7AbCcG782nyxxcl9fVhF3/D4oSrm5xfXwJS0TS/yVbTm9t/3VB36lfkkpbbcmWCYCvygRVX7pKQNbs2s1lQHfcUb X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001);SRVR:SN1PR12MB0445;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB0445; X-Forefront-PRVS: 0905A6B2C7 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6069001)(6009001)(50226001)(86362001)(19580395003)(2201001)(229853001)(19580405001)(81166005)(66066001)(5008740100001)(6116002)(1096002)(586003)(42186005)(3846002)(48376002)(2906002)(50466002)(5001770100001)(4326007)(36756003)(2950100001)(47776003)(5003940100001)(76176999)(92566002)(50986999)(77096005)(189998001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB0445;H:localhost.localdomain;FPR:;SPF:None;MLV:sfv;LANG:en; X-Micro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CbZStcIqFJ2fbUZLIb6iOIIjtqOmAbiKdJ0df/6ojTvuzGyXgQ==;24:4QPDpZhgWIOi0Y221+bF32JeqqoR2zjL8wEZQytaM35MAPNgBNiqR6IBDp56wvGjvmfhmXp8mNOzhuaEYcuLfg+ylfRtl7i4S1izatkDeYk=;20:tBSJRuzZOnTvGtRykF65WLnVmAgOuL8PCFw2Xm07eaAa1FOIcnP9zeo2z1LigfaFHaJpCIf8SOkXnLpVzNf0D0RGIXaPljyVTAYZOgWH0bu/i1S6gTokYQmpB9uUnxQs9aVW+D1xM3sZENHMRJ7nGP0XAIIkQ1BYs5UzJm6e1lQ4tbWgd5t/ASL/m82fNPLKfZdjBuwkHCe5l/oH0gfDRVR6mz9JN8X2W2m3FRABY/Hp2YYNY1s3yhIoWyIOFywh X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2016 08:21:32.1884 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0445 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1025 Lines: 37 Introduce new AVIC VMCB registers. Signed-off-by: Suravee Suthikulpanit Reviewed-by: Paolo Bonzini --- arch/x86/include/asm/svm.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/svm.h b/arch/x86/include/asm/svm.h index 6136d99..4711fa4 100644 --- a/arch/x86/include/asm/svm.h +++ b/arch/x86/include/asm/svm.h @@ -78,7 +78,8 @@ struct __attribute__ ((__packed__)) vmcb_control_area { u32 exit_int_info; u32 exit_int_info_err; u64 nested_ctl; - u8 reserved_4[16]; + u64 avic_vapic_bar; + u8 reserved_4[8]; u32 event_inj; u32 event_inj_err; u64 nested_cr3; @@ -88,7 +89,11 @@ struct __attribute__ ((__packed__)) vmcb_control_area { u64 next_rip; u8 insn_len; u8 insn_bytes[15]; - u8 reserved_6[800]; + u64 avic_backing_page; /* Offset 0xe0 */ + u8 reserved_6[8]; /* Offset 0xe8 */ + u64 avic_logical_id; /* Offset 0xf0 */ + u64 avic_physical_id; /* Offset 0xf8 */ + u8 reserved_7[768]; }; -- 1.9.1