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

Re: [Xen-devel] [RFC][PATCH 11/13] hvmloader: get guest memory map into memory_map[]



>>> On 10.04.15 at 11:22, <tiejun.chen@xxxxxxxxx> wrote:
> --- a/tools/firmware/hvmloader/util.c
> +++ b/tools/firmware/hvmloader/util.c
> @@ -27,6 +27,16 @@
>  #include <xen/memory.h>
>  #include <xen/sched.h>
>  
> +int check_hole_conflict(uint64_t start, uint64_t size,
> +                        uint64_t reserved_start, uint64_t reserved_size)
> +{
> +    if ( start + size <= reserved_start ||
> +            start >= reserved_start + reserved_size )
> +        return 0;
> +    else
> +        return 1;
> +}

See the comments on the similar tool stack function. Also please get
indentation right.

Jan


_______________________________________________
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®.