From: "Jan Beulich" Subject: Re: [PATCH v2 02/12] xenctx: Add -2 (--two-pages) option to switch stack size to 8KiB Date: Thu, 07 Nov 2013 08:04:46 +0000 Message-ID: <527B57AE0200007800100779@nat28.tlf.novell.com> References: <1383768500-4245-1-git-send-email-dslutz@terremark.com> <1383768500-4245-3-git-send-email-dslutz@terremark.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VeKaA-0000wB-KY for xen-devel@lists.xenproject.org; Thu, 07 Nov 2013 08:04:50 +0000 In-Reply-To: <1383768500-4245-3-git-send-email-dslutz@terremark.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Don Slutz Cc: Ian Campbell , Stefano Stabellini , George Dunlap , Don Slutz , Ian Jackson , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 06.11.13 at 21:08, Don Slutz 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