summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Cantrill <bryan@joyent.com>2011-07-26 23:31:00 -0700
committerBryan Cantrill <bryan@joyent.com>2011-07-26 23:31:00 -0700
commit2fc56bd8e064a43bf64a8d580ad963035f7d6b84 (patch)
tree29e488d10d4a29539693b0554667ae76e23bd2da
parent3ba2ad4f4cc1bca8d1bc5121b9516acfb9688938 (diff)
downloadillumos-kvm-cmd-2fc56bd8e064a43bf64a8d580ad963035f7d6b84.tar.gz
HVM-529 KVM_SET_SIGNAL_MASK fails, causing hang on signal
-rw-r--r--kvm-all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-all.c b/kvm-all.c
index 4a4bebf..d96cb6a 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1364,7 +1364,7 @@ int kvm_set_signal_mask(CPUState *env, const sigset_t *sigset)
sigmask = qemu_malloc(sizeof(*sigmask) + sizeof(*sigset));
- sigmask->len = 8;
+ sigmask->len = sizeof (sigset_t);
memcpy(sigmask->sigset, sigset, sizeof(*sigset));
r = kvm_vcpu_ioctl(env, KVM_SET_SIGNAL_MASK, sigmask);
free(sigmask);