mirror of https://github.com/xqemu/xqemu.git
ram: Rename block_name to rbname
So all places are consistent on the naming of a block name parameter. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
5e58f968f4
commit
3644915726
|
@ -743,14 +743,14 @@ static int save_zero_page(QEMUFile *f, RAMBlock *block, ram_addr_t offset,
|
||||||
return pages;
|
return pages;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ram_release_pages(MigrationState *ms, const char *block_name,
|
static void ram_release_pages(MigrationState *ms, const char *rbname,
|
||||||
uint64_t offset, int pages)
|
uint64_t offset, int pages)
|
||||||
{
|
{
|
||||||
if (!migrate_release_ram() || !migration_in_postcopy(ms)) {
|
if (!migrate_release_ram() || !migration_in_postcopy(ms)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ram_discard_range(NULL, block_name, offset, pages << TARGET_PAGE_BITS);
|
ram_discard_range(NULL, rbname, offset, pages << TARGET_PAGE_BITS);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1943,25 +1943,24 @@ int ram_postcopy_send_discard_bitmap(MigrationState *ms)
|
||||||
* Returns zero on success
|
* Returns zero on success
|
||||||
*
|
*
|
||||||
* @mis: current migration incoming state
|
* @mis: current migration incoming state
|
||||||
* @block_name: Name of the RAMBlock of the request. NULL means the
|
* @rbname: name of the RAMBlock of the request. NULL means the
|
||||||
* same that last one.
|
* same that last one.
|
||||||
* @start: RAMBlock starting page
|
* @start: RAMBlock starting page
|
||||||
* @length: RAMBlock size
|
* @length: RAMBlock size
|
||||||
*/
|
*/
|
||||||
int ram_discard_range(MigrationIncomingState *mis,
|
int ram_discard_range(MigrationIncomingState *mis,
|
||||||
const char *block_name,
|
const char *rbname,
|
||||||
uint64_t start, size_t length)
|
uint64_t start, size_t length)
|
||||||
{
|
{
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
trace_ram_discard_range(block_name, start, length);
|
trace_ram_discard_range(rbname, start, length);
|
||||||
|
|
||||||
rcu_read_lock();
|
rcu_read_lock();
|
||||||
RAMBlock *rb = qemu_ram_block_by_name(block_name);
|
RAMBlock *rb = qemu_ram_block_by_name(rbname);
|
||||||
|
|
||||||
if (!rb) {
|
if (!rb) {
|
||||||
error_report("ram_discard_range: Failed to find block '%s'",
|
error_report("ram_discard_range: Failed to find block '%s'", rbname);
|
||||||
block_name);
|
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue