mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
memory: Rename memory_region_init_rom() and _rom_device() to _nomigrate()
Rename memory_region_init_rom() to memory_region_init_rom_nomigrate() and memory_region_init_rom_device() to memory_region_init_rom_device_nomigrate(). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1499438577-7674-5-git-send-email-peter.maydell@linaro.org
This commit is contained in:
parent
1cfe48c1ce
commit
b59821a95b
10 changed files with 47 additions and 39 deletions
|
@ -586,12 +586,16 @@ void memory_region_init_alias(MemoryRegion *mr,
|
|||
uint64_t size);
|
||||
|
||||
/**
|
||||
* memory_region_init_rom: Initialize a ROM memory region.
|
||||
* memory_region_init_rom_nomigrate: Initialize a ROM memory region.
|
||||
*
|
||||
* This has the same effect as calling memory_region_init_ram()
|
||||
* This has the same effect as calling memory_region_init_ram_nomigrate()
|
||||
* and then marking the resulting region read-only with
|
||||
* memory_region_set_readonly().
|
||||
*
|
||||
* Note that this function does not do anything to cause the data in the
|
||||
* RAM side of the memory region to be migrated; that is the responsibility
|
||||
* of the caller.
|
||||
*
|
||||
* @mr: the #MemoryRegion to be initialized.
|
||||
* @owner: the object that tracks the region's reference count
|
||||
* @name: Region name, becomes part of RAMBlock name used in migration stream
|
||||
|
@ -599,15 +603,19 @@ void memory_region_init_alias(MemoryRegion *mr,
|
|||
* @size: size of the region.
|
||||
* @errp: pointer to Error*, to store an error if it happens.
|
||||
*/
|
||||
void memory_region_init_rom(MemoryRegion *mr,
|
||||
struct Object *owner,
|
||||
const char *name,
|
||||
uint64_t size,
|
||||
Error **errp);
|
||||
void memory_region_init_rom_nomigrate(MemoryRegion *mr,
|
||||
struct Object *owner,
|
||||
const char *name,
|
||||
uint64_t size,
|
||||
Error **errp);
|
||||
|
||||
/**
|
||||
* memory_region_init_rom_device: Initialize a ROM memory region. Writes are
|
||||
* handled via callbacks.
|
||||
* memory_region_init_rom_device_nomigrate: Initialize a ROM memory region.
|
||||
* Writes are handled via callbacks.
|
||||
*
|
||||
* Note that this function does not do anything to cause the data in the
|
||||
* RAM side of the memory region to be migrated; that is the responsibility
|
||||
* of the caller.
|
||||
*
|
||||
* @mr: the #MemoryRegion to be initialized.
|
||||
* @owner: the object that tracks the region's reference count
|
||||
|
@ -617,13 +625,13 @@ void memory_region_init_rom(MemoryRegion *mr,
|
|||
* @size: size of the region.
|
||||
* @errp: pointer to Error*, to store an error if it happens.
|
||||
*/
|
||||
void memory_region_init_rom_device(MemoryRegion *mr,
|
||||
struct Object *owner,
|
||||
const MemoryRegionOps *ops,
|
||||
void *opaque,
|
||||
const char *name,
|
||||
uint64_t size,
|
||||
Error **errp);
|
||||
void memory_region_init_rom_device_nomigrate(MemoryRegion *mr,
|
||||
struct Object *owner,
|
||||
const MemoryRegionOps *ops,
|
||||
void *opaque,
|
||||
const char *name,
|
||||
uint64_t size,
|
||||
Error **errp);
|
||||
|
||||
/**
|
||||
* memory_region_init_reservation: Initialize a memory region that reserves
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue