]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: vgic-v3: Fix nr_pre_bits bitfield extraction
authorChristoffer Dall <cdall@linaro.org>
Sun, 4 Jun 2017 20:17:02 +0000 (22:17 +0200)
committerChristoffer Dall <cdall@linaro.org>
Tue, 6 Jun 2017 08:16:53 +0000 (10:16 +0200)
commit9b3e8e1682c752b31cdc32dbee913f61305b7431
tree1b73905d348d12a65c425d38b5c2f0e3a3b17f19
parent857a0e5ae0ab265487e44549e7ec95b5f17a4dc0
KVM: arm/arm64: vgic-v3: Fix nr_pre_bits bitfield extraction

We used to extract PRIbits from the ICH_VT_EL2 which was the upper field
in the register word, so a mask wasn't necessary, but as we switched to
looking at PREbits, which is bits 26 through 28 with the PRIbits field
being potentially non-zero, we really need to mask off the field value,
otherwise fun things may happen.

Signed-off-by: Christoffer Dall <cdall@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/hyp/vgic-v3-sr.c