All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] hw/scsi/mptsas: Classify the device as "storage"
@ 2018-08-22  8:29 Thomas Huth
  0 siblings, 0 replies; only message in thread
From: Thomas Huth @ 2018-08-22  8:29 UTC (permalink / raw)
  To: Paolo Bonzini, Fam Zheng, qemu-devel

Each device should ideally have a category, so put the mptsas1068 device
into the "storage" category.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 hw/scsi/mptsas.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c
index 4176e87..929404f 100644
--- a/hw/scsi/mptsas.c
+++ b/hw/scsi/mptsas.c
@@ -1431,6 +1431,7 @@ static void mptsas1068_class_init(ObjectClass *oc, void *data)
     dc->reset = mptsas_reset;
     dc->vmsd = &vmstate_mptsas;
     dc->desc = "LSI SAS 1068";
+    set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
 }
 
 static const TypeInfo mptsas_info = {
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-22  8:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-22  8:29 [Qemu-devel] [PATCH] hw/scsi/mptsas: Classify the device as "storage" Thomas Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.