From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7Uba-0001Oj-AQ for qemu-devel@nongnu.org; Fri, 31 Aug 2012 13:02:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7UbY-0002rW-2e for qemu-devel@nongnu.org; Fri, 31 Aug 2012 13:02:02 -0400 Received: from mail-iy0-f173.google.com ([209.85.210.173]:39771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7UbX-0002rQ-UC for qemu-devel@nongnu.org; Fri, 31 Aug 2012 13:01:59 -0400 Received: by iakx26 with SMTP id x26so5036336iak.4 for ; Fri, 31 Aug 2012 10:01:59 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <5040EC40.90003@CloudSwitch.Com> References: <502E63A3.1040304@sysgo.com> <5040EC40.90003@CloudSwitch.Com> Date: Fri, 31 Aug 2012 18:01:58 +0100 Message-ID: From: Peter Maydell Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH] x86: enforce DPL checking on task gate switches invoked through IDT List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Don Slutz Cc: Alex ZUEPKE , qemu-devel@nongnu.org On 31 August 2012 17:54, Don Slutz wrote: > I think it makes sense to move the next 2 checks into the switch (no real > code flow change). I agree (for symmetry). If you do that then I think the combination of those two patches means that in the task gate case we do the !(e2 & DESC_P_MASK) check first and then the dpl