]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited38bd339114b24fa859a46c6a7d8ebab0a1fba3
treebbf821c3fd4578cfacb07deaa59f18da5eaa4411
parent78e6850f05b0cd5d76bd1cd0262379624af3f7b5
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