Patchwork [09/12] KVM/MIPS: set sigmask length to 16 for MIPS targets.

login
register
mail settings
Submitter Sanjay Lal
Date March 2, 2013, 3:18 p.m.
Message ID <1362237527-23678-11-git-send-email-sanjayl@kymasys.com>
Download mbox | patch
Permalink /patch/224501/
State New
Headers show

Comments

Sanjay Lal - March 2, 2013, 3:18 p.m.
---
 kvm-all.c | 5 +++++
 1 file changed, 5 insertions(+)

Patch

diff --git a/kvm-all.c b/kvm-all.c
index 4decfdc..2ac9e88 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1966,7 +1966,12 @@  int kvm_set_signal_mask(CPUArchState *env, const sigset_t *sigset)
 
     sigmask = g_malloc(sizeof(*sigmask) + sizeof(*sigset));
 
+#ifdef TARGET_MIPS
+    /* seems to be 16 for MIPS */
+    sigmask->len = 16;
+#else
     sigmask->len = 8;
+#endif
     memcpy(sigmask->sigset, sigset, sizeof(*sigset));
     r = kvm_vcpu_ioctl(cpu, KVM_SET_SIGNAL_MASK, sigmask);
     g_free(sigmask);