]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S: PR: Make svcpu -> vcpu store preempt savvy
authorAlexander Graf <agraf@suse.de>
Fri, 29 Nov 2013 01:29:00 +0000 (02:29 +0100)
committerAlexander Graf <agraf@suse.de>
Mon, 9 Dec 2013 08:41:39 +0000 (09:41 +0100)
commit7f704fcb5b92b4f9e6b5104024491ed162981560
tree89cbf59c364f0f310b28a0eb6a398eab1d388835
parentaafa8af4b59ab43770c7753563b1beba88d2d322
KVM: PPC: Book3S: PR: Make svcpu -> vcpu store preempt savvy

As soon as we get back to our "highmem" handler in virtual address
space we may get preempted. Today the reason we can get preempted is
that we replay interrupts and all the lazy logic thinks we have
interrupts enabled.

However, it's not hard to make the code interruptible and that way
we can enable and handle interrupts even earlier.

This fixes random guest crashes that happened with CONFIG_PREEMPT=y
for me.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_book3s_asm.h
arch/powerpc/kvm/book3s_pr.c