Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758559AbZCPQU7 (ORCPT ); Mon, 16 Mar 2009 12:20:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754388AbZCPQUu (ORCPT ); Mon, 16 Mar 2009 12:20:50 -0400 Received: from gw.goop.org ([64.81.55.164]:58993 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754251AbZCPQUu (ORCPT ); Mon, 16 Mar 2009 12:20:50 -0400 Message-ID: <49BE7C57.6060100@goop.org> Date: Mon, 16 Mar 2009 09:20:39 -0700 From: Jeremy Fitzhardinge User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Avi Kivity CC: Sergio Luis , Ingo Molnar , "Rafael J. Wysocki" , Pavel Machek , Linux-kernel Mailing List Subject: Re: x86: asm doubt References: <49BD2FC7.5050903@goop.org> <49BE5E4E.1070209@redhat.com> In-Reply-To: <49BE5E4E.1070209@redhat.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 954 Lines: 23 Avi Kivity wrote: > Jeremy Fitzhardinge wrote: >> In 32-bit mode, moving to a segment register can fault if the >> underlying GDT/LDT entry is invalid. In 64-bit mode, segment >> registers are mostly decorative and have no function, and moving >> arbitrary values into them doesn't fault, making the exception >> catching unnecessary. > > 64-bit mode will in fact fault if an access is made outside the > GDT/LDT, or of the descriptor is invalid. Oh, I didn't think it bothered. I guess I'm conflating that with the fact that it doesn't apply any of the segment properties to memory accesses. Anyway, in that case the 64-bit code should definitely be using the standard segment accessors. J -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/