qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

hw: sd: set category of the sd memory card

Sets the category of the sd memory card as DEVICE_CATEGORY_STORAGE.
Devices should be assigned to one of DEVICE_CATEGORY_XXXX.

Signed-off-by: kumar sourav <sourav.jb1988@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190124162045.10474-1-sourav.jb1988@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>

authored by

kumar sourav and committed by
Laurent Vivier
2bbf3a91 cbe9ed73

+1
+1
hw/sd/sd.c
··· 2121 2121 dc->vmsd = &sd_vmstate; 2122 2122 dc->reset = sd_reset; 2123 2123 dc->bus_type = TYPE_SD_BUS; 2124 + set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); 2124 2125 2125 2126 sc->set_voltage = sd_set_voltage; 2126 2127 sc->get_dat_lines = sd_get_dat_lines;