Received: from eggs.gnu.org ([208.118.235.92]:60215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRzPB-0002Eq-Am for qemu-devel@nongnu.org; Wed, 09 May 2012 01:25:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRzP8-0006Go-PO for qemu-devel@nongnu.org; Wed, 09 May 2012 01:25:40 -0400 Received: from indium.canonical.com ([91.189.90.7]:57710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRzP8-0006Gg-Iw for qemu-devel@nongnu.org; Wed, 09 May 2012 01:25:38 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1SRzP6-0006jz-OY for ; Wed, 09 May 2012 05:25:36 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id AD9D52E8085 for ; Wed, 9 May 2012 05:25:36 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 09 May 2012 05:17:14 -0000 From: Yury Popov Sender: bounces@canonical.com References: <20120508215526.13179.23990.malonedeb@soybean.canonical.com> Message-Id: <20120509051715.8920.25989.launchpad@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 996798] Re: Incorrect order of task switching Reply-To: Bug 996798 <996798@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Description changed: In Intel specifications (http://download.intel.com/design/processor/manuals/253668.pdf 7.3), we can see: = - 8. Saves the state of the current (old) task in the current task=E2= =80=99s + =C2=A0=C2=A0=C2=A0=C2=A08. Saves the state of the current (old) task in t= he current task=E2=80=99s TSS. = =E2=80=A6 = - 11. Loads the task register with the segment selector and descriptor - for the new task's TSS. + =C2=A0=C2=A0=C2=A012. The TSS state is loaded into the processor = But, in QEMU code (https://raw.github.com/qemu/QEMU/v1.0/target-i386/op_helper.c :375), the order is reversed: TSS registers & segments loads BEFORE save old task state. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/996798 Title: Incorrect order of task switching Status in QEMU: New Bug description: In Intel specifications (http://download.intel.com/design/processor/manuals/253668.pdf 7.3), we can see: =C2=A0=C2=A0=C2=A0=C2=A08. Saves the state of the current (old) task in t= he current task=E2=80=99s TSS. =E2=80=A6 =C2=A0=C2=A0=C2=A012. The TSS state is loaded into the processor But, in QEMU code (https://raw.github.com/qemu/QEMU/v1.0/target-i386/op_helper.c :375), the order is reversed: TSS registers & segments loads BEFORE save old task state. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/996798/+subscriptions