]> rtime.felk.cvut.cz Git - jailhouse.git/commit
x86: Enhance x86_handle_events to x86_check_events
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 21 Dec 2015 23:50:36 +0000 (00:50 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Tue, 22 Dec 2015 14:20:22 +0000 (15:20 +0100)
commitcee44d2c41f8f7c5824858cf8b4ef5da83c35739
treed227b5f9177ef5d18298c7383b5d7f6c814728f6
parente4c28bf58f15fd7a9e4cb7fec167a7c95a2ed187
x86: Enhance x86_handle_events to x86_check_events

There is now quite some commonality between svm and vmx when it comes to
checking for pending events. Move those parts into x86_check_events,
which becomes the extended version of x86_handle_events. Only a small
difference is now left behind in vmx_check_events(): the preemption
timer has to be disabled before the check.

Just like x86_handle_events, also x86_check_events only works against
the caller's CPU. So remove the cpu_data parameter at this chance.

We can remove the "sipi_vector = -1" after x86_enter_wait_for_sipi now
because we no longer return that value from x86_check_events, and
sipi_vector is not evaluated elsewhere because cpu_data->wait_for_sipi
is true.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/x86/control.c
hypervisor/arch/x86/include/asm/control.h
hypervisor/arch/x86/svm.c
hypervisor/arch/x86/vmx.c