Eduardo Habkost
b1ecd51bdb
xen-platform: Replace assert() with appropriate error reporting
Commit dbb7405d8caad0814ceddd568cb49f163a847561 made it possible to
trigger an assert using "-device xen-platform". Replace it with
appropriate error reporting.
Before:
$ qemu-system-x86_64 -device xen-platform
qemu-system-x86_64: hw/i386/xen/xen_platform.c:391: xen_platform_initfn: Assertion `xen_enabled()' failed.
Aborted (core dumped)
$
After:
$ qemu-system-x86_64 -device xen-platform
qemu-system-x86_64: -device xen-platform: xen-platform device requires the Xen accelerator
$
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2015-10-26 11:32:24 +00:00
..
2015-10-20 14:59:04 +01:00
2015-10-23 18:18:24 +02:00
2015-10-23 12:35:17 +11:00
2015-10-20 09:26:36 +02:00
2015-10-26 11:32:24 +00:00
2015-10-23 12:35:18 +11:00
2015-10-23 12:35:17 +11:00
2015-10-23 12:35:18 +11:00
2015-10-22 14:39:09 +03:00
2015-10-22 14:34:48 +03:00
2015-10-23 12:35:18 +11:00
2015-10-22 14:34:49 +03:00
2015-10-23 12:35:18 +11:00
2015-10-23 12:35:18 +11:00
2015-10-23 12:38:28 +11:00
2015-10-21 12:21:30 +02:00
2015-10-23 18:18:24 +02:00
2015-10-23 18:18:23 +02:00
2015-10-23 10:24:08 +01:00
2015-10-26 11:32:18 +00:00
2015-10-21 21:28:33 +03:00