]> rtime.felk.cvut.cz Git - jailhouse.git/commit
core: Introduce accessors for current per_cpu fields
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 21 Aug 2014 21:08:44 +0000 (23:08 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Thu, 28 Aug 2014 06:36:09 +0000 (08:36 +0200)
commitd0f29f2ede1fb83be6d3e73817101d8672eb2b3a
treeb3e24f65a62cc62dece6131e568d2649ec3b1063
parent8c6e45d5bc85aa541f92d1255b3c47d41ca7f435
core: Introduce accessors for current per_cpu fields

Reserve a register for a quick lookup of fields in the current per_cpu
data structure and enable the address, cpu_id and cell for such direct
access. The accessors are named this_<field>().

This will allow us to avoid passing context references around to deeply
nested users.

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