OSDN Git Service

vmcoreinfo: put it in the 'misc' device category
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 6 Nov 2017 11:50:32 +0000 (12:50 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 16 Nov 2017 15:46:53 +0000 (17:46 +0200)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/misc/vmcoreinfo.c

index a618e12..31db57a 100644 (file)
@@ -79,6 +79,7 @@ static void vmcoreinfo_device_class_init(ObjectClass *klass, void *data)
     dc->vmsd = &vmstate_vmcoreinfo;
     dc->realize = vmcoreinfo_realize;
     dc->hotpluggable = false;
+    set_bit(DEVICE_CATEGORY_MISC, dc->categories);
 }
 
 static const TypeInfo vmcoreinfo_device_info = {