/* [map->phys_addr, map->phys_addr + map->length) and [phys_addr, phys_addr + length) have intersection. The virtual address in the intersection are the same?  */
static bool mapping_conflict(MemoryMapping *map, hwaddr phys_addr, hwaddr virt_addr)
/* [map->phys_addr, map->phys_addr + map->length) and [phys_addr, phys_addr + length) have intersection. The virtual address in the intersection are the same?  */
static bool mapping_conflict(MemoryMapping *map, hwaddr phys_addr, hwaddr virt_addr)
{
    return virt_addr - map->virt_addr != phys_addr - map->phys_addr;
}