diff options
| author | Eduardo Habkost <ehabkost@redhat.com> | 2015-10-21 13:46:50 -0200 |
|---|---|---|
| committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2015-10-26 11:32:24 +0000 |
| commit | b1ecd51bdbb0fc0a7026662b03e7e7df9d129ca0 (patch) | |
| tree | 3d80baf54548fc76450d9bc49d0d301d12e57ef8 /hw/net/cadence_gem.c | |
| parent | 4098d49db549e20a2d87ca3cced28ace6e5864bf (diff) | |
| download | focaccia-qemu-b1ecd51bdbb0fc0a7026662b03e7e7df9d129ca0.tar.gz focaccia-qemu-b1ecd51bdbb0fc0a7026662b03e7e7df9d129ca0.zip | |
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>
Diffstat (limited to 'hw/net/cadence_gem.c')
0 files changed, 0 insertions, 0 deletions