port io mem leak
Valgrind shows a memory leak below:
==21745== 208 (112 direct, 96 indirect) bytes in 2 blocks are definitely lost in loss record 588 of 856
==21745== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==21745== by 0x24D4C5: malloc_and_trace (vl.c:2156) ==21745== by 0x50637D2: g_malloc (in /lib64/libglib-2.0.so.0.2200.5) ==21745== by 0x21A519: isa_register_portio_list (isa-bus.c:102) ==21745== by 0x210DF7: ide_init_ioport (core.c:1993) ==21745== by 0x2169EF: pci_piix_ide_initfn (piix.c:137) ==21745== by 0x2269DD: pci_qdev_init (pci.c:1492) ==21745== by 0x274839: qdev_init (qdev.c:150) ==21745== by 0x27491C: qdev_init_nofail (qdev.c:243) ==21745== by 0x225DD7: pci_create_simple_multifunction (pci.c:1552) ==21745== by 0x216C7E: pci_piix3_ide_init (piix.c:224) ==21745== by 0x3380A6: pc_init1 (pc_piix.c:257)
Quoted 1 line · Michael S. Tsirkin
Valgrind shows a memory leak below:
Is this with Avi's latest branch or is this in qemu.git?
Regards,
Anthony Liguori
Quoted 16 lines
==21745== 208 (112 direct, 96 indirect) bytes in 2 blocks are definitely lost in loss record 588 of 856
==21745== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==21745== by 0x24D4C5: malloc_and_trace (vl.c:2156) ==21745== by 0x50637D2: g_malloc (in /lib64/libglib-2.0.so.0.2200.5) ==21745== by 0x21A519: isa_register_portio_list (isa-bus.c:102) ==21745== by 0x210DF7: ide_init_ioport (core.c:1993) ==21745== by 0x2169EF: pci_piix_ide_initfn (piix.c:137) ==21745== by 0x2269DD: pci_qdev_init (pci.c:1492) ==21745== by 0x274839: qdev_init (qdev.c:150) ==21745== by 0x27491C: qdev_init_nofail (qdev.c:243) ==21745== by 0x225DD7: pci_create_simple_multifunction (pci.c:1552) ==21745== by 0x216C7E: pci_piix3_ide_init (piix.c:224) ==21745== by 0x3380A6: pc_init1 (pc_piix.c:257)
Quoted 8 lines · Anthony Liguori
Quoted 1 line · Michael S. Tsirkin
Valgrind shows a memory leak below:
Is this with Avi's latest branch or is this in qemu.git?
Regards,
Anthony Liguori
Avi's latest branch.
Quoted 16 lines
Quoted 16 lines
==21745== 208 (112 direct, 96 indirect) bytes in 2 blocks are definitely lost in loss record 588 of 856
==21745== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==21745== by 0x24D4C5: malloc_and_trace (vl.c:2156) ==21745== by 0x50637D2: g_malloc (in /lib64/libglib-2.0.so.0.2200.5) ==21745== by 0x21A519: isa_register_portio_list (isa-bus.c:102) ==21745== by 0x210DF7: ide_init_ioport (core.c:1993) ==21745== by 0x2169EF: pci_piix_ide_initfn (piix.c:137) ==21745== by 0x2269DD: pci_qdev_init (pci.c:1492) ==21745== by 0x274839: qdev_init (qdev.c:150) ==21745== by 0x27491C: qdev_init_nofail (qdev.c:243) ==21745== by 0x225DD7: pci_create_simple_multifunction (pci.c:1552) ==21745== by 0x216C7E: pci_piix3_ide_init (piix.c:224) ==21745== by 0x3380A6: pc_init1 (pc_piix.c:257)
Quoted 4 lines · Anthony Liguori
Quoted 1 line · Michael S. Tsirkin
Valgrind shows a memory leak below:
Is this with Avi's latest branch or is this in qemu.git?
Looks like qemu.git.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 7 lines · Avi Kivity
Quoted 4 lines · Anthony Liguori
Quoted 1 line · Michael S. Tsirkin
Valgrind shows a memory leak below:
Is this with Avi's latest branch or is this in qemu.git?
Looks like qemu.git.
This is a merge of your for-mst and my bridge patches. Take a look at 'valgrind' branch on my github tree if you like:
https://github.com/mstsirkin/qemu.git
Quoted 2 lines
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 5 lines · Michael S. Tsirkin
Quoted 4 lines · Avi Kivity
Quoted 3 lines · Anthony Liguori
Quoted 1 line · Michael S. Tsirkin
Valgrind shows a memory leak below:
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Is this with Avi's latest branch or is this in qemu.git?
Looks like qemu.git.
This is a merge of your for-mst and my bridge patches. Take a look at 'valgrind' branch on my github tree if you like:
https://github.com/mstsirkin/qemu.git
Sorry
https://github.com/mstsirkin/qemu
Quoted 2 lines
Quoted 2 lines
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 5 lines · Michael S. Tsirkin
Quoted 4 lines · Avi Kivity
Quoted 3 lines · Anthony Liguori
Quoted 1 line · Michael S. Tsirkin
Valgrind shows a memory leak below:
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Is this with Avi's latest branch or is this in qemu.git?
Looks like qemu.git.
This is a merge of your for-mst and my bridge patches. Take a look at 'valgrind' branch on my github tree if you like:
The bug is present in qemu.git, my patches don't touch it:
void isa_register_portio_list(ISADevice *dev, uint16_t start,
const MemoryRegionPortio *pio_start, void *opaque, const char *name)
{
PortioList *piolist = g_new(PortioList, 1);^ leaked
/* START is how we should treat DEV, regardless of the actual
contents of the portio array. This is how the old code
actually handled e.g. the FDC device. */
isa_init_ioport(dev, start);
portio_list_init(piolist, pio_start, opaque, name);
portio_list_add(piolist, isabus->address_space_io, start);
}It's only a problem if we allow unplug, which we shouldn't for these devices.
Signature · 1 line
error compiling committee.c: too many arguments to function