From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkZqL-0007YS-39 for qemu-devel@nongnu.org; Tue, 21 Apr 2015 11:12:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkZqH-0002Eo-0c for qemu-devel@nongnu.org; Tue, 21 Apr 2015 11:12:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkZqG-0002EY-P6 for qemu-devel@nongnu.org; Tue, 21 Apr 2015 11:12:04 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t3LFC3br029610 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 21 Apr 2015 11:12:03 -0400 Message-ID: <1429629120.21164.29.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Tue, 21 Apr 2015 17:12:00 +0200 In-Reply-To: <553660EC.4040902@redhat.com> References: <1429521560-2743-1-git-send-email-kraxel@redhat.com> <1429521560-2743-6-git-send-email-kraxel@redhat.com> <55365F05.1050402@redhat.com> <553660EC.4040902@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 6/6] [wip] tseg, part2, not (yet) tested List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Laszlo Ersek , qemu-devel@nongnu.org, mst@redhat.com Hi, > > I'm thinking, the last 1 / 2 / 8 megabytes should behave as RAM in all > > of the following cases: > > - no SMRAM programmed (tseg size = 0) > > - SMRAM programmed (tseg size > 0), and it is open > > - SMRAM programmed (tseg size > 0) and closed, but CPU in SMM > > Correct. Almost. I think the smram open bit doesn't affect tseg at all. As tseg doesn't have the funky overlay properties with the vga window you can simply initialize tseg memory outside smm mode without any special tricks, you just need to do it before flipping the tseg enable bit. cheers, Gerd