qemu-e2k/hw/i386/kvm
Eduardo Habkost ca2edcd35c kvmclock: Don't crash QEMU if KVM is disabled
Most machines don't allow sysbus devices like "kvmclock" to be
created from the command-line, but some of them do (the ones with
has_dynamic_sysbus=true). In those cases, it's possible to
manually create a kvmclock device without KVM being enabled,
making QEMU crash:

  $ qemu-system-x86_64 -machine q35,accel=tcg -device kvmclock
  Segmentation fault (core dumped)

This changes kvmclock's realize method to return an error if KVM
is disabled, to ensure it won't crash QEMU.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20170309185046.17555-1-ehabkost@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-03-14 13:26:36 +01:00
..
apic.c kvm: move cpu synchronization code 2017-01-19 22:07:46 +01:00
clock.c kvmclock: Don't crash QEMU if KVM is disabled 2017-03-14 13:26:36 +01:00
i8254.c
i8259.c pic: fix typo in error message: KVM_GET_IRQCHIP -> KVM_SET_IRQCHIP 2016-09-13 18:12:34 +03:00
ioapic.c kvm/ioapic: correct kvm ioapic version 2017-02-16 14:06:55 +01:00
Makefile.objs
pci-assign.c pci-assign: sync MSI/MSI-X cap and table with PCIDevice 2016-11-28 15:11:17 +01:00