qemu-e2k/hw/i386
Eduardo Habkost b1ecd51bdb xen-platform: Replace assert() with appropriate error reporting
Commit dbb7405d8c 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
..
kvm kvm: Pass PCI device pointer to MSI routing functions 2015-10-19 10:13:07 +02:00
xen xen-platform: Replace assert() with appropriate error reporting 2015-10-26 11:32:24 +00:00
acpi-build.c acpi: avoid potential uninitialized access to cpu_hp_io_base 2015-08-13 14:08:30 +03:00
acpi-build.h
acpi-dsdt-cpu-hotplug.dsl
acpi-dsdt-dbug.dsl
acpi-dsdt-hpet.dsl
acpi-dsdt-isa.dsl
acpi-dsdt-mem-hotplug.dsl
acpi-dsdt.dsl make: fix where dependency *.d are stored. 2015-08-13 14:08:24 +03:00
acpi-dsdt.hex.generated
intel_iommu_internal.h
intel_iommu.c intel_iommu: Add support for translation for devices behind bridges 2015-10-18 10:05:43 +03:00
kvmvapic.c
Makefile.objs hw/pci-assign: split pci-assign.c 2015-09-10 12:04:27 +00:00
multiboot.c i386: Rename ELF_MACHINE to be x86 specific 2015-09-25 12:04:44 +02:00
multiboot.h
pc_piix.c vhost, pc, virtio features, fixes, cleanups 2015-10-22 12:41:44 +01:00
pc_q35.c i386: keep cpu_model field in MachineState uptodate 2015-10-22 14:34:50 +03:00
pc_sysfw.c Fix bad error handling after memory_region_init_ram() 2015-09-18 14:39:29 +02:00
pc.c vhost, pc, virtio features, fixes, cleanups 2015-10-22 12:41:44 +01:00
pci-assign-load-rom.c hw/pci-assign: split pci-assign.c 2015-09-10 12:04:27 +00:00
q35-acpi-dsdt.dsl make: fix where dependency *.d are stored. 2015-08-13 14:08:24 +03:00
q35-acpi-dsdt.hex.generated