mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
memory: add memory_region_set_size
Add API to change MR size. Will be used internally for RAM resize. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
d86fb03469
commit
e7af4c6730
2 changed files with 26 additions and 0 deletions
|
@ -877,6 +877,16 @@ void memory_region_set_enabled(MemoryRegion *mr, bool enabled);
|
|||
*/
|
||||
void memory_region_set_address(MemoryRegion *mr, hwaddr addr);
|
||||
|
||||
/*
|
||||
* memory_region_set_size: dynamically update the size of a region.
|
||||
*
|
||||
* Dynamically updates the size of a region.
|
||||
*
|
||||
* @mr: the region to be updated
|
||||
* @size: used size of the region.
|
||||
*/
|
||||
void memory_region_set_size(MemoryRegion *mr, uint64_t size);
|
||||
|
||||
/*
|
||||
* memory_region_set_alias_offset: dynamically update a memory alias's offset
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue