]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: KVM: Decode RDHWR more strictly
authorJames Hogan <james.hogan@imgtec.com>
Mon, 4 Jul 2016 18:35:14 +0000 (19:35 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Jul 2016 14:09:18 +0000 (16:09 +0200)
commitdee25440e65ff3924e41c839f45e6041d69c6aa0
tree4f9058b4ae5e03b565e20f8896c030de32007663
parent4b75c10a6b3903d83a90a4e74feb916efe7bc9f6
MIPS: KVM: Decode RDHWR more strictly

When KVM emulates the RDHWR instruction, decode the instruction more
strictly. The rs field (bits 25:21) should be zero, as should bits 10:9.
Bits 8:6 is the register select field in MIPSr6, so we aren't strict
about those bits (no other operations should use that encoding space).

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim KrÄmář <rkrcmar@redhat.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/kvm/emulate.c