summaryrefslogtreecommitdiffstats
path: root/hw/char
diff options
context:
space:
mode:
authorAlexey Kardashevskiy2013-10-11 05:08:20 +0200
committerAlexander Graf2013-11-08 04:33:18 +0100
commit29fdedfed54db4b04fe391ce8a4d9bf5ff86218e (patch)
treece12f15e38f85d8e9982337e591c70fa69290dab /hw/char
parentUpdate version for 1.7.0-rc0 release (diff)
downloadqemu-29fdedfed54db4b04fe391ce8a4d9bf5ff86218e.tar.gz
qemu-29fdedfed54db4b04fe391ce8a4d9bf5ff86218e.tar.xz
qemu-29fdedfed54db4b04fe391ce8a4d9bf5ff86218e.zip
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/char')
-rw-r--r--hw/char/spapr_vty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/char/spapr_vty.c b/hw/char/spapr_vty.c
index 9c2aef82e6..f8a4981e27 100644
--- a/hw/char/spapr_vty.c
+++ b/hw/char/spapr_vty.c
@@ -168,6 +168,7 @@ static void spapr_vty_class_init(ObjectClass *klass, void *data)
k->dt_name = "vty";
k->dt_type = "serial";
k->dt_compatible = "hvterm1";
+ set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
dc->props = spapr_vty_properties;
dc->vmsd = &vmstate_spapr_vty;
}