From patchwork Fri Sep 21 08:18:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Kagan X-Patchwork-Id: 10609257 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 05B4F112B for ; Fri, 21 Sep 2018 08:20:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF15A2DAC1 for ; Fri, 21 Sep 2018 08:20:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D28912DAC9; Fri, 21 Sep 2018 08:20:31 +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=-7.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,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 B10DC2DAC1 for ; Fri, 21 Sep 2018 08:20:30 +0000 (UTC) Received: from localhost ([::1]:54361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3Gft-0004vX-Kg for patchwork-qemu-devel@patchwork.kernel.org; Fri, 21 Sep 2018 04:20:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3GeL-0003Y6-TB for qemu-devel@nongnu.org; Fri, 21 Sep 2018 04:18:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3GeI-0000qA-Lb for qemu-devel@nongnu.org; Fri, 21 Sep 2018 04:18:53 -0400 Received: from mail-eopbgr60092.outbound.protection.outlook.com ([40.107.6.92]:32788 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g3GeH-0000gL-W3 for qemu-devel@nongnu.org; Fri, 21 Sep 2018 04:18:50 -0400 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:X-MS-Exchange-SenderADCheck; bh=GRmVa2SlGQxah9OhE6b8GwRoCAkPXpjijGm0IBQukDQ=; b=UgAyualiCxBdih9yltZo0OjCsQlu+0oWkd5xpuL4wDHj36FLBJL8HkQyHzDTjTbPGhUdRQM+lpxltGmYtmQklGS5fVTbhbPM5m0CNj7Nc5l43A6pY1Au0Kv/dlnEPHo1qS+kJ0wgAz1Lmic9Gr2kbqyrLBiMZyuznWpA0NkM7e8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=rkagan@virtuozzo.com; Received: from rkaganb.sw.ru (185.231.240.5) by AM0PR08MB3586.eurprd08.prod.outlook.com (2603:10a6:208:e1::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Fri, 21 Sep 2018 08:18:44 +0000 From: Roman Kagan To: qemu-devel@nongnu.org Date: Fri, 21 Sep 2018 11:18:28 +0300 Message-Id: <20180921081836.29230-1-rkagan@virtuozzo.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [185.231.240.5] X-ClientProxiedBy: VI1P193CA0009.EURP193.PROD.OUTLOOK.COM (2603:10a6:800:bd::19) To AM0PR08MB3586.eurprd08.prod.outlook.com (2603:10a6:208:e1::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e94606bd-7ccc-4ab3-04fc-08d61f9ad9d5 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:AM0PR08MB3586; X-Microsoft-Exchange-Diagnostics: 1; AM0PR08MB3586; 3:zZt8Me/U0fXMEXYMtKHIqWqzCELdqDHp8Mu8gWWynLHxURVOwIzWH35iR6OA+0q0dVlegPzAkYHxu9qpt9jY/hqVpBRcy+TivNqOk/NhYDm7Rwvdk2sT5J1uaagVmQQXCwwqI6Qeyl8xB+pfr7tve4hmFTjaPgEUM/A0/01/h9aXiQ0N2lHxHBGZJxcw1xrPzBSRRcjXKblRC6mXIxCBEOPrO6QNBzmXOMoydUmj8Iyr5AgtA77k5ZlP21tJLSfi; 25:60kJlNFpXmc8CnGTek5eygHTC/rKo3R5B4vKU1tcZtehuOkb4Jky9ljjXMz17ifFExNfFFE6CpTuJ42ObFX4QZ+oKQwZ852198fnc4AmLWnr+mnC1in4G4zKV/8jwkJfVHVdfi/FYYPD6qu9Y7wvpDjd263eG6G2NxiwUIVe5KFAt2NoTJ6gIjBOdJ/UiQTQGKLVHrhRa1LplYoXTcarV72QTgRr7Xm1wCOgQj8bop70Pcs1iYsoNkkLvRPblsG1YiUULcpOV0i87Zp+aU4UKDJ8SGS2HKHNZZ7EibKikJdTq60RwFxQMA5govx8AqkGWz0XmYCsMZPJbyusJa4VGA==; 31:g8fWHnJICggX7zz1KjBZSVgoMzb8xllIN4bPYvn1DwR93H0pff+2zKhTqhmBwAoaNFpnuWzP+4UH5RVnq4MUXKOpDvem4ugZjEWejOsEb1k4faxd3R9Jm+pZkErAudJ4x+A8TxqhmV9Vr11l7TaZwSpiYI1VMURR6viEiBC1JWGhmaQMiwXRF9vsSV6UVOp35bAni0iTvHXS/9M568KDHBiU7/jd9ClrYWSpMweD58o= X-MS-TrafficTypeDiagnostic: AM0PR08MB3586: X-Microsoft-Exchange-Diagnostics: 1; AM0PR08MB3586; 20:g3X1jdgFKWq7cibGhM5W7/FgBps214BtCk2XMDbkKDR8qEhBnDyf2+SQKXIbJDozDXxGMTCSw7xMFUmktTkgw4yXqAFapzK8eSAYzFoLa42tdqNrS+dGflBIyZ0/9Ia8rkDzs7UUNqGkSQMwAPDMd385rseBYSRTome5XYtj5gaBRHoWAeVCRX0TQiPExgAXrcbGSIdSAusq7MK3UXmCuyrk2UY1MJV+gsRqhIeAcG+ZddMpQSYq/PdPa1iaVqp0w5sds8yUps+ps9HnDaPiiQET0PS+mXEbb2YrWCXZrPUk3ks2AhIQC44HB1cVDhMl/+N8uaPZ0a0vXKnQjD+syC9N0dIT14HUHLJyp7T3K872aEeBoGpP1c+/vWwzcf7Hqy27AZGWtgAnLOAUtMgwGUI+D9uy2QWqkRQyItrvgrZ6efVz3LhGGm5w/zWT2IfX5F1EIWRYi2O0VyjI4XljJ0KaISInUBb8raXzSDcGWFB/F5/ElYRxb0vy4D37Z90N; 4:mqX5I9kMuu9DP3bJ1e4xgzJ6Iqw56Jkjj07BGBctZHb2DV3BeOevxZKRIGlrz8QMNUu5PzVol01msZQug38VH6ssRBoAsQj1tQJVfr5rOMvx6+9Y86TooZ7yq5RiFAtfUNxNIqcsXCwkAZVbney8ejB+Oa4UpTl9RQODurLDpFOnqx1li1yJp4l4m4gr29yJNMEW9+bYsEGa9cBtPN+Oke9wX4TDd7ZfIgkFSeH4r62yPZZUHIgf7FI8ym73qYAzOG8q48wkScxHYRDe1Z0Lhw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231355)(944501410)(52105095)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:AM0PR08MB3586; BCL:0; PCL:0; RULEID:; SRVR:AM0PR08MB3586; X-Forefront-PRVS: 0802ADD973 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6029001)(396003)(136003)(39840400004)(376002)(366004)(346002)(189003)(199004)(2906002)(81156014)(50466002)(51416003)(305945005)(25786009)(2361001)(478600001)(316002)(7416002)(54906003)(86362001)(16586007)(26005)(52116002)(14444005)(48376002)(8936002)(36756003)(186003)(50226002)(386003)(69596002)(2351001)(53416004)(106356001)(6486002)(476003)(8676002)(16526019)(5660300001)(2616005)(956004)(6506007)(81166006)(68736007)(6116002)(1076002)(6666003)(486006)(105586002)(97736004)(4326008)(7736002)(3846002)(47776003)(6512007)(66066001)(6916009)(53936002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM0PR08MB3586; H:rkaganb.sw.ru; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR08MB3586; 23:VH5XJV07DIf4d3qAren1Jb/2+SkQCAMnb8+S8Kg4P?= UcMGajqpIyS7DgTt9/4Je1cJw1HuLTqwI9PuWYM5H2NB+GX6YBTiNCTq8UBZT4wuA1GYNqhN0N2mYfiCm3FbWbaVoxpSE/ArCh5qKiCZZTM2ktLn4xlvJeQ0EeJNUSsAbOeNI0ev9qIY/f8ud8/qaGQl4wM34NYBqstj+r7Fr6EQFu3gvNq/zynGjQHr3uR18gA43/bM4HmScmuiwJvZY6AQTJXo1Q8BsI57MvvPbhv//4Xp4DflODHPKnoLAlr9ympAGhVWhwrkqL/W0ztAO4YUguJRrEmrfRL7BYGtr6d5hdHHhjMt1nLVC04RwwzGC76v9iu/TaKgNkxuW8jd3xXSjqziNvYhHimjzvFhyGo9Udc4KSeFusxL+dl50WcrOT8xGADXlti4c31ghVsgwlYXQgJZ3PS6d223Vkybz7+aEiY284b/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3jUpZhqwcZa28Xs77RdxOMvvftwFdhZoFBLGLrC/cVAtrfQS2var06y4QeLmxHtU/lUwY2uIERhziYL34YIacG2M3tbmiaPX7ntY4++yoF6Y1yJtYs= X-Microsoft-Exchange-Diagnostics: 1; AM0PR08MB3586; 6:1SA3ntqBPdzxzV+UpV7vFXBEIa+QbPunfXX2jiPm4xx4JT0kJSl0V5pl8GQZ8OeuIsLXbJhpkv318NeqXlAJgYjV6GTIWwZYvkIyNquEzwRvhDj6S92jPPb9o6Y9GLv0XdouJsalIZBQz1KVaY7hINOYC0w8WToRLwsvyOWegTYgcefgmGPgBrgqs7VihCMQhswXbkV/uGFPoo9hsgolq2JpmIv19RX4TqoZA3qHA9JR/ziSDFZXVSdVY0uevpxUn/LNNmlhFI7G9U7uMWFW+CM8lQYIUiDSCgOSPJxHCiAtdufsPFchEFcyRFIUEVgqhzgjo8e0CoK2UltX46mQ6UmsRnWDYfY7BlmOERNNyhBISKCntFQzUN7z72wU3KZxQIKqxZki2UR2JQtUcn+TlMJ+y31PpzyvHqLTrzymR5dnIkfN8urpgatgMPFyT/lmq4NvRQwbsJUDWV/BJG+SEg==; 5:dZOhHaRPDFYl/eOC+E316g2AByvMlijhX5I+O08PO6UUkkYY4+ozzPawnw5/M9TN3mV2M2etgDEPzg3Ofxs7X2Rw3aRrPdU5yqoXgixHozsE+kZtz2etpsIY560QPeKT+3RMmgbINhP7r0jh+pytRweSuNv5iiAclPaF4utMQBI=; 7:roc26R+BNnuR193OJPMiXZR7yqVuARG+5yfo+cDc5X9PnQ6gGe/QCtZSNEz+UiBqEC/lW10a1WZxauAwwLRvaayQekn0Xe1HCAcLbVbFppJi+rZbWgSwDOf8rWwoayRchg7sMjGeahg8fcLs+zG+oqh7LNB8KICoDLpr+326F9wOSI0RIEhwAJ/TpwGadM4mutMqaTOkNW1DoBffzrxmH64nYnurhlSv+1cEa9xa1nkPSE5u6ve3Dl1lARktgFj9 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM0PR08MB3586; 20:fT1wdf0PweawzP6ZVTppdRS5xJnheKEZOfx/0R+HtwVTpKjFbQVT+soW7pyOqcIvbAbJlIKJH3uWPW4YFD0fzrElrarO0DAoftLCgxR1lZWBpPa0BgWnYVC+0t4SwxNv12U388bc52m85tppz09mZsuK/vQOU6XmtvbbI1oaMfY= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2018 08:18:44.8294 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e94606bd-7ccc-4ab3-04fc-08d61f9ad9d5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3586 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.107.6.92 Subject: [Qemu-devel] [PATCH v2 0/8] hyperv: refactor HvSintRoute management X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vijayabhaskar Balakrishna , Eduardo Habkost , Konrad Rzeszutek Wilk , "Michael S. Tsirkin" , Venu Busireddy , Liran Alon , Paolo Bonzini , Si-Wei Liu , Igor Mammedov , Boris Ostrovsky , Karl Heubaum Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP This series modifies the management of HvSintRoute, which is an important building block in Hyper-V emulation infrastructure, to make it easier to maintain and enhance, and paves the way to the more complete Synthetic Interrupt Controller (SynIC) emulation. v1 -> v2: - include two more cosmetic patches Roman Kagan (8): hyperv_testdev: refactor for better maintainability hyperv_testdev: drop unnecessary includes hyperv: cosmetic: g_malloc -> g_new hyperv: synic: only setup ack notifier if there's a callback hyperv: allow passing arbitrary data to sint ack callback hyperv: address HvSintRoute by X86CPU pointer hyperv: make HvSintRoute reference-counted hyperv: rename kvm_hv_sint_route_set_sint target/i386/hyperv.h | 23 +++----- hw/misc/hyperv_testdev.c | 120 ++++++++++++++++++--------------------- target/i386/hyperv.c | 80 +++++++++++++++++++------- 3 files changed, 122 insertions(+), 101 deletions(-)