[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC 00/15] Refactor PC machine to take advantage of QO
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [RFC 00/15] Refactor PC machine to take advantage of QOM |
Date: |
Thu, 26 Jan 2012 20:57:57 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
Peter Maydell <address@hidden> writes:
> On 26 January 2012 19:00, Anthony Liguori <address@hidden> wrote:
>> We need to modeled MemoryRegions and qemu_irq in QOM too.
>
> +1 : this ought to let us get rid of SysBus...
>
>> MemoryRegions
>> shouldn't be that difficult. Our habit of passing qemu_irq's as arrays
>> without
>> an explicit size will probably require some refactoring but in principle,
>> supporting irqs should be easy too.
>
> I think that there are probably a lot of cases where we're using an array
> of qemu_irqs now but should be using separately named signals of some sort
> instead (particularly where we're using them for things which aren't actually
> IRQs...)
Apropos array of qemu_irq: we're leaking them in several places.
qemu_allocate_irqs() returns a pointer to an array of qemu_irq whose
elements to point into an array of *qemu_irq. Both arrays are malloced.
Many callers ask for just one IRQ like this:
*qemu_allocate_irqs(..., 1)
This leaks the array of qemu_irq.
There are other, less obvious leaks of the returned array.
- [Qemu-devel] [PATCH 05/15] piix: create the HPET and RTC through composition, (continued)
- [Qemu-devel] [PATCH 05/15] piix: create the HPET and RTC through composition, Anthony Liguori, 2012/01/26
- [Qemu-devel] [PATCH 08/15] i440fx: introduce some saner naming conventions, Anthony Liguori, 2012/01/26
- [Qemu-devel] [PATCH 13/15] i440fx: allocate MemoryRegion for pci memory space, Anthony Liguori, 2012/01/26
- [Qemu-devel] [PATCH 12/15] i440fx-pmc: calculate PCI memory hole directly, Anthony Liguori, 2012/01/26
- [Qemu-devel] [PATCH 14/15] i440fx: move bios loading to i440fx, Anthony Liguori, 2012/01/26
- [Qemu-devel] [PATCH 15/15] i440fx: move ram initialization into i440fx-pmc, Anthony Liguori, 2012/01/26
- [Qemu-devel] [PATCH 11/15] i440fx-pmc: refactor to take properties for memory geometry, Anthony Liguori, 2012/01/26
- Re: [Qemu-devel] [RFC 00/15] Refactor PC machine to take advantage of QOM, Peter Maydell, 2012/01/26
- [Qemu-devel] [PATCH 10/15] i440fx: move some logic to realize and make inheritance from PCIHost explicit, Anthony Liguori, 2012/01/26
- [Qemu-devel] [PATCH 09/15] i440fx: create the PMC through composition, Anthony Liguori, 2012/01/26
- [Qemu-devel] [PATCH 07/15] i440fx: eliminate i440fx_common_init, Anthony Liguori, 2012/01/26