mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
spapr: add vio-bus devices to categories
In order to get devices appear in output of "./qemu-system-ppc64 -device ?", they must be assigned to one of DEVICE_CATEGORY_XXXX. This puts VIO devices classes to corresponding categories. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
964668b03d
commit
29fdedfed5
4 changed files with 4 additions and 0 deletions
|
@ -1223,6 +1223,7 @@ static void spapr_vscsi_class_init(ObjectClass *klass, void *data)
|
|||
k->dt_type = "vscsi";
|
||||
k->dt_compatible = "IBM,v-scsi";
|
||||
k->signal_mask = 0x00000001;
|
||||
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
|
||||
dc->props = spapr_vscsi_properties;
|
||||
k->rtce_window_size = 0x10000000;
|
||||
dc->vmsd = &vmstate_spapr_vscsi;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue