From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LURRp-0005fD-RT for qemu-devel@nongnu.org; Tue, 03 Feb 2009 15:00:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LURRn-0005ev-JX for qemu-devel@nongnu.org; Tue, 03 Feb 2009 15:00:40 -0500 Received: from [199.232.76.173] (port=40100 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LURRn-0005es-CB for qemu-devel@nongnu.org; Tue, 03 Feb 2009 15:00:39 -0500 Received: from mail-qy0-f20.google.com ([209.85.221.20]:44736) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LURRm-0007SD-WE for qemu-devel@nongnu.org; Tue, 03 Feb 2009 15:00:39 -0500 Received: by qyk13 with SMTP id 13so4170895qyk.10 for ; Tue, 03 Feb 2009 12:00:38 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <49889CEB.7060602@redhat.com> References: <1233673454-14526-1-git-send-email-glommer@redhat.com> <49889CEB.7060602@redhat.com> Date: Tue, 3 Feb 2009 18:00:37 -0200 Message-ID: <5d6222a80902031200i5b46b536vd2a95089d48a098e@mail.gmail.com> Subject: Re: [Qemu-devel] [PATCH] don't expose lm bit if kernel is not 64-bit capable. From: Glauber Costa Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com > It would be better to use KVM_GET_SUPPORTED_CPUID for this (and similar). > uname() can lie, and in theory kvm can support x86_64 on i386 kernels > (although patches to implement this would be rejected on cost/benefit and > aesthetic concerns). I sent a patch that implements this last week, but anthony seemed to be more inclined towards this approach. -- Glauber Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious you have to act."