Message ID | 20180206203048.11096-18-rkagan@virtuozzo.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> 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 322AB60247 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 6 Feb 2018 21:20:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23816205FD for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 6 Feb 2018 21:20:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 138B7288A3; Tue, 6 Feb 2018 21:20:21 +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=-6.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 50AA7205FD for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 6 Feb 2018 21:20:19 +0000 (UTC) Received: from localhost ([::1]:35410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1ejAf4-0007Us-Ex for patchwork-qemu-devel@patchwork.kernel.org; Tue, 06 Feb 2018 16:20:18 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <rkagan@virtuozzo.com>) id 1ej9u3-00010s-7e for qemu-devel@nongnu.org; Tue, 06 Feb 2018 15:31:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <rkagan@virtuozzo.com>) id 1ej9tz-0003Cz-6k for qemu-devel@nongnu.org; Tue, 06 Feb 2018 15:31:42 -0500 Received: from mail-db5eur01on0101.outbound.protection.outlook.com ([104.47.2.101]:55583 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <rkagan@virtuozzo.com>) id 1ej9ty-0003Cf-SF for qemu-devel@nongnu.org; Tue, 06 Feb 2018 15:31:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zjjxaZfQzG+f4pwRVsigO6UQlCiz4O+xafgxTo3/WL0=; b=bU/wnl6gNyR7EGEJ4GE34Ws7d0a/TPWHUc9lclbaf+HbH65m3XAox4mO5926TzdlYoH6fRnodChcgZEqHgT5/ta4Yr/FOW7sNYEfT00WYJlZXkuiIEhtqruWJw+y+jMPTPb5e/th7DS4snMv7NLR+Uu6mCCW+M7f377yRve6U9U= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=rkagan@virtuozzo.com; Received: from rkaganb.sw.ru (195.214.232.6) by VI1PR0801MB1983.eurprd08.prod.outlook.com (2603:10a6:800:8a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.11; Tue, 6 Feb 2018 20:31:34 +0000 From: Roman Kagan <rkagan@virtuozzo.com> To: qemu-devel@nongnu.org Date: Tue, 6 Feb 2018 23:30:31 +0300 Message-Id: <20180206203048.11096-18-rkagan@virtuozzo.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180206203048.11096-1-rkagan@virtuozzo.com> References: <20180206203048.11096-1-rkagan@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR0301CA0008.eurprd03.prod.outlook.com (2603:10a6:3:76::18) To VI1PR0801MB1983.eurprd08.prod.outlook.com (2603:10a6:800:8a::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a0d766f4-23c6-4efe-6bcc-08d56da09e7b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:VI1PR0801MB1983; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1983; 3:GMHSr2e4bpiohCzd9KWjLABn59q87qSVq2SvfZ+7Lp9h+TsOta+XcY+bFJeoErfr6PSrdVPHEzNDJ6pxNaNJkff6XXtRl6vba+wYt3Dj92JrMEGS3K6VJsM9rRgMOzaaYHJ/VyLSQwmtc9F2DwMP/VJCusocdl9UT/1NRnSGNaN7RuQYlmr13EZSdtuSSBIi/+Ou1OV+AMARdwcfXZfH4sGmzfrtzkXCNJc5raqtYJxx/7tNifbeeORxebuAhf29; 25:lHcE/JUHuL2kwWB02Vbvf/0qy5UI0Tf8fHkgNycm6TxaV76AecXu1HWfu44M2ADCaDs6fW7aMArgFvVr5XT+nd263cKnF/eQD/dGLvH9xyCUiVy1/h0gykX9Oxh//GdQUrKvdBfxFCDgfd0aepNRA826EtfyF0vt6jT739XWiwwnYvPpq69Vsy+k4ETj0yobvzco4kcDny5M2RiUZLBGtYxvXqgObE/5rcP3MbARcTsIwMJ19FZcH+nROrnYZ5THBjKe/FujRiQ8eWB3SDS9cJR6Cghz3GYZ5GwBB/ewogndP/eKvT6rg3QTCatJsFi4t/x6C4eCb61zmYEauS+Trg==; 31:gBCi3IrMcxDu3SDunLVebumvOzrJYr6h7kcwb2ieVWTO/roe73I1W03zBAe0c8tzHOErzPR68krjUfYwlBvExNg+ApQEJzvoiOKnuZ79KaNCjN/aqZMDUaNp8bIK/3etUGiKo5BLM+U3iiHPKA8YhidsQrzkVRXmk7JT3xw9SY8Vu/NjXsA25+E20Y4RbIiyZ5sZItqYoZGKViB4vW0h6XJhR1nkWFd722PT4rtj9y0= X-MS-TrafficTypeDiagnostic: VI1PR0801MB1983: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1983; 20:DHkPZ9fQihZ1bkmb+FWtvOd4oR6kbe+CR52ClbZGVDa3ZcXhuwMFS6QQkY5YdtEWhJrXneWkLTpQEYTlQa0InMYqyZjUHKLA6LQlDkPlh1ClEuNQOfuO0hr6XfjNWADLVOy+lZVxnSy4K3oWUAvt68ondGLlWswQTB27I716e/QD02keb918esJHSgVXBca3DzBDEmoHLHW4l6s4tTSQmL1gV/9gMPyxZKBxjLpapF1Vc9AF3BG8GQ5hc0QUF24PM3ooAphr2xFqV8JGOuihnYrymDhw+SKm6pEhJk8EF4bGK+iBnKi8eoWmzlrtwmxsqeDvtfQCVzQqk2nL1lJfKqpgSX9bUiXV0Oh0eyAIdmCCUypT52A95X9BFDG3Y4WwHshUtkzL+se0Bw57Cmm1egDI5GKxceM4TyF+l8Tr/4M=; 4:SwBB+qIwcSRbzSY+g4KWYTCHc1XnltouRyufWGdbwU6p2lz5U8b/vHSpP7wkzlpWJYpwxlG3/UsHYWNfOrHMnpAFYkkYri4I30t3Tm8XyzTVmJEq7jFsXt5hJ87SEO+q1nHxMDtCeWdxGBdXCyMkwT/Z3+c5jnEq5rdQtweplcbRdZM5pVfJL24Sw2usuwyC2rl5gbUolmgK3jwDCfu/0DrhwmaBm75iiqjaQnAfyd/C4gWXlpmnDfReJCZ8bDxZAVt1d8ZPQAvXtuVxyQRteQ== X-Microsoft-Antispam-PRVS: <VI1PR0801MB1983C01EAF8E619621D41FE2C9FD0@VI1PR0801MB1983.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(3231101)(2400082)(944501161)(10201501046)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:VI1PR0801MB1983; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0801MB1983; X-Forefront-PRVS: 0575F81B58 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(979002)(396003)(366004)(376002)(39380400002)(39850400004)(346002)(189003)(199004)(16586007)(53936002)(305945005)(54906003)(7736002)(3846002)(316002)(105586002)(2361001)(106356001)(2351001)(6116002)(1076002)(50226002)(8936002)(81156014)(5660300001)(8676002)(81166006)(7416002)(2950100002)(6666003)(6916009)(76176011)(575784001)(86362001)(68736007)(66066001)(16526019)(47776003)(50466002)(4326008)(97736004)(26005)(6512007)(51416003)(2906002)(52116002)(386003)(6506007)(48376002)(55236004)(36756003)(53416004)(69596002)(6486002)(478600001)(186003)(25786009)(217873001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0801MB1983; H:rkaganb.sw.ru; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0801MB1983; 23:HhWDiOaDVaJZRRVAGwOzgw5pj6uD+m2KM/QMSZX?= =?us-ascii?Q?IE2WIsfv3/1vpmp0o8dcM06vydKqhxRZTplyQml6csc0+4ul2pUWlmUY+QYg?= =?us-ascii?Q?yW5+toHSp0f21c9mUtatAgY87v4CJwvM+ijEYT9WIuuy88XgwGGCsDyKVlAR?= =?us-ascii?Q?oJTl8hOSqLpQgbK9US5DPR4hKXKC2s+3NOWq2DwSKf3p7r/8j/nqxSyOuOwW?= =?us-ascii?Q?PswPsn+6tBhTOrlQ+XicFj82+dmwrtxsl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HVeuB2hVRoojHAGQenQ0py7KnQ+bXbgC3jA6cAUPLCmY6MiH5JdkZsWX3Z4gt29VbE5lE0AYO/ehniqLYcgSjuvfuXQyFA383s+pfbVAA4YOTIdXyqzoU1PuL6HQlV1DqHC+KBAg2tJ4k5BujTR1zbECqDvHRTm7gWNNDpBVxpy+XOcnnMAMMF58+acJ4UKmWnfvdk8F4bzH4yik3dV SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1983; 20:TSrbOLITc3IjHJhK+Netx+/5tcQUVb/9O3EkAniG1bWdlwr3dM0CLXtvrhja3kR/M6Qy8UYZRHaUm2xX2PcnXAXAIffPMQWsElcyRKYak+ZNsSr+uuLV+G0Cp/I5HowV/vf0sRvGOU/21WMCdvB65ajRt8//3XIpkFmBnKA243Y= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2018 20:31:34.2939 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a0d766f4-23c6-4efe-6bcc-08d56da09e7b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1983 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.2.101 Subject: [Qemu-devel] [RFC PATCH 17/34] [not to commit] import HYPERV_EVENTFD stuff from kernel X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Ben Warren <ben@skyportsystems.com>, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>, Krish Sadhukhan <krish.sadhukhan@oracle.com>, "Marcos E. Matsunaga" <Marcos.Matsunaga@oracle.com>, Jan Dakinevich <jan.dakinevich@virtuozzo.com>, Vadim Rozenfeld <vrozenfe@redhat.com>, "Denis V. Lunev" <den@openvz.org>, si-wei liu <si-wei.liu@oracle.com>, Paolo Bonzini <pbonzini@redhat.com>, Vitaly Kuznetsov <vkuznets@redhat.com>, Cathy Avery <cavery@redhat.com> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index d92c9b2f0e..47100cb6a3 100644 --- a/linux-headers/linux/kvm.h +++ b/linux-headers/linux/kvm.h @@ -934,6 +934,7 @@ struct kvm_ppc_resize_hpt { #define KVM_CAP_S390_AIS_MIGRATION 150 #define KVM_CAP_PPC_GET_CPU_CHAR 151 #define KVM_CAP_S390_BPB 152 +#define KVM_CAP_HYPERV_EVENTFD 153 #ifdef KVM_CAP_IRQ_ROUTING @@ -1363,6 +1364,9 @@ struct kvm_s390_ucas_mapping { #define KVM_S390_GET_CMMA_BITS _IOWR(KVMIO, 0xb8, struct kvm_s390_cmma_log) #define KVM_S390_SET_CMMA_BITS _IOW(KVMIO, 0xb9, struct kvm_s390_cmma_log) +/* Available with KVM_CAP_HYPERV_EVENTFD */ +#define KVM_HYPERV_EVENTFD _IOW(KVMIO, 0xbd, struct kvm_hyperv_eventfd) + #define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0) #define KVM_DEV_ASSIGN_PCI_2_3 (1 << 1) #define KVM_DEV_ASSIGN_MASK_INTX (1 << 2) @@ -1423,4 +1427,14 @@ struct kvm_assigned_msix_entry { #define KVM_ARM_DEV_EL1_PTIMER (1 << 1) #define KVM_ARM_DEV_PMU (1 << 2) +struct kvm_hyperv_eventfd { + __u32 conn_id; + __s32 fd; + __u32 flags; + __u32 padding[3]; +}; + +#define KVM_HYPERV_CONN_ID_MASK 0x00ffffff +#define KVM_HYPERV_EVENTFD_DEASSIGN (1 << 0) + #endif /* __LINUX_KVM_H */
Allow to build and test HYPERV_EVENTD until it comes through the regular kernel headers import. Signed-off-by: Roman Kagan <rkagan@virtuozzo.com> --- linux-headers/linux/kvm.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+)