Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935089AbcLTQ3l (ORCPT ); Tue, 20 Dec 2016 11:29:41 -0500 Received: from mail-he1eur01on0097.outbound.protection.outlook.com ([104.47.0.97]:59962 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932609AbcLTQ3i (ORCPT ); Tue, 20 Dec 2016 11:29:38 -0500 X-Greylist: delayed 1081 seconds by postgrey-1.27 at vger.kernel.org; Tue, 20 Dec 2016 11:29:37 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 00/15] hyperv: more stuff to uapi + cleanup Date: Tue, 20 Dec 2016 18:55:47 +0300 Message-ID: <20161220155602.6298-1-rkagan@virtuozzo.com> X-Mailer: git-send-email 2.9.3 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: d79f5d01-9ec1-47ac-b91b-08d428f0c8d8 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:VI1PR0802MB2478; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0802MB2478;3:Bmtdbk9uJ6D6T6KKmG67r8+sFrcSfG1feOxq53w5UK1Yw/7yegGfusEUboGG+tKlswW82k+hEMxEnJeOMnVLs9y7vXxGd5Ak0zPv2KvVKYRxd6cUt/n5QrJ9t/PgMKitA2MRx3op6Wt/C+Mj9oUMhi/J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FA/Tj+ZH3CuSDEZrC9opQz4ilN8vpp5vPmJZjvBZaRVwiTbrw5/lXa6qzW1ErlAMGg0iPlOFjnMFi1sBqzoKIzZbr11CDr4i0AJwtIbmcK1q8XZ5b98ULoR6C/IAM+iovRCxnEhbzeuMpuMf7Ffl1Xn75tB/g3XNGfEjc29ex0rgVsCM0;20:8IGWiMgMYmzPfURfz3Arps3F17bFpnExP63yFk2sMhWI9zxcLap7WlY1Fc/s85vzI57oQfkLIP6kvYsiQ0ZgH0E+Jpmr/Yx7Mm0UkNFKKunXJplMHPg8ZpwB4xapD8YycGgDCXCJPKfWsuqI4D09uyctuViUTRjExqXJx+8KZO9W34L9od3M1bTluuJB2wK8WVTolSC9w3pQiao3NaDedCKL1K3iR8TitiXXXqZNrAcCafa/FAUlE8wjs7oAaQHW X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397); 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:nzYgWPtgYpYrQURO8ItOFjRdD5kmTidcFSzWLAry54D89Afg3auGYn13rBLUFUhWk6/lSciY4n4z2xygTj+BsnvJjbZ4UCBlPSOsBC/W3G2G13RXDWDt7gUzsLYqEfEnevHkNeDrTaX4ktljbTbppEu4gbUjQcrP5EqmWVYcXeD8yxEEtVBI7KBulnD8l/7aZlF41K0j+mPeJmmUY/SylfUJFGP1B4w2RG1tk3sMskbMTUW17FqLDlS/m+A3qQpy56++VTNudCz6I5dR7Cr2TMaGTcxnBaFbnWVUXC2EhdIN934GN/bvygWE+H4J2xgw/WuiK74IFzM70zPGvGYOOsXK0DzPrR1F6+tHvRe1wUB/LR7AqFui4eOh2QaObT0K7StPXf/XAtGrFcnXE3kZgptb1154wkJ2XBKQjKYtM269qxJB+9YGRnpSGBOGIoy1TpR2AWsOO1KMMhCiznZyePKqOOpxYopSl2NffxRUMTFHSBuwtSFiDG4nb9jE3rN9sE70XBXXM9kpKDZmCGWwbuPdG/jQJtY9GvzsiRaecSOkWgnhtCk8w/y0zxJYWb8+xLmZt9rTo46LspAa3JEYBHWt/cxcJl4TjPh+g6yKTG0IsmmLJYgg6PoQWVdl+2QqDQa7U7O/m1T8t6BcnfBk1A== 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)(50466002)(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);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:kXaKgexUvgI596d45/8+owg8Zud0FPrWWPdn4GB?= =?us-ascii?Q?QzCgBx5obOjUrbkdnHP9hzmv3MrrZEzexVqpuNOn40xxIAUdUsEbO6rNga87?= =?us-ascii?Q?xDHo/nXTCcg2y5YjYFJjmzZ8gIVyqK6VqXn0YPsIT0Sm9UG8U2386dK6qtMg?= =?us-ascii?Q?AJDMd8qBdm4azC/yMjQ0V6dNEnOKBCaz/doxcLYVkY9hogaMOe7DwJqq8D1o?= =?us-ascii?Q?Jlbg1IecytFPeiowBg6CJBg+PwRk9q++sNQgNA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h75qR/+5qE5LkpPeFZPNuXyZZvoEqmH2K+rF6cV73ih6?= =?us-ascii?Q?Yg0pcCRoBzMw+PNBT6zDnGEJyL3WjwylEiA9iLWIX2hach9MVRFUIEn2qxA?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;VI1PR0802MB2478;6:wAaBZyw1TtV53FFB1QsDo7ek4CJvi+TuFOusy38TvhMv+LM+H4HOR+nty2VQioPSPY/Cym73Bb3/8FJMj5jM0C7XJWjgic/JNy93wpAvbQQ6Xqv0zHEGcyMl1Ndbw7R3+3AqEJtBjPWerbBE7WrJlmNd905qAwByxEujLS5++7Mp+1IeDXYzReAA/lerBSvmgA0vfj+/lS/wtbUqz/DYcqPx0qNMMA+j9PTia391qcEuKrplZYg5XV41XLbnTllcPwR06zTHSunCNcch+e4Yq5v2SnNrTzdlhfKa/v7X1ozeoV2pySSi4FdAppuAFAU0iTOMZE/0Nwo8AWTn1mGoPv8wIwt+eOCBntNq8UbarvlxulaZ3lJWEDxWCDap4LN6YdLRiQwO2NSYVIJfcHigviAMwLjXMgonqbvtfOA+e8Q=;5:mPRNgdW+H5zAYy+khc67RLMZjoc1rhS6O04JZEmuMoWPBOAFfwUj0f0ggUxmbxmdyjfFuDZli52KDEYqubCH7ZhnG7haT4lYoBjljKA5/N8r5WcVCYzgW+dr4JblqMHIELeBLMrdBnB7vhKVF/c/Wt3tiqSzAydlv/jjGZ6Lwj0=;24:DIGAQihK7sYQMVd0/HAYNP/pfuPdQAA+R00mQLu9INuNEn+v1ClXp3LYXquFzvuktPCvu4mB9jWy2vCdiTMDRTkIggAD/AeiYFW7L82wJz4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;VI1PR0802MB2478;7:KuwOjgqgCnojl/yvuJS4yJIwm6vhQcyBKNIHBVm4VwffAc8WMhpWOuFcrlloKaG255VicdFqvEOGQJRLwXtgXkc1P4x5QNyFznbXmxe+3O5jV7xd34pWIul3Gjbmr6YOTM2pSnB6SxeFsISQvEV9K31TDZWfxPZBVc5lEAjGmcUgUmun8w5tTH6TZlQTVY6MyjghOsOKT17rcOZuducrAO9GT2kUdef/1dlUCYHWjAMxaG638pMxEmB8XAma/zwVVDLxtMJN4SbK/J2CE3Y6BHqawSOqgJVFz/O3GyzpVfig03+5CfdTvqdV7qkjkJSl6zeJYnsheGskPlCjlfYR2aQcysXe/P4vetleMjVA9FqC+FxLPEtPwhYvEWAFjzzifCm/QnCbjjSq9h7+aRCRBiSfT5NqcSeACuwpgacCeNGVpGfjqORuEWNID/XrDUMQhA+uC19ePTACSuURzNXEBg==;20:GE/GNQBvVRCyvFFl1AOkwzpJIQNkI0bIlmhT+TMrHjwcNLWCDKmkN+MGum9IoM1o9RwEsAp4yMbJCFIQt1woegX7RfDI/Cv2eE76zCHHCNGc9IxLRbrZGLrfU5yOxLW5K3Fu9m3rFD3F68UI4/BTt4Q80wxEXxA4QFjw0dHomW4= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2016 15:56:38.2301 (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: 1825 Lines: 44 Expose more Hyper-V-related definitions in the uapi header for consumption by userspace. While doing so, get rid of a number of duplications between the KVM and the guest driver code. Also a few other cleanups are made which are not strictly necessary for the main purpose of the series but appear reasonable to do at the same time. The most controversial is the last patch which modifies the stuff already published in the uapi header, in the hope that no userspace applications have started relying on it; I'm ok dropping it if this is unacceptable. Roman Kagan (15): hyperv: consolidate TSC ref page definitions hyperv: uapi-fy synic event flags definitions hyperv: use standard bitops hyperv: define VMBus message type hyperv: GFP_ATOMIC -> GFP_KERNEL hyperv: avoid unnecessary vmalloc hyperv: dedup cpuid definitions hyperv: dedup crash msr related definitions hyperv: unify Hyper-V msr definitions hyperv: uapi-fy PostMessage and SignalEvent hypercall structures hyperv: uapi-fy monitored notification structures hyperv: move VMBus connection ids to uapi hyperv: move function close to its only callsite hyperv_vmbus: drop unused definitions hyperv: redefine hv_message without bitfields arch/x86/include/asm/kvm_host.h | 2 +- arch/x86/include/uapi/asm/hyperv.h | 101 +++++++--- drivers/hv/hyperv_vmbus.h | 399 +------------------------------------ include/linux/hyperv.h | 24 +-- arch/x86/kvm/hyperv.c | 14 +- drivers/hv/channel.c | 8 +- drivers/hv/channel_mgmt.c | 30 +-- drivers/hv/connection.c | 65 ++---- drivers/hv/hv.c | 300 +++++++++++++--------------- drivers/hv/vmbus_drv.c | 67 +++---- 10 files changed, 288 insertions(+), 722 deletions(-) -- 2.9.3