mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
vga: set owner for mmio regions
This makes sure the regions are properly cleaned when unplugging -device seconday-vga. Reported-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: Thomas Huth <thuth@redhat.com> Message-id: 20180626060941.8326-1-kraxel@redhat.com
This commit is contained in:
parent
e409d9a158
commit
93abfc88bd
3 changed files with 8 additions and 6 deletions
|
@ -193,6 +193,7 @@ extern const MemoryRegionOps vga_mem_ops;
|
|||
|
||||
/* vga-pci.c */
|
||||
void pci_std_vga_mmio_region_init(VGACommonState *s,
|
||||
Object *owner,
|
||||
MemoryRegion *parent,
|
||||
MemoryRegion *subs,
|
||||
bool qext);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue