From patchwork Sat Dec 31 05:45:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suravee Suthikulpanit X-Patchwork-Id: 9492607 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 4283560416 for ; Sat, 31 Dec 2016 05:49:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 315BE22689 for ; Sat, 31 Dec 2016 05:49:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 25EFD25250; Sat, 31 Dec 2016 05:49:40 +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 A7F0222689 for ; Sat, 31 Dec 2016 05:49:39 +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 1cNCVG-00040T-E4; Sat, 31 Dec 2016 05:46:50 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cNCVF-0003zx-5E for xen-devel@lists.xen.org; Sat, 31 Dec 2016 05:46:49 +0000 Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id 9A/A5-29113-84647685; Sat, 31 Dec 2016 05:46:48 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA1VSfUgTcRje77abp+3knIavSwUPExE0FYRUglA zXSpSWKMivdm1LTYddzMXBGoEhpgJfqAiaRn4iR8FKkU0LRPL8KMSA8uUlDHLUgnDiNrt1Oy/ 5/c+z/u87/PjJaRKB64iWKuF5fIYIy33kOkP0Vnhyck6TeR6T/Dh+2stsqMoZeTxLywTncUNe dp8aw6ur/56zLzlaX06eqAYTSrKkAcho25I4cmnZbwMuROIyobV+WYXVlIlGMzW+QlYTsWDo3 HOTcA+VAB0ljW6sJSyIejuOidgb0oPLRXXXb0y6iCsz/2UlyGCIKk0WJmLFMpABcLYiyqXxJ1 Kh98z40iQKJ2SmxunhDJJecFY/WeZ6A4wZLdLxVYa6vuL5SIuRdDZc1ncMgzePB/arqfD2kit 2w6erayRCxGBeo1B7YdVmfhYlENTe79MVD2Sw1J9sIiNYOuadu0MVCpM9CeJ+moMZr7bt50Wc Fh/tbS9kj/Mj73FRcKGw9TAHUyMkw1bjYmipoOEmj/ZoqZLDvc2bZj4Wyr4NjiGKlFIw57YDX tiNyOsA4XyLHeF5cKjYiO0nEGnt5gYgzE8KjImwsTyPKNjjYyWj8jNNz1AzhsokkjQIFq8nTG M/AiM3k/GxrIapac2/+JVPcPrs7kCI8sPI3+CoIG0J+k0Si+O1bHWSwaj85B2aCAUtA+5INAk b2ZMvEEnUi9RkMqXLBEISiD0BXm7bTsnOI0CVN4kkkgkSoWZ5UwGy/+8A/kSiPYmewUXhSHPs uvucA7GnINDjLnCYAvzj1IVI1Cr4/paPRLauMK0mcS4dsVaq7I8o6mysOG47Rl+5m6PdlJSmh McX6yOuRDYJB1RZ1b9KDxfMVw58aWGNRX1tkSbB/qyToS+707YcNSoUtxvPUyNDg3cyPqoUte dnMrY57c8f+1d7ya9FdS2eGRoHE8drWtIStSUm/taG1dOW2gZr2eiwqQcz/wF4pq08H0DAAA= X-Env-Sender: Suravee.Suthikulpanit@amd.com X-Msg-Ref: server-13.tower-206.messagelabs.com!1483163202!62235236!1 X-Originating-IP: [104.47.34.85] 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 21331 invoked from network); 31 Dec 2016 05:46:44 -0000 Received: from mail-by2nam01on0085.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) (104.47.34.85) by server-13.tower-206.messagelabs.com with AES256-SHA256 encrypted SMTP; 31 Dec 2016 05:46:44 -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=2620AhXqOfwssVG/ZwAR5QhM4wCAuk59b/tdgdLNovc=; b=QDmPD6FfigUFtQ4LjId/xl/qrLyU+VYoks8r6iOXwhk12WieLXeQpaUT9uQFLVRmTKKHyBnOKHVnRwLAa6VSQmLhXvlN4nmlHjP5A7kLTTn6ZjOO0uN9ObJCrdxxvCa13mxHRkrl/0vtAGo5iEkmdo2MCYnaZiOWBtHGdoVzOIE= 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:39 +0000 From: Suravee Suthikulpanit To: Date: Fri, 30 Dec 2016 23:45:53 -0600 Message-ID: <1483163161-2402-3-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: 55d3452f-0509-4946-24cc-08d4314065c3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:MWHPR12MB1453; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1453; 3:95Rm1oSAyoWriooddXLuTuOP6O+Bx0DxsL0cKj2hCYg2/QG8cPRs7stDAIqLaHJWPhONJcvo/jrw6Jm/93XFLy5Ly+gE3PgWIiCB4uGSScV6VGUmBCua1i40bhBeCKE7XfyWlTQkM0Mto4nn7da71uxCObcy/9oS00kmjxBLfjCNEyNnh0B3gQXRCzfKze3twYVuXziuZgaVVaU1tyVJguQRRg9eifCHRuhcENBeoHCSQ97UdS53kh7xtRhbQG4xHIu7jpU0NeWHbZhf3qP9IQ== X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1453; 25:4Zg8aviUR3BxHSArPC8k6JwViTErjWqEUAi+8L5W37sci4/PTTx8/63B4q/47bgRh6kIZRTwny3jZ8HAGQDwHYgC36oqB3M+pH1SJ3kI4IMWEBf0AsKCtqTe3ATYmWeGCo9eJ5sjenpvaml1jdAjDnqF9sTgF5rQI2vY+FcOKLWmB7irJNBLloVu2dwOOoA+Ro/9Y3H9G/NsxWqV5oR0HVZ5NeM0mmkXbfymsXHDrlks9zW9H3/aqcQYtDFEl7Bpp/Cb1LmQuuGePGHQbBl2Nb8xISt0fHWNjP4YHJ7F5mKIXhA4GkUmbduZv9SXSAlXeQSThIheTvr/BBfR/H5jkz9ORQDyPM3F58l4QFvfr3YmucV8Gb9iiHXU8kpnag0OyWAFgHlLWomJNvACQEPWw2HzTCqYs74FvAR2JX9Fe4sBqEBl5mXcpJ5YKuVv9WwthCdIS/HzUcAXlJdjY5ujFdkaUExdl9moWSJgCR9KgrUaMO0G532yT7VMTXoAStMNqPoQzfJtAoSjVvSVPT+nUZwdWItJFD3CmEtJRmIOZfO/gPQRjN4EKTtZrCvx0v1jDw7caPm5p72eI/YzX1WuiFMgs9vhZ3WfeSDMZSpc4YV9PSgozZ+elaGsKWxBTySPsuOluRNPv6tzX+0GKtTJbsUp5UbFmSGFYxbyDKnne+7qs1Se8V42ygL8ctVf9LNaqjY6Oi4RQhezF46JQIDO5BEwjapDQqEi0//A+4ir/D3jJmM4NJxmJXSNKtFk9j7bmsukiU5+hmZPsSJAik1fTlMUEIKdauDh8mYdAjWozug= X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1453; 31:bM1PsaW8CINXTb/OeVg/7eb8COahVUoMlXxtsM2pziAXECkfx53G9L0gO2uL2KEBvCTN1fl4a1WnfDzALtENhvmK5A4Flz02VdHZgYUVSU/iN/fEhirTgFLeSaYDIwplUkvDIkML5DbC10xch7aiiiijIQg4971opj6TebQUAavBI+yAf427qU5JU+XwOcYDhG1xZN8MwaKuu6+NLeKOM69MarohRO8J9Vfy0VGCJRCF5p6pAjy7EcOjDqnjcbZW; 20:dWELgJ6lTQR7A+vc0rVZ8zEQHnEpQdnJtjviUV8YZGAA3+9XPB3ox/3hSsG6SzdwuWdEtxa5Je9xoAZ0wdw+dsZSu0Bz0mdB1+y+6nrBEkBqUqWg92Cne83iMbARKgbmoI4D7iBMnVDjTl5EN+USvmrIawMBGRw92g/2MX3KAFXZe43utIBXkun7iiXvOxw1WGyEVlU8xclmGzKxY8wPG9L3jvjmM2kK+nluPjXBu6ed3uBoAcmSzs1XUGtiC8Ny2L4ziNo4K3yz40Ond/rmN2cbIEpfytAHeH5O8okDg1TnzilVSf4OPfmE2NtzdbgdqD9EdQk/fAiCffGHCRx4ehRHgs5z6+brK5qRfS7q7grBsWaF8zRTrA56cU6QgGzLBj4zYrBi+CPOH3fEEploKP3AZeg6H4HqKsm7rQGPxWC+w8ta4/6EpCwUIFAMQvuQ1FYOjWAB2XG41C9kxZFCiMeSLm2o1J4JqQmXIn17i1WgykRW2eaj6p93WotJ+Qfu 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:NbUBVvXfDtJVbKXBL6rIr8E16dpWDWKN6+6DvS6b9GByaEOjYGiPCGU8k2uTvWG5+ey/ImpYcC63eqBrUFVomkYnTgJx90PBOs3pVJpZyFxHKMeWIyvpOpUFFqzskQwCuM/YLp9sJIvE7rtIgLNjr4w8C1xDtYoJkbt1Bw6QNwDOM8bKuTHbxDo6JVvufHKsrrVMW4q/H1p8hfp2dDbgAoOvk6YDS2jdc90hTQSvoeM7jluCEiTNssudMD4DF74BYWafcp8c1gp8sxzmtnTvxf5H9Zxz1zRt8lwPLUJ05xcV1Tavru1TlNWh0YzM6x3Zy+IMM+JDgLr8tUozCAztrrXKL2rwkt1IIsj2Ts6n3NsQL3Vx+Dy9n3PtNO4sqNpdbvNOp3hBnAPeD/3Dc752kaTGQzwLc9Wh3oGO3V7DcuZ1KB2liIcnnw5bDKeQlqhbnQZ8FJdKRwgpsnVgbCZQbQKFKXSF3rVx54CTqk2LDpWW8fiY+Xg1YbEmu9cUVDzu91N5h3TgkZ598hT9JNxrjEoMASqNVOCe0fZ7pZ1ylyD3KwYFn1ayowmXk7JRhDJqy+TfivRT8blOubRw/z+CrirDH1c+cgByx+S0GFfL8prgpD1JsjzyklTgBmameo2GF75adOK5woQb86ANSo1/d9Ar7oHJXyW2cBs6RIFFao0= 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:j3LV7r0W6kSVPVlr6a2ymWZB1j6D7mVwUMfH79pxj?= =?us-ascii?Q?V6hhcnst0mvVmr/FSVP42gmCUN2RFLtPs6evGmVU3EzzIgK43h+NrW9ubr50?= =?us-ascii?Q?bcFh2opdv8JEgzACqUopzz4TT+tbx/mYamHPVxq4x8UOIhiv79tan4T8u7Fe?= =?us-ascii?Q?iF1MBrjHhazXvTmpVOb6iVBQf1IE3by1vt0cAFJe8WREhjc9o5hSAUdGJt+o?= =?us-ascii?Q?emiADqcZuP90GWjGNSGd9URZF+3S6PejyiSJTnfAD5wqS1P4ZIcgf0SP4+DW?= =?us-ascii?Q?J+8XrUhpHrg8Za2TTlZRL15kgnQmZn29yKs4pLRTgNqyWBxOtIyTazJq+tER?= =?us-ascii?Q?gh1z6/HesmP686AxUq52z/yd1SSpZRnoy7RdkjHbrqkZIVLGEaC6anSdKoBF?= =?us-ascii?Q?Ghz4JuOHLCBBkMpDppro1XvXMm/XvOSWwiS80atTlnrbfHdUSJwzWleQWIlO?= =?us-ascii?Q?hqu0cUb5+F7vyeZfEQvbqy9Iz5n6ow9vIr+WML4mlo+Ck9UGccd/5+DLsxh2?= =?us-ascii?Q?FnXxgjaMTFNUt04mpY8w+O6duHzaqnII6n2FvKPIkYQ8Jv87LEgghPoSTkWp?= =?us-ascii?Q?0sGy9JVTIHSSmIinhr4x/Eo31l9nWz3p3lsQ/Z5HTqxme+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Si/74ZmM4t2c4oiU0LCxASzgw9fnVC0DYReZB44GfNu1b0/aVC6XyBRUf4pLD3fr0ZEaFPLVo+BgCtLCOav6OfTKRTgVHEB06fjq5iHOcVxJEngu4lIcttTM2l1wBztM3opk8xid9tQS1fiTxV2AoapZBMiYgxIXt0cQ/OmwOgoWyVZrKNp5IIiccj5mQAZvFouDQNxKQBcJGdVh6a0ehsHeTWSq63EgUF7c7f9OKRgLNTyzlh6/wBg94PWaK1 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Dec 2016 05:46:39.5787 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1453 Cc: jbeulich@suse.com, andrew.cooper3@citrix.com, Suravee Suthikulpanit , sherry.hurwitz@amd.com, boris.ostrovsky@oracle.com Subject: [Xen-devel] [PATCH v2 02/10] x86/vLAPIC: Declare vlapic_read_aligned() and vlapic_reg_write() as non-static 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 Expose vlapic_read_aligned and vlapic_reg_write() to be used by AVIC. Signed-off-by: Suravee Suthikulpanit Reviewed-by: Konrad Rzeszutek Wilk Cc: Boris Ostrovsky --- xen/arch/x86/hvm/vlapic.c | 5 ++--- xen/include/asm-x86/hvm/vlapic.h | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/hvm/vlapic.c b/xen/arch/x86/hvm/vlapic.c index 1d5d287..0f52067 100644 --- a/xen/arch/x86/hvm/vlapic.c +++ b/xen/arch/x86/hvm/vlapic.c @@ -562,7 +562,7 @@ static void vlapic_set_tdcr(struct vlapic *vlapic, unsigned int val) "timer_divisor: %d", vlapic->hw.timer_divisor); } -static uint32_t vlapic_read_aligned(struct vlapic *vlapic, unsigned int offset) +uint32_t vlapic_read_aligned(struct vlapic *vlapic, unsigned int offset) { switch ( offset ) { @@ -680,8 +680,7 @@ static void vlapic_tdt_pt_cb(struct vcpu *v, void *data) vcpu_vlapic(v)->hw.tdt_msr = 0; } -static void vlapic_reg_write(struct vcpu *v, - unsigned int offset, uint32_t val) +void vlapic_reg_write(struct vcpu *v, unsigned int offset, uint32_t val) { struct vlapic *vlapic = vcpu_vlapic(v); diff --git a/xen/include/asm-x86/hvm/vlapic.h b/xen/include/asm-x86/hvm/vlapic.h index 4656293..48ab3a6 100644 --- a/xen/include/asm-x86/hvm/vlapic.h +++ b/xen/include/asm-x86/hvm/vlapic.h @@ -132,6 +132,10 @@ void vlapic_ipi(struct vlapic *vlapic, uint32_t icr_low, uint32_t icr_high); int vlapic_apicv_write(struct vcpu *v, unsigned int offset); +void vlapic_reg_write(struct vcpu *v, unsigned int offset, uint32_t val); + +uint32_t vlapic_read_aligned(struct vlapic *vlapic, unsigned int offset); + struct vlapic *vlapic_lowest_prio( struct domain *d, const struct vlapic *source, int short_hand, uint32_t dest, bool_t dest_mode);