]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Get rid of unnecessary RFI
authorAlexander Graf <agraf@suse.de>
Fri, 8 Jan 2010 01:58:05 +0000 (02:58 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:35:49 +0000 (12:35 -0300)
commit15ca4611002e4146a6fd81c68c210d8b15062a7c
tree58f95e4a6c50cefd7e07e7f28bcf36c88f28bd49
parenta6578b7a69920a3be7d324d23ab51b559e699083
KVM: PPC: Get rid of unnecessary RFI

Using an RFI in IR=1 is dangerous. We need to set two SRRs and then do an RFI
without getting interrupted at all, because every interrupt could potentially
overwrite the SRR values.

Fortunately, we don't need to RFI in at least this particular case of the code,
so we can just replace it with an mtmsr and b.

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