summaryrefslogtreecommitdiffstats
path: root/arch/arm/kvm
diff options
context:
space:
mode:
authorShih-Wei Li <shihwei@cs.columbia.edu>2017-08-03 11:45:21 +0200
committerMarc Zyngier <marc.zyngier@arm.com>2018-03-19 10:53:10 +0000
commit35a84dec00a707aed97c1ff9ebb1cd1eb67c7052 (patch)
treeb92fb4053fc7287480b83a4a3b97aafc512f08ea /arch/arm/kvm
parent8f17f5e4698ee5e42c827e8905cf39cf61c482c2 (diff)
downloadlinux-35a84dec00a707aed97c1ff9ebb1cd1eb67c7052.tar.bz2
KVM: arm64: Move HCR_INT_OVERRIDE to default HCR_EL2 guest flag
We always set the IMO and FMO bits in the HCR_EL2 when running the guest, regardless if we use the vgic or not. By moving these flags to HCR_GUEST_FLAGS we can avoid one of the extra save/restore operations of HCR_EL2 in the world switch code, and we can also soon get rid of the other one. This is safe, because even though the IMO and FMO bits control both taking the interrupts to EL2 and remapping ICC_*_EL1 to ICV_*_EL1 when executed at EL1, as long as we ensure that these bits are clear when running the EL1 host, we're OK, because we reset the HCR_EL2 to only have the HCR_RW bit set when returning to EL1 on non-VHE systems. Reviewed-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Shih-Wei Li <shihwei@cs.columbia.edu> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm/kvm')
0 files changed, 0 insertions, 0 deletions