]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: KVM: Emulate RDHWR CPUNum register
authorJames Hogan <james.hogan@imgtec.com>
Wed, 15 Jun 2016 18:29:55 +0000 (19:29 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jun 2016 21:58:35 +0000 (23:58 +0200)
commitc7c6c9b0e5b9172cfefad335dd7b6491c736cfb3
treecb56c203b3ad2d09f685ed5a25ee63d583555323
parentf1906224af2caf509a869e156721b367fc5e5a2e
MIPS: KVM: Emulate RDHWR CPUNum register

Actually provide the VCPU number when emulating the RDHWR CPUNum
register, so that it will match the CPUNum field of CP0_EBase register,
rather than always returning 0.

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