]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit40fdd8c88c4a5e9b26bfbed2215ac661f24aef07
tree89cbf59c364f0f310b28a0eb6a398eab1d388835
parentc9dad7f9db4ed42de37d3f0ef2b2c0e10d5b6f92
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