[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] xen: arm: panic if we cannot build dom0's p2m.



On 07/23/2013 06:06 PM, Ian Campbell wrote:
> From: Ian Campbell <ian.campbell@xxxxxxxxxx>
> 
> Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Acked-by: Julien Grall <julien.grall@xxxxxxxxxx>
> ---
>  xen/arch/arm/domain_build.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
> index 155b436..056c9df 100644
> --- a/xen/arch/arm/domain_build.c
> +++ b/xen/arch/arm/domain_build.c
> @@ -121,7 +121,8 @@ static int set_memory_reg(struct domain *d, struct 
> kernel_info *kinfo,
>          device_tree_set_reg(&new_cell, address_cells, size_cells, start, 
> size);
>  
>          printk("Populate P2M %#"PRIx64"->%#"PRIx64"\n", start, start + size);
> -        p2m_populate_ram(d, start, start + size);
> +        if ( p2m_populate_ram(d, start, start + size) < 0 )
> +            panic("Failed to populate P2M\n");
>          kinfo->mem.bank[kinfo->mem.nr_banks].start = start;
>          kinfo->mem.bank[kinfo->mem.nr_banks].size = size;
>          kinfo->mem.nr_banks++;
> 


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.