Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N10xt-00052S-MP for qemu-devel@nongnu.org; Thu, 22 Oct 2009 12:56:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N10xp-0004ug-3Z for qemu-devel@nongnu.org; Thu, 22 Oct 2009 12:56:41 -0400 Received: from [199.232.76.173] (port=49439 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N10xo-0004uO-M4 for qemu-devel@nongnu.org; Thu, 22 Oct 2009 12:56:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9312) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N10xo-0004og-3I for qemu-devel@nongnu.org; Thu, 22 Oct 2009 12:56:36 -0400 Date: Thu, 22 Oct 2009 14:56:31 -0200 From: Glauber Costa Subject: Re: [Qemu-devel] [PATCH] test for lm capable kernel. Message-ID: <20091022165631.GJ8092@mothafucka.localdomain> References: <1255540160-19869-1-git-send-email-glommer@redhat.com> <4AE08DA2.7040203@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AE08DA2.7040203@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org On Thu, Oct 22, 2009 at 06:51:46PM +0200, Avi Kivity wrote: > On 10/14/2009 07:09 PM, Glauber Costa wrote: >> Don't save x86_64-specific msrs if our kernel does not support them. >> Code is already in qemu-kvm.git, but the test function is slightly different. >> It follows what the test for msr_start does. >> > > Can't we use KVM_GET_MSR_LIST to see which msrs are supported instead? that would be good, indeed. Right now we're doing it for star, but we could keep the list and always query it.