From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Z0Was-0005CL-G5 for mharc-qemu-trivial@gnu.org; Thu, 04 Jun 2015 10:58:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0Waq-0005A9-1w for qemu-trivial@nongnu.org; Thu, 04 Jun 2015 10:58:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0Wap-0005r4-AQ for qemu-trivial@nongnu.org; Thu, 04 Jun 2015 10:58:04 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:46770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0Wal-0005qG-0r; Thu, 04 Jun 2015 10:57:59 -0400 Received: from [192.168.88.2] (mjt.vpn.tls.msk.ru [192.168.177.99]) by isrv.corpit.ru (Postfix) with ESMTP id BC81940942; Thu, 4 Jun 2015 17:57:57 +0300 (MSK) Message-ID: <55706775.7090204@msgid.tls.msk.ru> Date: Thu, 04 Jun 2015 17:57:57 +0300 From: Michael Tokarev Organization: Telecom Service, JSC User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: Shannon Zhao , Shannon Zhao , qemu-devel@nongnu.org References: <1432972477-13504-1-git-send-email-zhaoshenglong@huawei.com> <1432972477-13504-3-git-send-email-zhaoshenglong@huawei.com> <55705E46.4010106@msgid.tls.msk.ru> <55706108.9070903@linaro.org> <55706186.5070701@msgid.tls.msk.ru> <557065ED.7010409@linaro.org> In-Reply-To: <557065ED.7010409@linaro.org> OpenPGP: id=804465C5 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, peter.maydell@linaro.org Subject: Re: [Qemu-trivial] [PATCH v2 2/7] hw/mips/mips_jazz.c: Store irq array in MachineState to fix memory leak X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2015 14:58:04 -0000 04.06.2015 17:51, Shannon Zhao wrote: > Yeah, but I think something like below would work. > > cpu_exit_irq = &qemu_allocate_irq(cpu_request_exit, NULL, 0); > DMA_init(0, cpu_exit_irq); NO!!! :) /mjt From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0Wao-0005A4-IU for qemu-devel@nongnu.org; Thu, 04 Jun 2015 10:58:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0Wal-0005qQ-8o for qemu-devel@nongnu.org; Thu, 04 Jun 2015 10:58:02 -0400 Message-ID: <55706775.7090204@msgid.tls.msk.ru> Date: Thu, 04 Jun 2015 17:57:57 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <1432972477-13504-1-git-send-email-zhaoshenglong@huawei.com> <1432972477-13504-3-git-send-email-zhaoshenglong@huawei.com> <55705E46.4010106@msgid.tls.msk.ru> <55706108.9070903@linaro.org> <55706186.5070701@msgid.tls.msk.ru> <557065ED.7010409@linaro.org> In-Reply-To: <557065ED.7010409@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 2/7] hw/mips/mips_jazz.c: Store irq array in MachineState to fix memory leak List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Shannon Zhao , Shannon Zhao , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, peter.maydell@linaro.org 04.06.2015 17:51, Shannon Zhao wrote: > Yeah, but I think something like below would work. > > cpu_exit_irq = &qemu_allocate_irq(cpu_request_exit, NULL, 0); > DMA_init(0, cpu_exit_irq); NO!!! :) /mjt