Jintack Lim
488f94d721
KVM: arm64: Access CNTHCTL_EL2 bit fields correctly on VHE systems
...
Current KVM world switch code is unintentionally setting wrong bits to
CNTHCTL_EL2 when E2H == 1, which may allow guest OS to access physical
timer. Bit positions of CNTHCTL_EL2 are changing depending on
HCR_EL2.E2H bit. EL1PCEN and EL1PCTEN are 1st and 0th bits when E2H is
not set, but they are 11th and 10th bits respectively when E2H is set.
In fact, on VHE we only need to set those bits once, not for every world
switch. This is because the host kernel runs in EL2 with HCR_EL2.TGE ==
1, which makes those bits have no effect for the host kernel execution.
So we just set those bits once for guests, and that's it.
Signed-off-by: Jintack Lim <[email protected] >
Reviewed-by: Marc Zyngier <[email protected] >
Signed-off-by: Marc Zyngier <[email protected] >
2017-01-13 11:19:25 +00:00
..
alpha
clocksource: Use a plain u64 instead of cycle_t
2016-12-25 11:04:12 +01:00
arc
2nd round of ARC udpates for 4.10rc1
2016-12-23 10:22:47 -08:00
arm
KVM: arm64: Access CNTHCTL_EL2 bit fields correctly on VHE systems
2017-01-13 11:19:25 +00:00
arm64
KVM: arm64: Access CNTHCTL_EL2 bit fields correctly on VHE systems
2017-01-13 11:19:25 +00:00
avr32
clocksource: Use a plain u64 instead of cycle_t
2016-12-25 11:04:12 +01:00
blackfin
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2016-12-25 14:30:04 -08:00
c6x
clocksource: Use a plain u64 instead of cycle_t
2016-12-25 11:04:12 +01:00
cris
Replace <asm/uaccess.h> with <linux/uaccess.h> globally
2016-12-24 11:46:01 -08:00
frv
Replace <asm/uaccess.h> with <linux/uaccess.h> globally
2016-12-24 11:46:01 -08:00
h8300
Replace <asm/uaccess.h> with <linux/uaccess.h> globally
2016-12-24 11:46:01 -08:00
hexagon
clocksource: Use a plain u64 instead of cycle_t
2016-12-25 11:04:12 +01:00
ia64
clocksource: Use a plain u64 instead of cycle_t
2016-12-25 11:04:12 +01:00
m32r
Replace <asm/uaccess.h> with <linux/uaccess.h> globally
2016-12-24 11:46:01 -08:00
m68k
clocksource: Use a plain u64 instead of cycle_t
2016-12-25 11:04:12 +01:00
metag
Merge branch 'smp-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2016-12-25 14:05:56 -08:00
microblaze
clocksource: Use a plain u64 instead of cycle_t
2016-12-25 11:04:12 +01:00
mips
KVM fixes for v4.10-rc3
2017-01-06 15:27:17 -08:00
mn10300
clocksource: Use a plain u64 instead of cycle_t
2016-12-25 11:04:12 +01:00
nios2
clocksource: Use a plain u64 instead of cycle_t
2016-12-25 11:04:12 +01:00
openrisc
openrisc: Add _text symbol to fix ksym build error
2017-01-02 10:35:11 +09:00
parisc
parisc: Add line-break when printing segfault info
2017-01-02 18:07:25 +01:00
powerpc
powerpc: Fix build warning on 32-bit PPC
2016-12-25 16:12:20 -08:00
s390
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
2017-01-02 09:08:45 -08:00
score
Replace <asm/uaccess.h> with <linux/uaccess.h> globally
2016-12-24 11:46:01 -08:00
sh
Replace <asm/uaccess.h> with <linux/uaccess.h> globally
2016-12-24 11:46:01 -08:00
sparc
clocksource: Use a plain u64 instead of cycle_t
2016-12-25 11:04:12 +01:00
tile
Replace <asm/uaccess.h> with <linux/uaccess.h> globally
2016-12-24 11:46:01 -08:00
um
clocksource: Use a plain u64 instead of cycle_t
2016-12-25 11:04:12 +01:00
unicore32
clocksource: Use a plain u64 instead of cycle_t
2016-12-25 11:04:12 +01:00
x86
KVM fixes for v4.10-rc3
2017-01-06 15:27:17 -08:00
xtensa
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2016-12-25 14:30:04 -08:00
.gitignore
Kconfig
powerpc: ima: get the kexec buffer passed by the previous kernel
2016-12-20 09:48:40 -08:00