[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 0/4] Fix memory leaks in QEMU
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 0/4] Fix memory leaks in QEMU |
Date: |
Fri, 18 Apr 2014 18:25:24 +0100 |
On 18 April 2014 18:08, Kirill Batuzov <address@hidden> wrote:
> And something like this happens every time qemu_allocate_irqs is called.
Which generally only happens in the board init stage, ie once.
So why care? Leaks are interesting if they happen in code that
could be called multiple times (eg for hotplugged devices). A
handful of bytes which we only allocate once is irrelevant:
it gets freed on QEMU exit anyway.
As I say, we will at some point want to overhaul the qemu_irq
APIs to more QOM like behaviour, which gets us a bunch of
nice things like properly named inputs and outputs and maybe
ability to wire things up via config file or command line; and as
a side effect we should end up with the corresponding allocations
being tracked. But until we get to that, there really isn't a practical
problem with the current approach for board level IRQ wiring.
If we're leaking IRQ related memory in hotpluggable device
init/deinit that might be worth fixing.
thanks
-- PMM
- Re: [Qemu-devel] [PATCH 1/4] Replace acpi_pcihp_get _bsel with generic object_property_get_int, (continued)
- Re: [Qemu-devel] [PATCH 1/4] Replace acpi_pcihp_get _bsel with generic object_property_get_int, Kirill Batuzov, 2014/04/18
- Re: [Qemu-devel] [PATCH 1/4] Replace acpi_pcihp_get_bsel with generic object_property_get_int, Michael S. Tsirkin, 2014/04/20
- Re: [Qemu-devel] [PATCH 1/4] Replace acpi_pcihp_get_bsel with generic object_property_get_int, Igor Mammedov, 2014/04/22
- Re: [Qemu-devel] [PATCH 1/4] Replace acpi_pcihp_get_bsel with generic object_property_get_int, Michael S. Tsirkin, 2014/04/22
- Re: [Qemu-devel] [PATCH 1/4] Replace acpi_pcihp_get_bsel with generic object_property_get_int, Andreas Färber, 2014/04/22
- Re: [Qemu-devel] [PATCH 1/4] Replace acpi_pcihp_get_bsel with generic object_property_get_int, Igor Mammedov, 2014/04/22
- Re: [Qemu-devel] [PATCH 1/4] Replace acpi_pcihp_get_bsel with generic object_property_get_int, Kirill Batuzov, 2014/04/22
[Qemu-devel] [PATCH 2/4] acpi-build: properly decrement objects' reference counters, Kirill Batuzov, 2014/04/18
Re: [Qemu-devel] [PATCH 0/4] Fix memory leaks in QEMU, Peter Maydell, 2014/04/18
Re: [Qemu-devel] [PATCH 0/4] Fix memory leaks in QEMU, Markus Armbruster, 2014/04/22