mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
memory, xen: pass MemoryRegion to xen_ram_alloc()
Currently xen_ram_alloc() relies on ram_addr, which is going away. Give it something else to use as a cookie. Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
5ab97b7f81
commit
fce537d4a7
6 changed files with 20 additions and 12 deletions
|
@ -181,7 +181,7 @@ static void xen_ram_init(ram_addr_t ram_size)
|
|||
}
|
||||
}
|
||||
|
||||
void xen_ram_alloc(ram_addr_t ram_addr, ram_addr_t size)
|
||||
void xen_ram_alloc(ram_addr_t ram_addr, ram_addr_t size, MemoryRegion *mr)
|
||||
{
|
||||
unsigned long nr_pfn;
|
||||
xen_pfn_t *pfn_list;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue