From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH unit-tests 1/3] Task stack pointer should point to the end of the page. Date: Wed, 19 Jan 2011 14:37:29 -0200 Message-ID: <20110119163729.GA9297@amt.cnet> References: <1294752607-7920-1-git-send-email-gleb@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: avi@redhat.com, kvm@vger.kernel.org To: Gleb Natapov Return-path: Received: from mx1.redhat.com ([209.132.183.28]:55787 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750827Ab1ASSPW (ORCPT ); Wed, 19 Jan 2011 13:15:22 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0JIFMEN016848 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 19 Jan 2011 13:15:22 -0500 Content-Disposition: inline In-Reply-To: <1294752607-7920-1-git-send-email-gleb@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Jan 11, 2011 at 03:30:05PM +0200, Gleb Natapov wrote: > > Signed-off-by: Gleb Natapov > --- > lib/x86/desc.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/lib/x86/desc.c b/lib/x86/desc.c > index 1bd4421..11bd2a2 100644 > --- a/lib/x86/desc.c > +++ b/lib/x86/desc.c > @@ -362,7 +362,7 @@ void setup_tss32(void) > tss[i].cr3 = read_cr3(); > tss[i].ss0 = tss[i].ss1 = tss[i].ss2 = 0x10; > tss[i].esp = tss[i].esp0 = tss[i].esp1 = tss[i].esp2 = > - (u32)tss_stack[i]; > + (u32)tss_stack[i] + 4096; > tss[i].cs = 0x08; > tss[i].ds = tss[i].es = tss[i].fs = tss[i].gs = tss[i].ss = 0x10; > tss[i].iomap_base = (u16)desc_size; > -- > 1.7.2.3 Applied, thanks.