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)
commitbc90923e27908ef65aa8aaad2f234e18b5273c78
tree58f95e4a6c50cefd7e07e7f28bcf36c88f28bd49
parentb4433a7cceed59714b0778e1ace624befdd15ded
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