mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
xen mapcache: check if memory region has moved.
This patch changes the xen_map_cache behavior. Before trying to map a guest addr, mapcache will look into the list of range of address that have been moved (physmap/set_memory). There is currently one memory space like this, the vram, "moved" from were it's allocated to were the guest will look into. This help to have a succefull migration. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
parent
d1814e08c0
commit
cd1ba7de23
3 changed files with 43 additions and 6 deletions
|
@ -11,9 +11,13 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
typedef target_phys_addr_t (*phys_offset_to_gaddr_t)(target_phys_addr_t start_addr,
|
||||
ram_addr_t size,
|
||||
void *opaque);
|
||||
#ifdef CONFIG_XEN
|
||||
|
||||
void xen_map_cache_init(void);
|
||||
void xen_map_cache_init(phys_offset_to_gaddr_t f,
|
||||
void *opaque);
|
||||
uint8_t *xen_map_cache(target_phys_addr_t phys_addr, target_phys_addr_t size,
|
||||
uint8_t lock);
|
||||
ram_addr_t xen_ram_addr_from_mapcache(void *ptr);
|
||||
|
@ -22,7 +26,8 @@ void xen_invalidate_map_cache(void);
|
|||
|
||||
#else
|
||||
|
||||
static inline void xen_map_cache_init(void)
|
||||
static inline void xen_map_cache_init(phys_offset_to_gaddr_t f,
|
||||
void *opaque)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue