]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
KVM: PPC: Book3S: PR: Fix signal check race
authorAlexander Graf <agraf@suse.de>
Mon, 19 Dec 2011 12:36:55 +0000 (13:36 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 12:52:30 +0000 (14:52 +0200)
commite371f713db6523d99d8ffae8f9da564055e6de17
tree87cf4fa16c010640611033c27a8353848bd8cd33
parentae21216bece0a623d09980c120b9c98790a860b9
KVM: PPC: Book3S: PR: Fix signal check race

As Scott put it:

> If we get a signal after the check, we want to be sure that we don't
> receive the reschedule IPI until after we're in the guest, so that it
> will cause another signal check.

we need to have interrupts disabled from the point we do signal_check()
all the way until we actually enter the guest.

This patch fixes potential signal loss races.

Reported-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/book3s_pr.c