crosvm/kvm
Dmitry Torokhov e423460238 kvm: fix invocation of KVM_SET_SIGNAL_MASK ioctl
Linux kernel expects size of sigset passed in through KVM_SET_SIGNAL_MASK
ioctl to be exactly 8, but Rust's sigset size is 128 bytes, so we can
not use sizeof to set up the size.

Also let's add test set_signal_mask().

TEST=cargo test --features plugin; cargo test -p kvm; ./build_test
BUG=chromium:800626

Change-Id: Ica757ad63d6754d5c8008ba1735982c7ca026f33
Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/944849
Reviewed-by: Zach Reizner <zachr@chromium.org>
2018-03-08 00:37:32 -08:00
..
src kvm: fix invocation of KVM_SET_SIGNAL_MASK ioctl 2018-03-08 00:37:32 -08:00
tests kvm: support adding read only memory to VMs 2018-02-06 21:32:39 -08:00
Cargo.toml kvm: add kvm crate to safely use kvm 2017-05-08 12:40:51 -07:00