virtio-pmem: put it into the 'storage' category
authorGan Qixin <ganqixin@huawei.com>
Mon, 30 Nov 2020 08:36:20 +0000 (16:36 +0800)
committerLaurent Vivier <laurent@vivier.eu>
Sat, 20 Feb 2021 11:36:19 +0000 (12:36 +0100)
The category of the virtio-pmem device is not set, put it into the 'storage'
category.

Signed-off-by: Gan Qixin <ganqixin@huawei.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@cloud.ionos.com>
Message-Id: <20201130083630.2520597-3-ganqixin@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/virtio/virtio-pmem.c

index d83e973bf299c68c8f467e69f99614bbba01f932..a3e0688a891bc54c7161333c1751c019e62fda9d 100644 (file)
@@ -179,6 +179,7 @@ static void virtio_pmem_class_init(ObjectClass *klass, void *data)
 
     vpc->fill_device_info = virtio_pmem_fill_device_info;
     vpc->get_memory_region = virtio_pmem_get_memory_region;
+    set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
 }
 
 static TypeInfo virtio_pmem_info = {