]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/jailhouse.git/commit
x86, driver, tools: Pass TSC and APIC timer frequency calibration to non-root cells
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 24 Nov 2017 06:14:27 +0000 (07:14 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Mon, 27 Nov 2017 07:36:04 +0000 (08:36 +0100)
commit42522ce748d34ebf25df40753f7b928f76b47c61
treeb6c219879f5e4a94152d92f707dbad1e0176c0b0
parent5c969979cb0298b0706a5f78ad51da91fa8046cd
x86, driver, tools: Pass TSC and APIC timer frequency calibration to non-root cells

This avoids that non-root cells have to calibrate TSC and - provided
there is no TSC deadline timer support - APIC timer frequencies
themselves. Rather we now either use statically configured values from
the system configuration or, of those or 0, pick them up from the root
cell during hypervisor start. Then the values are simply forwarded via
the Communication Region to all x86 non-root cells.

This requires another patch to the root-cell Linux to export
lapic_timer_frequency for us.

CC: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
driver/main.c
hypervisor/arch/x86/control.c
hypervisor/arch/x86/include/asm/jailhouse_hypercall.h
hypervisor/include/jailhouse/cell-config.h
tools/jailhouse-cell-linux
tools/jailhouse-hardware-check