linux/arch/arm64/kvm/hyp
Fuad Tabba 1460b4b25f KVM: arm64: Restore mdcr_el2 from vcpu
On deactivating traps, restore the value of mdcr_el2 from the
newly created and preserved host value vcpu context, rather than
directly reading the hardware register.

Up until and including this patch the two values are the same,
i.e., the hardware register and the vcpu one. A future patch will
be changing the value of mdcr_el2 on activating traps, and this
ensures that its value will be restored.

No functional change intended.

Signed-off-by: Fuad Tabba <tabba@google.com>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210817081134.2918285-7-tabba@google.com
2021-08-20 11:12:17 +01:00
..
include KVM: arm64: Restore mdcr_el2 from vcpu 2021-08-20 11:12:17 +01:00
nvhe KVM: arm64: Restore mdcr_el2 from vcpu 2021-08-20 11:12:17 +01:00
vhe KVM: arm64: Restore mdcr_el2 from vcpu 2021-08-20 11:12:17 +01:00
aarch32.c KVM: arm64: Move kvm_vcpu_trap_il_is32bit into kvm_skip_instr32() 2020-11-10 08:34:24 +00:00
entry.S KVM: arm64: Save/restore MTE registers 2021-06-22 14:08:05 +01:00
exception.c KVM: arm64: Introduce MTE VM feature 2021-06-22 14:08:05 +01:00
fpsimd.S KVM: arm64: Rework SVE host-save/guest-restore 2021-03-18 13:57:37 +00:00
hyp-entry.S KVM: arm64: Handle physical FIQ as an IRQ while running a guest 2021-06-01 10:45:58 +01:00
Makefile KVM: arm64: Prepare the creation of s1 mappings at EL2 2021-03-19 12:01:21 +00:00
pgtable.c Merge branch arm64/for-next/caches into kvmarm-master/next 2021-06-18 17:30:39 +01:00
reserved_mem.c KVM: arm64: Unify MMIO and mem host stage-2 pools 2021-06-11 13:24:11 +01:00
vgic-v2-cpuif-proxy.c KVM: arm64: Remove hyp_symbol_addr 2021-01-23 14:01:00 +00:00
vgic-v3-sr.c KVM: arm64: Fix CPU interface MMIO compatibility detection 2021-03-24 17:26:38 +00:00