From a369da5f31ddbdeb32a7f76622e480d3995fbb00 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Tue, 27 Sep 2011 19:15:42 +0000 Subject: vga: improve VGA logic Improve VGA selection logic, push check for device availabilty to vl.c. Create the devices at board level unconditionally. Remove now unused pci_try_create*() functions. Make PCI VGA devices optional. Reviewed-by: Jan Kiszka Signed-off-by: Blue Swirl --- hw/qdev.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hw/qdev.c') diff --git a/hw/qdev.c b/hw/qdev.c index e59f3455d7..5a7566850a 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -80,6 +80,10 @@ static DeviceInfo *qdev_find_info(BusInfo *bus_info, const char *name) return NULL; } +bool qdev_exists(const char *name) +{ + return !!qdev_find_info(NULL, name); +} static void qdev_property_add_legacy(DeviceState *dev, Property *prop, Error **errp); -- cgit v1.2.3