Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964846AbcLTTMW (ORCPT ); Tue, 20 Dec 2016 14:12:22 -0500 Received: from mail-eopbgr10104.outbound.protection.outlook.com ([40.107.1.104]:14991 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752203AbcLTTMP (ORCPT ); Tue, 20 Dec 2016 14:12:15 -0500 X-Greylist: delayed 11715 seconds by postgrey-1.27 at vger.kernel.org; Tue, 20 Dec 2016 14:12:14 EST Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=rkagan@virtuozzo.com; From: Roman Kagan To: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , "K. Y. Srinivasan" , Vitaly Kuznetsov CC: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , , Haiyang Zhang , , , , "Denis V . Lunev" , Roman Kagan Subject: [PATCH 04/15] hyperv: define VMBus message type Date: Tue, 20 Dec 2016 18:55:51 +0300 Message-ID: <20161220155602.6298-5-rkagan@virtuozzo.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161220155602.6298-1-rkagan@virtuozzo.com> References: <20161220155602.6298-1-rkagan@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [195.214.232.10] X-ClientProxiedBy: AM4PR01CA0030.eurprd01.prod.exchangelabs.com (10.164.74.168) To VI1PR0802MB2478.eurprd08.prod.outlook.com (10.175.26.21) X-MS-Office365-Filtering-Correlation-Id: fe1e04f3-c534-490b-a78c-08d428f0cc17 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:VI1PR0802MB2478; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0802MB2478;3:0fYFDddzp+VZPHsBOYOrQDwODCeJNp5eHPytiwn8Ca5MgjCT6UgLcIlW6HCf16mctEjjPPonzpeXIGcAV71Eul4cvdBB5qA2MF4EzN4rf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WuxFpu1pCR81+OYiIdBo4K4rz4IIrErxH1FUgCTq90OGX3ggt1SmGp/7hw42OpGgwUvp4SoFTBRTiEOiTzAsPDpFQWqUdmOFwowavFn2QdLCe1wWM/C9dvzUOc5ivMU20OCXdRrciSk X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123564025)(20161123555025)(20161123560025)(20161123558021)(20161123562025)(6072148);SRVR:VI1PR0802MB2478;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0802MB2478; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0802MB2478;4:dVFrVBHShhJXFtIV2sLgUIzhYRt7hA4ovql0ruhfoBX2I9PsfHZ6PsTeB8RuVR+La+DkYRzaNmAsDd2JjSOksNbw3cqPnxDCZ/Dycachz4i4AW2BtKRCaXFPO0kJiYGtXP9NBpEvo+piVtJ1h0Vz6nHqJYcGS1E4h6PY5R0TSwGRu/R80HWF59mJAqYnzA0F2KyQjFltZK95STeU0uKimJ6lleZ826OToOmfhYHuWD3ojboe9utsYadYBIVV1tey4Uuq6zjQ70UqW6lWBeDMlAomwLTPL1R8kyUy0lyGwPTE7QDGPpwcQ5ZU+XWOzA004pK51peXlwS16PMyufATZjK0nz0+rXP1yBhBQnckl6cEomMPjZ5ZDOIDPtveN05YzvrrWtFWn29CcEXdg0xzgdGmaBUX90ZaHzgJA4COFryI6cMhrXNsE0ul5KYNPB1jcCzJKNlqRrRWSlHtm/Gy/5L7UK1UKrVVTb7zhLR25yp4dpEotXYcwAk/3l79FIm5Zr3ACBnbrvM5AvmUDs9SXL7Yt0/Q7sN/ubJAJCf4TuF127J2X+/T+tDkyv6rJMxkWd+DGEBXvg3N8gwwpzhO3resBP5dga2kIg7MDrHKWBE= X-Forefront-PRVS: 0162ACCC24 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(39450400003)(199003)(189002)(6666003)(97736004)(189998001)(101416001)(5001770100001)(4001430100002)(5003940100001)(36756003)(81166006)(47776003)(50986999)(66066001)(1511001)(2950100002)(50466002)(76176999)(5660300001)(81156014)(2906002)(8666005)(15650500001)(305945005)(69596002)(48376002)(7736002)(92566002)(7416002)(106356001)(53416004)(25786008)(6116002)(105586002)(6486002)(2421001)(6506006)(1076002)(3846002)(86362001)(4326007)(68736007)(8676002)(50226002)(42186005)(107886002)(2561002)(38730400001)(6512006)(33646002);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR0802MB2478;H:rkaganb.sw.ru;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;VI1PR0802MB2478;23:BhkSbjBAD36X7CSEkJUvQ5uMWvQWYtSdUA7D+Uf?= =?us-ascii?Q?YmuCSoxK25qpuXlldZqo2DTVRyALnes4pmNiJ22YeTnkwCybcCXbtRyAysnA?= =?us-ascii?Q?vHYisNvyIp0tCS0cxFveMjRkwqTU7emOeh9/1hu5+RvRuOUx6+4rfhWMet/F?= =?us-ascii?Q?c2yxzTXXJUSIMdzdFS3Xb+RSRsG/4GRb6ttRG5SRUhAzmBa225UNPM5QViON?= =?us-ascii?Q?CoaojXgQhy2EdPU+/+tyvn9qBOWwGDqpH9xNdxkAjTtwvhZ6r/JIDyO6e/Vb?= =?us-ascii?Q?ZczbOJvQSWwXUqBoY7KW1ZbjrYpu+fY8Yx6zZkfsg2ora/tSJScsNfbcpsJ3?= =?us-ascii?Q?TwUPOJr1V4p4hdSkxxn5aDI6P2G+ai/WxRrNmjBjnMzGAG4qAN/eSD1KKYdX?= =?us-ascii?Q?NAi7TIh/6lf1baQYn4ZwD/W++lAfSRzfOLjZbIEWmPQtgfggr4J6VGv8PKkB?= =?us-ascii?Q?N8LdZPhD9FZO3fYLheXn8zfo54WN2vILd8HJe0aMg+oSyFqxb0LfWoM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dEExAhPL3JaHS7ZVcO9yvNJ/PBDUGs5G41CvYDpyD9TxDmxtzawR4I8kDm3iBnGA1RtqtLUwMaGi1r5xPgshmpXrwXj5v5u/vu5/ortQm73JhIHb9d7imjepaUXnad9xnpoIjIdelhLVEAQCQkwnVI6BIlu8IurAR0VS2YuBstAfqq5K59G6g==;20:dnHvi4ugVa57H5y7bCSkHMX62ODZSFkFelFHAM0e4hf/xVzHIt6CMHZkSZYb69Kpd6cMGDEWx+KLHuNCJiWRGFY3ip4/9Q/uOTWe1Bs6DC/PebZCHJnQDwzmSmOoGxANjq7ZlcIZzTda2a1Elf0Z7VPMUyqxyhaLWITw4zbKeOU=;23:X/hZGpjmuvImT1NwRnb2OTUK31HMtkx1w+LUnTJnAUlJ6ptiMyHPUXJDVRqwpFUND/4keMO62esNuefRoQSF7GVain0u40bVflvI3nEjxUZyzqJD7+re4PtzKy4LW4p6cKWN2Udqd3CTMJzD3XdpIw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2016 15:56:43.7288 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2478 X-OriginatorOrg: virtuozzo.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1154 Lines: 36 Give a name to the constant (1) already used in the code. Signed-off-by: Roman Kagan --- arch/x86/include/uapi/asm/hyperv.h | 2 ++ drivers/hv/connection.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/uapi/asm/hyperv.h b/arch/x86/include/uapi/asm/hyperv.h index af542a3..749fbb25 100644 --- a/arch/x86/include/uapi/asm/hyperv.h +++ b/arch/x86/include/uapi/asm/hyperv.h @@ -282,6 +282,8 @@ struct hv_ref_tsc_page { enum hv_message_type { HVMSG_NONE = 0x00000000, + HVMSG_VMBUS = 0x00000001, + /* Memory access messages. */ HVMSG_UNMAPPED_GPA = 0x80000000, HVMSG_GPA_INTERCEPT = 0x80000001, diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c index 139b33e..d38b27f 100644 --- a/drivers/hv/connection.c +++ b/drivers/hv/connection.c @@ -432,7 +432,7 @@ int vmbus_post_msg(void *buffer, size_t buflen) * times before giving up. */ while (retries < 20) { - ret = hv_post_message(conn_id, 1, buffer, buflen); + ret = hv_post_message(conn_id, HVMSG_VMBUS, buffer, buflen); switch (ret) { case HV_STATUS_INVALID_CONNECTION_ID: -- 2.9.3