[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] secondary-vga: unregister vram on unplug.
From: |
remy . noel |
Subject: |
[Qemu-devel] [PATCH] secondary-vga: unregister vram on unplug. |
Date: |
Fri, 20 Jul 2018 10:19:48 +0200 |
From: "Remy Noel" <address@hidden>
When removing a secondary-vga device and then adding it back (or adding
an other one), qemu aborts with:
"RAMBlock "0000:00:02.0/vga.vram" already registered, abort!".
It is caused by the vram staying registered, preventing vga replugging.
Signed-off-by: Remy Noel <address@hidden>
---
hw/display/vga-pci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/display/vga-pci.c b/hw/display/vga-pci.c
index e9e62eac70..1c89571e46 100644
--- a/hw/display/vga-pci.c
+++ b/hw/display/vga-pci.c
@@ -288,6 +288,7 @@ static void pci_secondary_vga_exit(PCIDevice *dev)
VGACommonState *s = &d->vga;
graphic_console_close(s->con);
+ vmstate_unregister_ram(&s->vram, DEVICE(dev));
}
static void pci_secondary_vga_init(Object *obj)
--
2.18.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] secondary-vga: unregister vram on unplug.,
remy . noel <=