mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-10-04 15:58:29 +00:00
kvm tools: ignore balloon signals by default to avoid balloon crash
If "kvm run" without balloon option, use "kvm balloon" may crash kvm. So ignore balloon signals by default to avoid this. Signed-off-by: Liming Wang <walimisdev@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
@@ -469,6 +469,9 @@ int kvm_cmd_run(int argc, const char **argv, const char *prefix)
|
||||
signal(SIGUSR2, handle_sigusr2);
|
||||
signal(SIGKVMSTOP, handle_sigstop);
|
||||
signal(SIGKVMRESUME, handle_sigusr2);
|
||||
/* ignore balloon signal by default if not enable balloon optiion */
|
||||
signal(SIGKVMADDMEM, SIG_IGN);
|
||||
signal(SIGKVMDELMEM, SIG_IGN);
|
||||
|
||||
nr_online_cpus = sysconf(_SC_NPROCESSORS_ONLN);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user