kvm: Allow arch to set sigmask length
authorJames Hogan <james.hogan@imgtec.com>
Tue, 17 Jun 2014 22:10:31 +0000 (23:10 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Jun 2014 14:58:43 +0000 (16:58 +0200)
commitaed6efb90cc43faf45f1e40425646c55d37a340f
treea8bc414d83036f9bc6d43e5d364fcf82475ffcd1
parent4ef37e6907eaeeec3e0425b9e51a4b3918c194c7
kvm: Allow arch to set sigmask length

MIPS/Linux is unusual in having 128 signals rather than just 64 like
most other architectures. This means its sigmask is 16 bytes instead of
8, so allow arches to override the sigmask->len value passed to the
KVM_SET_SIGNAL_MASK ioctl in kvm_set_signal_mask() by calling
kvm_set_sigmask_len() from kvm_arch_init(). Otherwise default to 8
bytes.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Sanjay Lal <sanjayl@kymasys.com>
Cc: Gleb Natapov <gleb@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/sysemu/kvm.h
kvm-all.c