]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MIPS/T&E: Ignore user writes to CP0_Config7
authorJames Hogan <james.hogan@imgtec.com>
Wed, 14 Dec 2016 01:58:44 +0000 (01:58 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 3 Feb 2017 15:21:18 +0000 (15:21 +0000)
commitfb781ab25feff3017a3a9e2f7c58dc14e13097e9
tree8efab2f33aaf7f6365d2e5cf3edfd87a885482b5
parent9580a2ffc82091e4adf61f71910cbe374ffa873b
KVM: MIPS/T&E: Ignore user writes to CP0_Config7

Ignore userland writes to CP0_Config7 rather than reporting an error,
since we do allow reads of this register and it is claimed to exist in
the ioctl API.

This allows userland to blindly save and restore KVM registers without
having to special case certain registers as not being writable, for
example during live migration once dirty page logging is fixed.

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
arch/mips/kvm/trap_emul.c