summaryrefslogtreecommitdiffstats
path: root/util/coroutine-sigaltstack.c
diff options
context:
space:
mode:
authorPeter Maydell2020-06-26 14:48:53 +0200
committerPeter Maydell2020-06-26 14:48:54 +0200
commit87fb952da83b223c82048a29aaf03680af1ea92f (patch)
tree55356419a8ff9d1f6e022f1d26cc8a9cf0c25143 /util/coroutine-sigaltstack.c
parentMerge remote-tracking branch 'remotes/mcayland/tags/qemu-macppc-20200626' int... (diff)
parentblock/nvme: support nested aio_poll() (diff)
downloadqemu-87fb952da83b223c82048a29aaf03680af1ea92f.tar.gz
qemu-87fb952da83b223c82048a29aaf03680af1ea92f.tar.xz
qemu-87fb952da83b223c82048a29aaf03680af1ea92f.zip
Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging
Pull request # gpg: Signature made Wed 24 Jun 2020 11:01:57 BST # gpg: using RSA key 8695A8BFD3F97CDAAC35775A9CA4ABB381AB73C8 # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" [full] # gpg: aka "Stefan Hajnoczi <stefanha@gmail.com>" [full] # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35 775A 9CA4 ABB3 81AB 73C8 * remotes/stefanha/tags/block-pull-request: block/nvme: support nested aio_poll() block/nvme: keep BDRVNVMeState pointer in NVMeQueuePair block/nvme: clarify that free_req_queue is protected by q->lock block/nvme: switch to a NVMeRequest freelist block/nvme: don't access CQE after moving cq.head block/nvme: drop tautologous assertion block/nvme: poll queues without q->lock check-block: enable iotests with SafeStack configure: add flags to support SafeStack coroutine: add check for SafeStack in sigaltstack coroutine: support SafeStack in ucontext backend minikconf: explicitly set encoding to UTF-8 Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'util/coroutine-sigaltstack.c')
-rw-r--r--util/coroutine-sigaltstack.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/coroutine-sigaltstack.c b/util/coroutine-sigaltstack.c
index f6fc49a0e5..aade82afb8 100644
--- a/util/coroutine-sigaltstack.c
+++ b/util/coroutine-sigaltstack.c
@@ -30,6 +30,10 @@
#include "qemu-common.h"
#include "qemu/coroutine_int.h"
+#ifdef CONFIG_SAFESTACK
+#error "SafeStack is not compatible with code run in alternate signal stacks"
+#endif
+
typedef struct {
Coroutine base;
void *stack;