Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935428AbcLTQmX (ORCPT ); Tue, 20 Dec 2016 11:42:23 -0500 Received: from mail-db5eur01on0095.outbound.protection.outlook.com ([104.47.2.95]:63121 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759749AbcLTQmO (ORCPT ); Tue, 20 Dec 2016 11:42:14 -0500 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 14/15] hyperv_vmbus: drop unused definitions Date: Tue, 20 Dec 2016 18:56:01 +0300 Message-ID: <20161220155602.6298-15-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: 62dffc2b-9a35-4c30-b38c-08d428f0d4b8 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:VI1PR0802MB2478; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0802MB2478;3:kBqq1tuJ8YxPSVcyg9gmn1lOSSSI0b6INpzJThOgzpyyEIIOK6p8/BPScCaoj2mY+tULLQhEutDpEu7RylhS+ja512/xD9bM5iEFsUzfvLfUm3o6N4ERj3a4Fi77fF+WwkRhh4kPfHihpaolTl6xVeY9cJAPgs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PMJ6DT6BcHWpcoW/xAaoM9NF9AOp/rdyHvzvwFXDezRc5wD+ma7/gpo0fpxFndjYpNHhEdCNn6HlvJKikh4gCT3EbqrWZQZN/a/w1lWuitU87KOKL23/CKrLP+Fw+0CnU1YVP0iL5LR+VC;20:D6Y5T8bzu/imKruX+aSJkVp7CNLZpdyliJ3oqqZN0ffdhbh699KlCirmXgro67VUQZc3VqQ3RNprNpPrTSsmAUtdDcKUKuwVlvv0E4/j0WlJHZ1ZAMRLFfJvySAeD9MsZ+JQJw5gni8/QuqrwFfJHEEq25ol10bbrdQAzd/Tu4UC1sANHzJct7zAx7VtjiLIF3OVW+DG/HWT1w38Fx8MZO5aPRX+8wtlz2WKZvw5GsVo1rdJbc56t74kaAVC2mpG X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(211171220733660); 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:32IUSlH4LTA0ED7Fc1CCX7JtmmbgSL42EqjSya0kDMfqslTu8HgyvjBXQAZ2pePYPV9KZ4J/bjXtj0EEJUkcpSzdE9zxGJ6U6I5p6GViWe4o7+lVLjY8/bZgCElBWAE7nGCg5xITADa18Atp75KqRlY2KeflTNj+rrZgGjLdskZPLoGIu7nXfrY0geb8mpGS6vFLmIBf2rZHAMMBlqZZ54AJIsijxjThplOcyIq9/DL87ppLUff95RTYlz9d5PrJgwQn1MPmy5T1BBs2pU2jagcE0AACxFQhbgbJ2Am1zYClDb1yLbghrvMnoe6TZFbW7WB6I44q5vHFeE5omovxeiULomBNFP1fBPgo6yh8HrhwnnNzNO+mi/gxQcXACwhfYiLzZ6x268srF734YpKgSBDde8pYaW8AU5B1bsAfcEeFOj1vAM5TNxqxD1/PZsOXgtK2oIwgjcQm0rjGX8kxwzDNBPADMwziOjzFy4ZJAFdvqqHh7GRcxF41SvaN+kKdAEVsVfwjHqI24QJJXFADl8ePmMxjyu7VHjOy39jrUDkxgDTLBV3YXHUn3xxswcAAwsqyIcdwF867Fwe4CsYFRSWFHKZ6hOekZCs7/2VOVMWyvhpxF8xGFoh7taxrLND7CTPHBZMYzQ7xPowdV3dwxw== X-Forefront-PRVS: 0162ACCC24 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(979002)(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)(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)(969003)(989001)(999001)(1009001)(1019001);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:tUe1vecSU7Fim0/21o/tDSrb+0+8647KZXEAzmg?= =?us-ascii?Q?//gyg/mW+vVBkaxidK80++kiOe2lWoRGJVqOHpJCCbylF0US9X5LZ6FZlhzY?= =?us-ascii?Q?scnOXwK/wa/X03HDmkq4TZvmuF5us5kA7VniikgAGtr835iffH7pnHcvR7X1?= =?us-ascii?Q?k8KUYO/vRMtWNTNLuwSGnn+K5L2umMfqfzfpEYVtwJtJ4iFqwbvus2/diAhQ?= =?us-ascii?Q?iM8ibSDF7cQ2QUThpVvHjy2VoUh5gvcINWy6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nosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;VI1PR0802MB2478;7:iokP5/OKT62pD/I5EAd9FwsOl2cguoduZLybpoPc1GjOB8OisBRJYt2OD0codqAd813pR/OTcP3mLtIkiMKrcxUhClUb0onAhEk0dRyIRw0rOw68ob6ImqIaX0fJ+Ok92vb40sQYOPFZvgrO2Z+w1qtLlenw7tVGNOndXZKKwE6uIQmbx7DvJ2jUY7Tmq5R7TpGwdPrWnQpoKitomIm73CJQzEoR/ayAe4lxP/vHusDQb0k6Pt4DWMMcJzlD3w9KB7QsrJUPG2fKbs7+TWA6OBh6zg0sq8vOQ4KsqOw13U6ARJCt7yLBUSHaoVOamXvHICE1WNwnv8iFaBPBQXOemBKMfIODjSZahDTNkW3Tp9Wm+Tc0ASM/k/z8pIwsTURlNyHsUs6VP5XkpujTcmHEmWVDBaxcVdgcukPKxiO9VPleOi8kpKEBq75VN7KhMT/endyTrDCLJu24aUOPdjHF2A==;20:OXN4dgGMDNs9HL6PjUPmq3D9KKwSMC+IM9ODo77qWr4uHOPv3xDZ2wjPU5cKGfekLCYG1JInmDpyb6XPuRMHnbQMEBTeEG/wBiueG+ckjcQV07lTGwTIhB+9rCwfKCGoRUrKBKrnunbwPyAUoBYWNNY3GakoNHCLiUgD5N223G4= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2016 15:56:58.2080 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2478 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3292 Lines: 139 None of these is used in the kernel. Signed-off-by: Roman Kagan --- drivers/hv/hyperv_vmbus.h | 119 ---------------------------------------------- 1 file changed, 119 deletions(-) diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h index fcb5d91..8ce6d64 100644 --- a/drivers/hv/hyperv_vmbus.h +++ b/drivers/hv/hyperv_vmbus.h @@ -39,125 +39,6 @@ */ #define HV_UTIL_NEGO_TIMEOUT 55 -/* Define version of the synthetic interrupt controller. */ -#define HV_SYNIC_VERSION (1) - -#define HV_ANY_VP (0xFFFFFFFF) - -/* Define invalid partition identifier. */ -#define HV_PARTITION_ID_INVALID ((u64)0x0) - -/* Define port type. */ -enum hv_port_type { - HVPORT_MSG = 1, - HVPORT_EVENT = 2, - HVPORT_MONITOR = 3 -}; - -/* Define port information structure. */ -struct hv_port_info { - enum hv_port_type port_type; - u32 padding; - union { - struct { - u32 target_sint; - u32 target_vp; - u64 rsvdz; - } message_port_info; - struct { - u32 target_sint; - u32 target_vp; - u16 base_flag_number; - u16 flag_count; - u32 rsvdz; - } event_port_info; - struct { - u64 monitor_address; - u64 rsvdz; - } monitor_port_info; - }; -}; - -struct hv_connection_info { - enum hv_port_type port_type; - u32 padding; - union { - struct { - u64 rsvdz; - } message_connection_info; - struct { - u64 rsvdz; - } event_connection_info; - struct { - u64 monitor_address; - } monitor_connection_info; - }; -}; - -/* - * Versioning definitions used for guests reporting themselves to the - * hypervisor, and visa versa. - */ - -/* Version info reported by guest OS's */ -enum hv_guest_os_vendor { - HVGUESTOS_VENDOR_MICROSOFT = 0x0001 -}; - -enum hv_guest_os_microsoft_ids { - HVGUESTOS_MICROSOFT_UNDEFINED = 0x00, - HVGUESTOS_MICROSOFT_MSDOS = 0x01, - HVGUESTOS_MICROSOFT_WINDOWS3X = 0x02, - HVGUESTOS_MICROSOFT_WINDOWS9X = 0x03, - HVGUESTOS_MICROSOFT_WINDOWSNT = 0x04, - HVGUESTOS_MICROSOFT_WINDOWSCE = 0x05 -}; - - -/* #defines */ - -#define HV_PRESENT_BIT 0x80000000 - -#define HV_CPU_POWER_MANAGEMENT (1 << 0) -#define HV_RECOMMENDATIONS_MAX 4 - -#define HV_X64_MAX 5 -#define HV_CAPS_MAX 8 - - -/* Service definitions */ - -#define HV_SERVICE_PARENT_PORT (0) -#define HV_SERVICE_PARENT_CONNECTION (0) - -#define HV_SERVICE_CONNECT_RESPONSE_SUCCESS (0) -#define HV_SERVICE_CONNECT_RESPONSE_INVALID_PARAMETER (1) -#define HV_SERVICE_CONNECT_RESPONSE_UNKNOWN_SERVICE (2) -#define HV_SERVICE_CONNECT_RESPONSE_CONNECTION_REJECTED (3) - -#define HV_SERVICE_CONNECT_REQUEST_MESSAGE_ID (1) -#define HV_SERVICE_CONNECT_RESPONSE_MESSAGE_ID (2) -#define HV_SERVICE_DISCONNECT_REQUEST_MESSAGE_ID (3) -#define HV_SERVICE_DISCONNECT_RESPONSE_MESSAGE_ID (4) -#define HV_SERVICE_MAX_MESSAGE_ID (4) - -#define HV_SERVICE_PROTOCOL_VERSION (0x0010) -#define HV_CONNECT_PAYLOAD_BYTE_COUNT 64 - -/* #define VMBUS_REVISION_NUMBER 6 */ - -/* Our local vmbus's port and connection id. Anything >0 is fine */ -/* #define VMBUS_PORT_ID 11 */ - -/* 628180B8-308D-4c5e-B7DB-1BEB62E62EF4 */ -static const uuid_le VMBUS_SERVICE_ID = { - .b = { - 0xb8, 0x80, 0x81, 0x62, 0x8d, 0x30, 0x5e, 0x4c, - 0xb7, 0xdb, 0x1b, 0xeb, 0x62, 0xe6, 0x2e, 0xf4 - }, -}; - - struct hv_context { /* We only support running on top of Hyper-V -- 2.9.3