Handle init/sipi in a main cpu exec loop. (v2)
commitb09ea7d55cfab5a75912bb56ed1fcd757604a759
authorGleb Natapov <gleb@redhat.com>
Wed, 17 Jun 2009 20:26:59 +0000 (17 23:26 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Jun 2009 15:15:28 +0000 (22 10:15 -0500)
tree0824d788e214876bdc2b9816fcdb6bfb91b64b20
parent6eaa68474671a6c69f30b185ce3c87ff18f85e01
Handle init/sipi in a main cpu exec loop. (v2)

This should fix compilation problem in case of CONFIG_USER_ONLY.

Currently INIT/SIPI is handled in the context of CPU that sends IPI.
This patch changes this to handle them like all other events in a main
cpu exec loop. When KVM will gain thread per vcpu capability it will
be much more clear to handle those event by cpu thread itself and not
modify one cpu's state from the context of the other.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
cpu-all.h
cpu-exec.c
hw/apic.c
target-i386/cpu.h
target-i386/exec.h
target-i386/helper.c