KVM: Close minor race in signal handling
authorAvi Kivity <avi@qumranet.com>
Wed, 15 Aug 2007 12:23:34 +0000 (15:23 +0300)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:23 +0000 (10:18 +0200)
commit7e66f350cfc853043bfa71b281581dd6f92fa347
treebbf821c3fd4578cfacb07deaa59f18da5eaa4411
parent3090dd7377c7eb5cbe229e2a538f9dc7e5b06814
KVM: Close minor race in signal handling

We need to check for signals inside the critical section, otherwise a
signal can be sent which we will not notice.  Also move the check
before entry, so that if the signal happens before the first entry,
we exit immediately instead of waiting for something to happen to the
guest.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/svm.c
drivers/kvm/vmx.c