mirror of
https://github.com/qemu/qemu.git
synced 2024-11-30 15:23:34 +08:00
migration: Create migrate_cpu_throttle_increment() function
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Fabiano Rosas <farosas@suse.de>
This commit is contained in:
parent
2a8ec38082
commit
9605c2ac28
@ -509,6 +509,15 @@ int migrate_compress_wait_thread(void)
|
||||
return s->parameters.compress_wait_thread;
|
||||
}
|
||||
|
||||
uint8_t migrate_cpu_throttle_increment(void)
|
||||
{
|
||||
MigrationState *s;
|
||||
|
||||
s = migrate_get_current();
|
||||
|
||||
return s->parameters.cpu_throttle_increment;
|
||||
}
|
||||
|
||||
uint8_t migrate_cpu_throttle_initial(void)
|
||||
{
|
||||
MigrationState *s;
|
||||
|
@ -50,6 +50,7 @@ uint32_t migrate_checkpoint_delay(void);
|
||||
int migrate_compress_level(void);
|
||||
int migrate_compress_threads(void);
|
||||
int migrate_compress_wait_thread(void);
|
||||
uint8_t migrate_cpu_throttle_increment(void);
|
||||
uint8_t migrate_cpu_throttle_initial(void);
|
||||
int migrate_decompress_threads(void);
|
||||
uint8_t migrate_max_cpu_throttle(void);
|
||||
|
@ -713,7 +713,7 @@ static void mig_throttle_guest_down(uint64_t bytes_dirty_period,
|
||||
{
|
||||
MigrationState *s = migrate_get_current();
|
||||
uint64_t pct_initial = migrate_cpu_throttle_initial();
|
||||
uint64_t pct_increment = s->parameters.cpu_throttle_increment;
|
||||
uint64_t pct_increment = migrate_cpu_throttle_increment();
|
||||
bool pct_tailslow = s->parameters.cpu_throttle_tailslow;
|
||||
int pct_max = migrate_max_cpu_throttle();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user