diff mbox

virtio-gpu: tag as not hotpluggable

Message ID 1483970138-20360-1-git-send-email-kraxel@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Gerd Hoffmann Jan. 9, 2017, 1:55 p.m. UTC
qemu can't hotplug display devices.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/display/virtio-gpu.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael S. Tsirkin Jan. 9, 2017, 11:17 p.m. UTC | #1
On Mon, Jan 09, 2017 at 02:55:38PM +0100, Gerd Hoffmann wrote:
> qemu can't hotplug display devices.
> 
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>

Reviewed-by: Michael S. Tsirkin <mst@redhat.com>


> ---
>  hw/display/virtio-gpu.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c
> index ca88cf4..f410a3e 100644
> --- a/hw/display/virtio-gpu.c
> +++ b/hw/display/virtio-gpu.c
> @@ -1282,6 +1282,7 @@ static void virtio_gpu_class_init(ObjectClass *klass, void *data)
>  
>      dc->props = virtio_gpu_properties;
>      dc->vmsd = &vmstate_virtio_gpu;
> +    dc->hotpluggable = false;
>  }
>  
>  static const TypeInfo virtio_gpu_info = {
> -- 
> 1.8.3.1
diff mbox

Patch

diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c
index ca88cf4..f410a3e 100644
--- a/hw/display/virtio-gpu.c
+++ b/hw/display/virtio-gpu.c
@@ -1282,6 +1282,7 @@  static void virtio_gpu_class_init(ObjectClass *klass, void *data)
 
     dc->props = virtio_gpu_properties;
     dc->vmsd = &vmstate_virtio_gpu;
+    dc->hotpluggable = false;
 }
 
 static const TypeInfo virtio_gpu_info = {