OSDN Git Service

x86/jailhouse: Avoid access of unsupported platform resources
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 27 Nov 2017 08:11:50 +0000 (09:11 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 14 Jan 2018 20:11:56 +0000 (21:11 +0100)
commit0d7c1e22183b9ddaa0b3bf30ece6577741bc13b3
tree7897dcc05b7db78a3c972d35c874ef4d348f3c02
parente85eb632f651e70252bb18b292efaf6961164e32
x86/jailhouse: Avoid access of unsupported platform resources

Non-root cells do not have CMOS access, thus the warm reset cannot be
enabled. There is no RTC, thus also no wall clock. Furthermore, there
are no ISA IRQs and no PIC.

Also disable probing of i8042 devices that are typically blocked for
non-root cells. In theory, access could also be granted to a non-root
cell, provided the root cell is not using the devices. But there is no
concrete scenario in sight, and disabling probing over Jailhouse allows
to build generic kernels that keep CONFIG_SERIO enabled for use in
normal systems.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: jailhouse-dev@googlegroups.com
Link: https://lkml.kernel.org/r/39b68cc2c496501c9d95e6f40e5d76e3053c3908.1511770314.git.jan.kiszka@siemens.com
arch/x86/kernel/jailhouse.c