OSDN Git Service

mips/kvm: Implement Config CP0 registers
authorJames Hogan <james.hogan@imgtec.com>
Wed, 3 Feb 2016 17:16:49 +0000 (17:16 +0000)
committerLeon Alrae <leon.alrae@imgtec.com>
Fri, 26 Feb 2016 08:59:17 +0000 (08:59 +0000)
commit03cbfd7b5cdb00a7dfadf502b5acdeeefd69422c
tree1ec1b78f3cb76d9f5c51ab9e82d6a7cd85cfcb37
parent461a1582f0bce00f7a3e1ff714d3a9885ad8b012
mips/kvm: Implement Config CP0 registers

Implement saving and restoring to KVM state of the Config CP0 registers
(namely Config, Config1, Config2, Config3, Config4, and Config5). These
control the features available to a guest, and a few of the fields will
soon be writeable by a guest so QEMU needs to know about them so as not
to clobber them on migration/savevm.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Leon Alrae <leon.alrae@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
target-mips/kvm.c