summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2020-02-17 16:38:20 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2020-02-17 16:38:20 +0000
commitcda2c267be3339e4724a1127d3f881c3910f178d (patch)
tree3969ac1b8b127dd517bf5f2575e21c481d3dd09a /sys
parent0729cae9077c8351b387045e7f9eb52b7855c050 (diff)
In vcpu_must_stop() use SIGPENDING() to check if there is a possible
pending signal for curproc. CURSIG() is doing a fair amount more than just checking for a pending signal and should not be called just for that. The signal handling will be done once the ioctl returns to userland which is triggered by vcpu_must_stop(). OK mlarkin@ mpi@ visa@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/amd64/vmm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c
index bab4e64b8f0..20fc41b77aa 100644
--- a/sys/arch/amd64/amd64/vmm.c
+++ b/sys/arch/amd64/amd64/vmm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmm.c,v 1.260 2020/02/15 22:59:55 mortimer Exp $ */
+/* $OpenBSD: vmm.c,v 1.261 2020/02/17 16:38:19 claudio Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
*
@@ -3941,7 +3941,7 @@ vcpu_must_stop(struct vcpu *vcpu)
if (vcpu->vc_state == VCPU_STATE_REQTERM)
return (1);
- if (CURSIG(p) != 0)
+ if (SIGPENDING(p) != 0)
return (1);
return (0);
}