diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2013-10-11 14:08:20 +1100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-11-08 04:33:18 +0100 |
commit | 29fdedfed54db4b04fe391ce8a4d9bf5ff86218e (patch) | |
tree | ce12f15e38f85d8e9982337e591c70fa69290dab /hw/nvram/spapr_nvram.c | |
parent | 964668b03d26f0b5baa5e5aff0c966f4fcb76e9e (diff) |
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>
Diffstat (limited to 'hw/nvram/spapr_nvram.c')
-rw-r--r-- | hw/nvram/spapr_nvram.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/nvram/spapr_nvram.c b/hw/nvram/spapr_nvram.c index eb4500e26f..beaad682ac 100644 --- a/hw/nvram/spapr_nvram.c +++ b/hw/nvram/spapr_nvram.c @@ -182,6 +182,7 @@ static void spapr_nvram_class_init(ObjectClass *klass, void *data) k->dt_name = "nvram"; k->dt_type = "nvram"; k->dt_compatible = "qemu,spapr-nvram"; + set_bit(DEVICE_CATEGORY_MISC, dc->categories); dc->props = spapr_nvram_properties; } |