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-19 10:13:07 +02:00
2015-10-26 11:32:24 +00:00
2015-08-13 14:08:30 +03:00
2015-03-01 12:33:22 +01:00
2015-04-27 21:09:07 +02:00
2015-08-13 14:08:24 +03:00
2015-03-04 16:05:32 +01:00
2015-10-18 10:05:43 +03:00
2015-09-10 12:04:27 +00:00
2015-09-25 12:04:44 +02:00
2015-10-22 12:41:44 +01:00
2015-10-22 14:34:50 +03:00
2015-09-18 14:39:29 +02:00
2015-10-22 12:41:44 +01:00
2015-09-10 12:04:27 +00:00
2015-08-13 14:08:24 +03:00
2015-03-04 16:05:32 +01:00