summaryrefslogtreecommitdiffstats
path: root/hw/virtio
diff options
context:
space:
mode:
authorGan Qixin2020-11-30 09:36:20 +0100
committerLaurent Vivier2021-02-20 12:36:19 +0100
commitd3649bfca714e324836695a1b542681e51ae2e0d (patch)
tree10c74f11eeb8d2483ecdb438fd2f2a118ad58c45 /hw/virtio
parentMAINTAINERS: add my github tree URL (diff)
downloadqemu-d3649bfca714e324836695a1b542681e51ae2e0d.tar.gz
qemu-d3649bfca714e324836695a1b542681e51ae2e0d.tar.xz
qemu-d3649bfca714e324836695a1b542681e51ae2e0d.zip
virtio-pmem: put it into the 'storage' category
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>
Diffstat (limited to 'hw/virtio')
-rw-r--r--hw/virtio/virtio-pmem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio/virtio-pmem.c b/hw/virtio/virtio-pmem.c
index d83e973bf2..a3e0688a89 100644
--- a/hw/virtio/virtio-pmem.c
+++ b/hw/virtio/virtio-pmem.c
@@ -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 = {