mirror of https://gitee.com/openkylin/linux.git
32f8840064
KVM uses a function call IPI to cause the exit of a guest running on a physical cpu. For virtual interrupt notification there is no need to wait on IPI receival, or to execute any function. This is exactly what the reschedule IPI does, without the overhead of function IPI. So use it instead of smp_call_function_single in kvm_vcpu_kick. Also change the "guest_mode" variable to a bit in vcpu->requests, and use that to collapse multiple IPI's that would be issued between the first one and zeroing of guest mode. This allows kvm_vcpu_kick to called with interrupts disabled. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
asm-offsets.c | ||
irq.h | ||
kvm-ia64.c | ||
kvm_fw.c | ||
kvm_lib.c | ||
kvm_minstate.h | ||
lapic.h | ||
memcpy.S | ||
memset.S | ||
misc.h | ||
mmio.c | ||
optvfault.S | ||
process.c | ||
trampoline.S | ||
vcpu.c | ||
vcpu.h | ||
vmm.c | ||
vmm_ivt.S | ||
vti.h | ||
vtlb.c |