From patchwork Fri Sep 21 08:18:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Kagan X-Patchwork-Id: 10609263 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 2DE16112B for ; Fri, 21 Sep 2018 08:21:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E85D2D75D for ; Fri, 21 Sep 2018 08:21:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 105362DAC7; Fri, 21 Sep 2018 08:21:41 +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 7A5632D75D for ; Fri, 21 Sep 2018 08:21:40 +0000 (UTC) Received: from localhost ([::1]:54364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3Gh1-0005rb-Kx for patchwork-qemu-devel@patchwork.kernel.org; Fri, 21 Sep 2018 04:21:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3GeS-0003bP-D9 for qemu-devel@nongnu.org; Fri, 21 Sep 2018 04:19:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3GeO-0001Di-QW for qemu-devel@nongnu.org; Fri, 21 Sep 2018 04:18:59 -0400 Received: from mail-eopbgr60095.outbound.protection.outlook.com ([40.107.6.95]:38256 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 1g3GeO-00012c-Bo for qemu-devel@nongnu.org; Fri, 21 Sep 2018 04:18:56 -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=pax2d68xuYZyaTxOSJWnO9DiqXNwqJmRO5b2znuh7c4=; b=IBehR2OPViiU0UeJABn3fuFmJeCn+ugEMXkgUU0wXJydG+8VD771877z85WDhN2ITyXAEa/rdlmsDUpkpPps5tDPUtZOS53SImQAP8CcrXovfz2lybTJHn/WeMha1H8czubXqC+UXEO8VOSwI4/CHm5FjvZc+wp52wY4kXUEV+4= 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:49 +0000 From: Roman Kagan To: qemu-devel@nongnu.org Date: Fri, 21 Sep 2018 11:18:31 +0300 Message-Id: <20180921081836.29230-4-rkagan@virtuozzo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180921081836.29230-1-rkagan@virtuozzo.com> References: <20180921081836.29230-1-rkagan@virtuozzo.com> 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: fcd01e7f-9cd7-4d2a-12bc-08d61f9adc86 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:tULDxIgi9KpGu+hZQbe76SU5RrmINCRmaXBo+qY/8ZtMDtVp8fWomym2HCHGCZYU8JpPDVCl0C6GDI7eLBwarvNamHStwGE/elliviqtR1YLbUas5m1dBtCHW1GJtP4AM83L03KB0jfHZjdOoobJJH30JSdcrdZdygfzDr+5AiMC4PvKpawjq/iClgFR7M0/0mcbVkxdpUXTsv8vWWmgUbuZ0guITnodfKBJltNN36gx10p5Vkbz5U9UFmopSQ2E; 25:1luCJ4J/Jx2xJrEFDmPT4Ah84qRcUzf9hDyiqdWPHpcWli8S6B/KUwyv/0OQ+QKdTFkaWShmbYKWS2ddiDcufCigLefBirk7fxAQi0p2wxtsZ7yedr54en5qBbeYz355jNuCI281w6Lh3g7Lt6mwlL+my4AtsNA9doo9Rt6mh7mH/l5w7V6D/uhwe0RiGosCZDEb6hT5KMptDUz9Y+tN+EZ3aWOYcOEKDXp+bhSAI8V4uIWXHDJM3uMSBAZbQsWXRFLt3C0T0CM0lwHBpCwqk0Gm/f8mzUlmWQ2AqIUhWKY/nRgELHsETAeVAnppW+ctD0xo+j/v5lwIGWu1dhN03A==; 31:Ny94Plu/J+3lpqtAqWilqOjshd3foAf4OTqYURLUVNNdKpFnC7BUZx9pu2QTh9qoga4eJi9dBEs9XAePn1v7NZilP0wW4CtcIA0OW3zWBZNVxtLMdkt6FpQjOdwwUDQQvoBMvtYtHUFwQYavDS+4cL71BymZtlTnjNpOLbYEg7sGal3pljykAjIb8vQSKh7F337GSXoqojoh4wJXtqf+ub+4RxGSRMy/HN7R4tpefAg= X-MS-TrafficTypeDiagnostic: AM0PR08MB3586: X-Microsoft-Exchange-Diagnostics: 1; AM0PR08MB3586; 20:UstIXr/o60EUyjJnbQomn5cKVLmr8YOczUTo+CCAF1SPCuxUclgUoOvkpqVGqah9BTYS/tCyi+hw9SKkWSfrggOAUSL7VH2r79JTXxHZ3mZH1/4mqiBog8UujidinmqMkoITfP3VkqCH3Fy9J3nb0tc+ZDJnHy2FPoFJdRWv9iNyfeqklZNA3dueEB++BP5E65wkEQltStp21H1XjUhADB4FttnWe2/oNa4ERR8NCZT8E5hmTsrFG6P1x7CMb4yybmspbJSRUdCkciKs55ze+fNEb2vKiRiAKKWIdX/CbW4Mbr+NiwDH9Xqg0to7u1pmGz/m+HUgRj1oIP+lgYk7Yzh3FWedg6WWKb8BeYsRI2d9PURlE620d8wDUW/6VPrcp0ukRMkCcqaw6khBbDxJkVNU87nwU7qqxB9hqylWqzF6qhpbrvUfT16op6jtd5nJbpXYDyomj/KTgFvC2iVrdUf6Ez3GIojx05cAn7B3i2kKYsqp0ZphCOhI+IEiDLGT; 4:gkLwEOfpmr1Tt9cc3WtqSm7nvgSbMDuS09SyHsD4me4kfRpB/ChBcssWdPXJmvf/P3YF2tX6SGF+jD7Uqcm77U5EoHztfElGWUFmWdAaxDZ6OCTg19gdREJDWbF3UYN97pINLOS6leuNfvpzGq7boUF9QdOs6NNg1lCxn/oJJ6nDmG9pybsfuUBADnv9oWbELzJ+PGMoiSoAr9D1Rbo6nX+diJiQUGkwhcDgr5e97hF/uCL2/GyFLo1w8aprx9rk34iH2p/0nR5i1YNnKdo94Q== 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)(979002)(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)(76176011)(186003)(50226002)(386003)(69596002)(2351001)(53416004)(106356001)(6486002)(11346002)(476003)(446003)(8676002)(16526019)(5660300001)(2616005)(956004)(6506007)(81166006)(68736007)(6116002)(1076002)(6666003)(486006)(105586002)(97736004)(4326008)(7736002)(3846002)(47776003)(6512007)(66066001)(6916009)(53936002)(969003)(989001)(999001)(1009001)(1019001); 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:/bySwZR6q70VXIYLNCb9RHmvFMxnxBJTi7U62GmZ6?= QTKOcxv/u35UED900FOLFylohPzogqkDHiW95piqMSakAfdByo5puWZujmFEH925XCvSd3PnUaTJg2zq7tmCQugFVMJMuxLBLkMAGOBW+p9jUSyeTgHI/AOfHcndM4hP8u8+Brb0euGWoPa1CkMfnYO5Wgaa67kdFl7323BHfE6Y1tWqyoG3XyWrKFu1x17hw1VSDGf239ifXliTZ+z4jyMDgQbf9xAZCoV5HXqlUQXCn/sb2ZovZVzyu0N7S6PiiwVEJ5/9P8ExRLujeuXy4AZpm85kfaF5eOi5SaydhMEha4Lx+MyEoAtS2YcKFw1gLpJ31ZJ/ZEw82Q/fuiKoABbKOFXn6qfou2vZEnInckOXfJ76nSvISgdxbw0cB0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+FndNYqhVhVmyE5enG44G5K3zUIinHTsHxyAaKjKuVY6/EaO2WEHru8/8O/yRiDQohi1cQ2C+w4WxAz0gAYeb3UYp1j41xxtEymirXvYTKX7H5mlI63A0fbvSTyespqrdlzq+YoUJVKw+rI4Aw3p7/Aydse+v+V9S SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM0PR08MB3586; 20:jeFmTHfA+vi4gJxALE0Em9CvWq9joe3bIs1hkmMctlkghOrTgLjypN/t++0XHwarJLpawwQIJJYeQ769FSdCp6VnIyrKRemt9qJULAiJDo9mAQ/fcWxLrFh/7Foj6ulmam+86vSo1QLnR1mBzSvpu2X1Gmms1vYb57Rzs766LrE= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2018 08:18:49.3608 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fcd01e7f-9cd7-4d2a-12bc-08d61f9adc86 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.95 Subject: [Qemu-devel] [PATCH v2 3/8] hyperv: cosmetic: g_malloc -> g_new 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 Signed-off-by: Roman Kagan --- target/i386/hyperv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/hyperv.c b/target/i386/hyperv.c index 3065d765ed..47368b77c0 100644 --- a/target/i386/hyperv.c +++ b/target/i386/hyperv.c @@ -88,7 +88,7 @@ HvSintRoute *kvm_hv_sint_route_create(uint32_t vp_index, uint32_t sint, HvSintRoute *sint_route; int r, gsi; - sint_route = g_malloc0(sizeof(*sint_route)); + sint_route = g_new0(HvSintRoute, 1); r = event_notifier_init(&sint_route->sint_set_notifier, false); if (r) { goto err;