diff options
author | Fabiano Rosas <farosas@suse.de> | 2023-10-11 15:46:00 -0300 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-10-17 09:25:14 +0200 |
commit | 8f47d4ee434ea23fac81b33d7200367f05220495 (patch) | |
tree | 44f22e95bed8aaebba49be16048cf0462170a209 /migration/ram.c | |
parent | 2f5ced5b93720218509fbf7278b5c651d3bbd806 (diff) | |
download | qemu-8f47d4ee434ea23fac81b33d7200367f05220495.zip qemu-8f47d4ee434ea23fac81b33d7200367f05220495.tar.gz qemu-8f47d4ee434ea23fac81b33d7200367f05220495.tar.bz2 |
migration/ram: Remove RAMState from xbzrle_cache_zero_page
'rs' is not used in that function. It's a leftover from commit
9360447d34 ("ram: Use MigrationStats for statistics").
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231011184604.32364-4-farosas@suse.de>
Diffstat (limited to 'migration/ram.c')
-rw-r--r-- | migration/ram.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/migration/ram.c b/migration/ram.c index 2bd51d6..535172d 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -570,7 +570,6 @@ void mig_throttle_counter_reset(void) /** * xbzrle_cache_zero_page: insert a zero page in the XBZRLE cache * - * @rs: current RAM state * @current_addr: address for the zero page * * Update the xbzrle cache to reflect a page that's been sent as all 0. @@ -579,7 +578,7 @@ void mig_throttle_counter_reset(void) * As a bonus, if the page wasn't in the cache it gets added so that * when a small write is made into the 0'd page it gets XBZRLE sent. */ -static void xbzrle_cache_zero_page(RAMState *rs, ram_addr_t current_addr) +static void xbzrle_cache_zero_page(ram_addr_t current_addr) { /* We don't care if this fails to allocate a new cache page * as long as it updated an old one */ @@ -2146,7 +2145,7 @@ static int ram_save_target_page_legacy(RAMState *rs, PageSearchStatus *pss) */ if (rs->xbzrle_started) { XBZRLE_cache_lock(); - xbzrle_cache_zero_page(rs, block->offset + offset); + xbzrle_cache_zero_page(block->offset + offset); XBZRLE_cache_unlock(); } return res; |