skip ballooning during migration

avoid to add memory load overhead on the migration with balloon inflate/deflate

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2013-01-04 11:14:07 +01:00 committed by Dietmar Maurer
parent 40f546b907
commit 1fa4f9118c

View File

@ -93,6 +93,7 @@ sub compute_alg1 {
my $d = $vmstatus->{$vmid};
next if !$d->{balloon}; # skip if balloon driver not running
next if !$d->{balloon_min}; # skip if balloon value not set in config
next if $d->{lock} && $d->{lock} eq 'migrate';
next if defined($d->{shares}) &&
($d->{shares} == 0); # skip if shares set to zero