summaryrefslogtreecommitdiffstats
path: root/arch/arm/kvm/coproc_a15.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-08-21 16:35:37 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-08-21 16:35:37 -0700
commit69bbe136a911bd5d45d0e633daaeb9d1239bf54f (patch)
tree465daf241ea19bd0dca4f5a2b6d7862312be9ad9 /arch/arm/kvm/coproc_a15.c
parentda2ad2a2c31fb07a6405e2e6706be171c5a41bc7 (diff)
parentc566ccfcb30e236636085317a05cb3e8808e7f4a (diff)
downloadop-kernel-dev-69bbe136a911bd5d45d0e633daaeb9d1239bf54f.zip
op-kernel-dev-69bbe136a911bd5d45d0e633daaeb9d1239bf54f.tar.gz
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
Pull kvm fixes from Paolo Bonzini: "Fixes for ARM and aarch64. This pull request is coming a bit later than I would have preferred, because I and Gleb happened to have holidays around the same weeks of August... sorry about that" * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: KVM: ARM: Squash len warning arm64: KVM: use 'int' instead of 'u32' for variable 'target' in kvm_host.h. arm64: KVM: add missing dsb before invalidating Stage-2 TLBs arm64: KVM: perform save/restore of PAR_EL1 arm64: KVM: fix 2-level page tables unmapping ARM: KVM: Fix unaligned unmap_range leak ARM: KVM: Fix 64-bit coprocessor handling
Diffstat (limited to 'arch/arm/kvm/coproc_a15.c')
-rw-r--r--arch/arm/kvm/coproc_a15.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/kvm/coproc_a15.c b/arch/arm/kvm/coproc_a15.c
index 685063a..cf93472 100644
--- a/arch/arm/kvm/coproc_a15.c
+++ b/arch/arm/kvm/coproc_a15.c
@@ -114,7 +114,11 @@ static bool access_l2ectlr(struct kvm_vcpu *vcpu,
/*
* A15-specific CP15 registers.
- * Important: Must be sorted ascending by CRn, CRM, Op1, Op2
+ * CRn denotes the primary register number, but is copied to the CRm in the
+ * user space API for 64-bit register access in line with the terminology used
+ * in the ARM ARM.
+ * Important: Must be sorted ascending by CRn, CRM, Op1, Op2 and with 64-bit
+ * registers preceding 32-bit ones.
*/
static const struct coproc_reg a15_regs[] = {
/* MPIDR: we use VMPIDR for guest access. */
OpenPOWER on IntegriCloud