]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: PV mtmsrd L=1
authorAlexander Graf <agraf@suse.de>
Thu, 29 Jul 2010 12:48:04 +0000 (14:48 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:56 +0000 (10:50 +0200)
commit70272c17cfc283fd9acd3e448831378366b620dd
tree70599dcd83eb9892785cd9e7ca5d92534bedcdd7
parente927a3d25fc0d224a27841d566ea2d071338f95c
KVM: PPC: PV mtmsrd L=1

The PowerPC ISA has a special instruction for mtmsr that only changes the EE
and RI bits, namely the L=1 form.

Since that one is reasonably often occuring and simple to implement, let's
go with this first. Writing EE=0 is always just a store. Doing EE=1 also
requires us to check for pending interrupts and if necessary exit back to the
hypervisor.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kernel/kvm.c
arch/powerpc/kernel/kvm_emul.S