From 29fdedfed54db4b04fe391ce8a4d9bf5ff86218e Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy Date: Fri, 11 Oct 2013 14:08:20 +1100 Subject: 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 Signed-off-by: Alexander Graf --- hw/char/spapr_vty.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/char') diff --git a/hw/char/spapr_vty.c b/hw/char/spapr_vty.c index 9c2aef8..f8a4981 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; } -- cgit v1.1