]> git.karo-electronics.de Git - mv-sheeva.git/commit
KVM: Add compat ioctl for KVM_SET_SIGNAL_MASK
authorAlexander Graf <agraf@suse.de>
Wed, 8 Jun 2011 00:45:37 +0000 (02:45 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 10:16:17 +0000 (13:16 +0300)
commit1dda606c5f94b14a8f36c220d1d8844bab68a720
treecf78b5aa3d499d239079c392491bcf656fbe05e6
parent91e3d71db29d9b3b67b64e2a08e724a7ff538b4c
KVM: Add compat ioctl for KVM_SET_SIGNAL_MASK

KVM has an ioctl to define which signal mask should be used while running
inside VCPU_RUN. At least for big endian systems, this mask is different
on 32-bit and 64-bit systems (though the size is identical).

Add a compat wrapper that converts the mask to whatever the kernel accepts,
allowing 32-bit kvm user space to set signal masks.

This patch fixes qemu with --enable-io-thread on ppc64 hosts when running
32-bit user land.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
kernel/compat.c
virt/kvm/kvm_main.c