qemu-patch-raspberry4/hw/i386
Igor Mammedov 8de433cb08 pc: Fix crash when attempting to hotplug CPU with negative ID
QMP command "{ 'execute': 'cpu-add', 'arguments': { 'id': -1 }}" may cause
QEMU SIGSEGV at:
 piix4_cpu_hotplug_req ()
    ...
    g->sts[cpu_id / 8] |= (1 << (cpu_id % 8));
    ...

Since for PC in current implementation id should be in range [0...maxcpus)
and maxcpus is already checked, add check for lower bound and error out
on incorrect value.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-06-10 23:33:18 +02:00
..
kvm pci-assign: Add MSI affinity support 2013-05-22 07:40:10 -05:00
kvmvapic.c kvmvapic: add ioport read accessor 2013-05-06 14:52:26 +03:00
Makefile.objs hw: move hw/kvm/ to hw/i386/kvm 2013-04-08 18:13:16 +02:00
multiboot.c refer to FWCfgState explicitly 2013-06-02 18:14:02 +03:00
multiboot.h refer to FWCfgState explicitly 2013-06-02 18:14:02 +03:00
pc.c pc: Fix crash when attempting to hotplug CPU with negative ID 2013-06-10 23:33:18 +02:00
pc_piix.c Merge remote-tracking branch 'sstabellini/xen_fixes_20130603' into staging 2013-06-04 14:58:58 -05:00
pc_q35.c Revert "pc: Kill the "use flash device for BIOS unless KVM" misfeature" 2013-05-13 09:52:43 -05:00
smbios.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
xen_domainbuild.c hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
xen_domainbuild.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
xen_machine_pv.c xen_machine_pv: do not create a dummy CPU in machine->init 2013-06-03 15:41:26 +00:00