diff options
author | thomas knych | 2014-01-09 22:14:23 +0100 |
---|---|---|
committer | Paolo Bonzini | 2014-01-15 12:58:41 +0100 |
commit | 94ccff133820552a859c0fb95e33a539e0b90a75 (patch) | |
tree | 0fbf9538748867da53e5b72e6235f94784c51c0c /qmp.c | |
parent | mempath prefault: fix off-by-one error (diff) | |
download | qemu-94ccff133820552a859c0fb95e33a539e0b90a75.tar.gz qemu-94ccff133820552a859c0fb95e33a539e0b90a75.tar.xz qemu-94ccff133820552a859c0fb95e33a539e0b90a75.zip |
KVM: Retry KVM_CREATE_VM on EINTR
Upstreaming this change from Android (https://android-review.googlesource.com/54211).
On heavily loaded machines with many VM instances we see KVM_CREATE_VM
failing with EINTR on this path:
kvm_dev_ioctl_create_vm -> kvm_create_vm -> kvm_init_mmu_notifier -> mmu_notifier_register -> do_mmu_notifier_register -> mm_take_all_locks
which checks if any signals have been raised while it was attaining locks
and returns EINTR. Retrying the system call greatly improves reliability.
Cc: qemu-stable@nongnu.org
Signed-off-by: thomas knych <thomaswk@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qmp.c')
0 files changed, 0 insertions, 0 deletions