]> rtime.felk.cvut.cz Git - jailhouse.git/commit
core: Introduce and use cell_owns_cpu
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 20 Aug 2014 17:01:01 +0000 (19:01 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 22 Aug 2014 12:19:35 +0000 (14:19 +0200)
commitd22fbf81e167a67922f446b8b615b87437ed32a4
treec71352b2d7b38eea4941a0ba0a355480472ddd08
parent851d75948c9ad5c8442b1196c3b3c39a0fa11fb4
core: Introduce and use cell_owns_cpu

This helper combines the check for the maximum CPU number with the
consultation of the CPU set's bitmap. Both helps to make the code more
compact and avoid to forget the former test in the future.

We keep it inline as it generates quite a bit boilerplate code
otherwise, and IPI transmission depends on efficient execution.

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