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

Re: [Xen-devel] [PATCH v2 02/12] xenctx: Add -2 (--two-pages) option to switch stack size to 8KiB



>>> On 06.11.13 at 21:08, Don Slutz <dslutz@xxxxxxxxxxx> wrote:
> @@ -650,9 +651,11 @@ static int print_stack(vcpu_guest_context_any_t *ctx, 
> int vcpu, int width)
>  
>      stack_limit = ((stack_pointer(ctx) + XC_PAGE_SIZE)
>                     & ~((guest_word_t) XC_PAGE_SIZE - 1));
> +    if (xenctx.two_pages)
> +        stack_limit += XC_PAGE_SIZE;
>      printf("\n");
>      printf("Stack:\n");
> -    for (i=1; i<5 && stack < stack_limit; i++) {
> +    for (i=1; i<10 && stack < stack_limit; i++) {

Touching a malformed line like this makes it almost mandatory imo
to fix the coding style (missing blanks around = and <).

Apart from that, the change isn't really related to the subject of
the patch afaict, and as you're making thing more flexible anyway,
it would seem reasonable to also have a command line option to
control this limit.

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