Message ID | 1471613966-7267-7-git-send-email-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 A4679607FF for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 19 Aug 2016 17:17:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90F38294E8 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 19 Aug 2016 17:17:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85759294EC; Fri, 19 Aug 2016 17:17:01 +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 B636C294E8 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 19 Aug 2016 17:17:00 +0000 (UTC) Received: from localhost ([::1]:58295 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 1banPf-00079C-NB for patchwork-qemu-devel@patchwork.kernel.org; Fri, 19 Aug 2016 13:16:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <rkagan@virtuozzo.com>) id 1banP9-00076T-M5 for qemu-devel@nongnu.org; Fri, 19 Aug 2016 13:16:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <rkagan@virtuozzo.com>) id 1banP2-0002vr-Jv for qemu-devel@nongnu.org; Fri, 19 Aug 2016 13:16:26 -0400 Received: from mail-he1eur01on0119.outbound.protection.outlook.com ([104.47.0.119]:61863 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rkagan@virtuozzo.com>) id 1banP2-0002vl-7F for qemu-devel@nongnu.org; Fri, 19 Aug 2016 13:16:20 -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; bh=/cEzQh0TeIiLqBIk6wXOhlSiN5zx2xFGVJxkszcZwJw=; b=Kpk2YgiRFDlaobQGxJUBASIAx6W6qykNB7mS3rt35j/V6z1wNQugWau2HKSWbWCWMvx3rnaSLMtVXb5LZXNpZgeh6TDCVT0wr1u+f++/sD1H8ifmt5w8bFUkttJ5JWGYGczbUwCJzvTqewDRQR23WpXTjA835e698tWEutzem0E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=rkagan@virtuozzo.com; Received: from rkaganb.sw.ru (195.214.232.10) by DB6PR0802MB2469.eurprd08.prod.outlook.com (10.172.251.17) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.549.15; Fri, 19 Aug 2016 13:39:45 +0000 From: Roman Kagan <rkagan@virtuozzo.com> To: <qemu-devel@nongnu.org> Date: Fri, 19 Aug 2016 16:39:25 +0300 Message-ID: <1471613966-7267-7-git-send-email-rkagan@virtuozzo.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1471613966-7267-1-git-send-email-rkagan@virtuozzo.com> References: <1471613966-7267-1-git-send-email-rkagan@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [195.214.232.10] X-ClientProxiedBy: AM4PR01CA0021.eurprd01.prod.exchangelabs.com (10.164.74.159) To DB6PR0802MB2469.eurprd08.prod.outlook.com (10.172.251.17) X-MS-Office365-Filtering-Correlation-Id: 87cd6832-7c31-485e-aca5-08d3c8364898 X-Microsoft-Exchange-Diagnostics: 1; DB6PR0802MB2469; 2:ERqYSCFIwarjtI1kPvXp7unHL+TZkE0bcYolXLhsapgDyzsKzrkBhFgowRknoLukKQb1ooRDaEcnkdS4eXyNzEnaiwkJ6+Nae9E3uJWBxs7zak1dBx+IDa+P81Ws07RVSJ+mc26jg39F1a67jRw1bO87iDV8Tr4QumT52UB+mjMQEENDOhR4M9tZiiQKHKlI; 3:FdV0wpZYBSLIGuyn0+IiqOu5LxnUPzcKDiPeWYudQvSgZxSafSA1qQHQlqrOwcFe5VdTW2Ezv7q0ZwdN4RL+xLSvlVCr6CNNCamy4PWuMUt30ogg4/A82IAVMQBQvBYx X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0802MB2469; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0802MB2469; 25:lDeRYtiI33f4m7Rps15cjKzbYLbRUBVA/pmbRcEdT5R4q+EuvXGzkJ8ahjzcohXIMsAiIfsBjYvE/4rlmcDEBIgM3nlL5R0YW08VShl9mRVZDwkjzJt690QqHghxfOj81eDHVlEs0vyO59GWWULrTKahuF1DSfTgjAK8TvwYizSS0vDaHW76N1FPSoyjwSgc+0wvhVjGz8KO+mca5vwqKKwCNhRkkRBJ8NfxJdv5gDdTNx2iwV7sFaQ5I4PqvcLyQNV4aN9d41xuvAmYc6Z51e3jPYo1BoPlGhivhcvTXA+k82ZQF8GrntqJJxD6yyPx7P6GMXUtzI4VTLU3c13+Z39bDE3DfYjOhvQkZe9msG9D58ZXh2xiLqeiyBigrcNNGi6lX06YMI4f2BGxKUUQmHzVVHBHD2jY2z+ac5Kzs03wmCTlB3/pfk8spYlSTNe1hnWmQS6Bn32sNLAyGYGw/FEYEAXLfU7Adfv9SMq3S+BHLOm8v12A8LpAWqGIM+tpuCG3s+h/9PBq9QUL3m4DEAsRd0zsy1q8xogg4+LcTLDbq/OP2ia1bRs7agNluiyQ3j4PU3b7nyU6NGCSTMbgdeQwlhgS+N5+YEoDwbKSN2HP4ODUQvubVwNOB7n6fyV2Zgpikvn3i1XPjo0qI1HoHoOt09gLXUt/8IVvo7RXSS7KA7m5WavM1BljfqVGrgCK; 31:LiAreWeobismHur8nx9whzizYsQjzz/OJIzM6DDEvh7thqtX1tNxKj9cOA/HuhLJ4qaaYIeKd8HRjC6ny5dTVACXqt8MQt4zykG0LrI7UOivucQ2HfXAhbvxms2jKH6GfCn+XmleEKLL3AVhGxUeEM7GGMImbprONTrivkCSvkMlUx+Sr+61onAkA6gOCLvOWbzafjixhrtD41XkE59gBI0o1rma+LmqbHEz6TKghv8= X-Microsoft-Antispam-PRVS: <DB6PR0802MB2469707E4BCAAFEFA443D9F0C9160@DB6PR0802MB2469.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6043046)(6042046); SRVR:DB6PR0802MB2469; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0802MB2469; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0802MB2469; 4:neVH4ChWTn121oTSGIonkZX/aFaN0SdlnoFAxf9mGPVHcXIGFr0oyGBfVuZFromM9mC8FlqsfzrWhX2gGisc/8YzxJ7mR+55hBXb2vXUwowW4AEKUUdOAdKkZi7/UwZC/BOAIKaGNKB3vXTlQr+0TH+xfET2IOfDxRgLpfRrADVeslfcc5gmr2e8PWRV2LKh1EURdM51ebjnxzcR5cQ3ph9ekaD77u02dMQdV6aoK+V3zMh7rkJ0OcTK2gKSrdmvw+a3UbSu6gntPh/2hZLnLtw8DQ30gSgWQRpy8C9RSuhFuPNdhokmU/JsRo9YI64d+9CHCeQRe8ccMqM/hWka66Z6y/otb2uwlfRSdGDXPynkk4tnY2S/EQbI0q9I0fdZpoMU6nQ0Bzu2s+DMAWskhs35QBbrXZhOLle8zJfomvU= X-Forefront-PRVS: 0039C6E5C5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(33646002)(229853001)(305945005)(7736002)(81156014)(92566002)(8676002)(81166006)(7846002)(48376002)(105586002)(47776003)(66066001)(50466002)(101416001)(2906002)(4326007)(586003)(36756003)(2351001)(106356001)(86362001)(50986999)(76176999)(3846002)(6116002)(77096005)(5003940100001)(19580395003)(69596002)(19580405001)(97736004)(189998001)(68736007)(2950100001)(53416004)(110136002)(42186005)(50226002); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0802MB2469; 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; DB6PR0802MB2469; 23:Z+9+3YxznuX7tWMwYNaRV6xrLEIG/5R3yFLo04u?= =?us-ascii?Q?mNAjo/RBVZXrlreqrBttxMo0FifrsviiVeGxOVzkUjoaHnQ451A+qfD/GcIp?= =?us-ascii?Q?IAdwWdKda/PSTV/VR75qYvcdR+p10RN3/x28b+7dBInM4q3VuzIxXM0JpER8?= =?us-ascii?Q?Gpq4OluePLvsLjuw+CCpF/SkeaNGvGt0fmqMlJsky/Cqtvou/uNOJCk14FL6?= =?us-ascii?Q?a1RnJGewLafhjWLsM/aoUEDEPIDgdj7bXs5EAbbVHaPf1v73MrwgIPNMKuDY?= =?us-ascii?Q?s2Y8/jxEY2dNwFS0CkYwSNTgOsBwJpbj2FaEFhp/Ky+tNwi/JHHk/nzKClVz?= =?us-ascii?Q?/sD7jgP/ni2watAFJr8xzizy+o+RaKVaob56k2IWuHGgoKi4u1fMXJR6Wtem?= =?us-ascii?Q?jtBwINEMCL/lYPnka9lrAc4VauybjJtJyBCxJP2rgiomot0lDCEa1FGcq8TD?= =?us-ascii?Q?K9nvns7Poi4b7n2bxa516imKBGCZuNi7lfPAxwUc257jxpqcYkDTwRN9qe4e?= =?us-ascii?Q?l/iqEV5PBvbcWiBVsQJKK2EdsH/SwtoZgCu7WSxAhhumyDOBZKkb3qvb1rxu?= =?us-ascii?Q?1dVPOyU8jR6GFOOrGiY/fGBHDVPeKpIk8cnZXyuOFQGVGlK95Wx47Lx3hXaT?= =?us-ascii?Q?RJgpinStIWXrb4l8W0M5GBTt3CISONaiaLk8jO0SuneZVLehCI0ktIw3u4xD?= =?us-ascii?Q?h94cO8wNThvpLe5NsDUxYBXW7llIC3SwjZbvs2OGQDnaumbgkG8ucxu+8DMi?= =?us-ascii?Q?3q6pDlOXQjGhODH/7cxAdQd2XTyOr+pNho70XFa26jMOoHtU3+vupTSyO8sr?= =?us-ascii?Q?PjlnlzPaoVXzq/avKV9dreOLVHyb0pgViJezylPJhljN9KmTLUNgzWIOf82h?= =?us-ascii?Q?eIzwFgclBalL0e5IRf8eLI053UUoz5LjjxxpXe5JP0o7fXurwAZ6iRmch5BY?= =?us-ascii?Q?LQ2WLN+Ag7KNsscpxIyo2EX2IBjU2M+L7EWIW70LpLeWhwI/ubBEufNDz55Q?= =?us-ascii?Q?g1dJN5A07naRQ0eNAkMUQuzaoeFF9fQIJ2POHoQCGlMQ9HKh59KeJ9Exqp+d?= =?us-ascii?Q?Qj0ZO0bzeoOK8VSeeNJnrc2WLh+3UzvAPqMIE+vr9LM88Rmu2wmt1U2J3P0C?= =?us-ascii?Q?P0MgVxETi8ac=3D?= X-Microsoft-Exchange-Diagnostics: 1; DB6PR0802MB2469; 6:5zWPKx1McKMewgdILcVB+9bSOxpFTO5C0UE/nNA7Wxwntopxclg+tJF+pY6YxfziYrFTbUvNc/T/ggTQGgyWpil84RuOjN7zm18EVW0TQaPctIMl9Qxk4nKROODGXYTIlCtV310F4mNrDw3rPGX7+km+NV3bKxBSzYd60K+6O/7huLQUpBdo+VmYJtn2Sjg/W5hvKVRftDgTzce7U9xOzmdOhIBXCwbDoq0nQ/c/iHc/wLBQ2qQKvMsbOgeL1ZbpWqaKTBESoFY5G1odjF5IKfePhTzhQ7QeWearm4+w9W6PP2O3BIpI4/ceoN1DdgwU; 5:RYzKemfBUl2H1ydLyo3biNnB0S5n5P86a/3r/ghWeNcUQAwvuBl2GOBki/JSPLF6ADitDkcEpwJjQlxek0vWpzXkGZTJ/R5Y75Ok3HbUh0372LqxcsjJFtvpVJXY9tB6da/h38fNt5Patw+BVAqdBA==; 24:V+hu+8DQxSzGnZYoGMl8oqHGBygOu7NYdTBYRyXwMRnPSbiqhdVmKNcr8IIc9khCF2dlI3Mm5rkn37+Nbn7dGxFel6vad4RV2HazKd2POMY=; 7:2XVW1P/jOzgdX6M028Ng7kU3mTqWoZaej5A3/A34anitnZle2HzsQrlai4OWJ2YOuDpm4DucxPyDw+yg0wVDe+gNdWl0f6rW3Fhq02Vbf4KRjyQfTThJijA/gvm3kDMmv4y5+L1IHsYxN9mp0io//qcyO2ypoiWBUxIHQsLsgXpTVGEC7r4hfdMFPAym8cXQhuThouMvvueFqLGQsyI3T7eVXKuaLWVr9iPJ9AzYVWJYdVETIatFXBK/98Xwak25 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB6PR0802MB2469; 20:jT97eelS3f5ME0mC7hLzo/RqJKfUzHHeDesFp+ZNiqRaLmPOvvZD0zC1rpAG2DCgKb5Gk++uitGDUwq7kJRYYjfeqmPFdqI+tcLusXJmBE9ANLg0PtDLQTNASJSXzGsCHp3g+hdpX0XNTHjQN5O1ECnhTrvlu12b2OU+9pFzXOs= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Aug 2016 13:39:45.4791 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0802MB2469 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.0.119 Subject: [Qemu-devel] [PATCH v2 6/6] virtio-ballon: drop reset handler 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: "Denis V. Lunev" <den@openvz.org>, Ladi Prosek <lprosek@redhat.com>, Roman Kagan <rkagan@virtuozzo.com>, Stefan Hajnoczi <stefanha@redhat.com>, "Michael S. Tsirkin" <mst@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/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c index 056ae49..1557650 100644 --- a/hw/virtio/virtio-balloon.c +++ b/hw/virtio/virtio-balloon.c @@ -465,16 +465,6 @@ static void virtio_balloon_device_unrealize(DeviceState *dev, Error **errp) virtio_cleanup(vdev); } -static void virtio_balloon_device_reset(VirtIODevice *vdev) -{ - VirtIOBalloon *s = VIRTIO_BALLOON(vdev); - - if (s->stats_vq_elem != NULL) { - g_free(s->stats_vq_elem); - s->stats_vq_elem = NULL; - } -} - static void virtio_balloon_instance_init(Object *obj) { VirtIOBalloon *s = VIRTIO_BALLOON(obj); @@ -506,7 +496,6 @@ static void virtio_balloon_class_init(ObjectClass *klass, void *data) set_bit(DEVICE_CATEGORY_MISC, dc->categories); vdc->realize = virtio_balloon_device_realize; vdc->unrealize = virtio_balloon_device_unrealize; - vdc->reset = virtio_balloon_device_reset; vdc->get_config = virtio_balloon_get_config; vdc->set_config = virtio_balloon_set_config; vdc->get_features = virtio_balloon_get_features;
Since the release of ->stat_vq_elem is now ensured by the vm state change handler, there's no need in the reset handler doing it. Signed-off-by: Roman Kagan <rkagan@virtuozzo.com> Cc: "Michael S. Tsirkin" <mst@redhat.com> Cc: Ladi Prosek <lprosek@redhat.com> Cc: Stefan Hajnoczi <stefanha@redhat.com> --- hw/virtio/virtio-balloon.c | 11 ----------- 1 file changed, 11 deletions(-)