Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0vlZ-0008B6-FD for qemu-devel@nongnu.org; Thu, 22 Oct 2009 07:23:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0vlU-00080B-Cr for qemu-devel@nongnu.org; Thu, 22 Oct 2009 07:23:36 -0400 Received: from [199.232.76.173] (port=51782 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0vlU-0007zq-0b for qemu-devel@nongnu.org; Thu, 22 Oct 2009 07:23:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21416) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0vlT-00037g-FD for qemu-devel@nongnu.org; Thu, 22 Oct 2009 07:23:31 -0400 Date: Thu, 22 Oct 2009 09:23:27 -0200 From: Glauber Costa Subject: Re: [Qemu-devel] [PATCH] properly save kvm system time msr registers Message-ID: <20091022112327.GG8092@mothafucka.localdomain> References: <1256047441-9846-1-git-send-email-glommer@redhat.com> <4ADF0ED7.8000706@redhat.com> <20091021143228.GD8092@mothafucka.localdomain> <4ADF2010.5060307@redhat.com> <20091021193950.GF8092@mothafucka.localdomain> <4AE01125.3080501@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4AE01125.3080501@redhat.com> Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: aliguori@us.ibm.com, Marcelo Tosatti , qemu-devel@nongnu.org On Thu, Oct 22, 2009 at 10:00:37AM +0200, Gerd Hoffmann wrote: > On 10/21/09 21:39, Glauber Costa wrote: >>> $ rpm -ql kernel-headers | grep kvm >>> /usr/include/asm/kvm.h >>> /usr/include/linux/kvm.h >>> >>> Did you ever build this? >>> You should improve your patch qa ... >> btw, it builds fine for me even without --kerneldir, just tested. >> >> and the include is there since Feb08, a while now. > > Which doesn't imply "make headers" actually includes that file. Even =20 > rawhide aka soon-to-be-F12 ships no kvm_para.h header file in =20 > kernel-headers. > > Just defining the msrs instead of using kvm_para.h should be fine, the = =20 > numbers will not change ... That's not the problem. If one removes kvm_para.h, a lot of other things will not build. For example, the capabilities list. And it has been like this for almost a year now! Without that header, your system should have never successfully built a qemu-kvm instance. This is what happens here, if I try to remove it: error: =E2=80=98KVM_FEATURE_CLOCKSOURCE=E2=80=99 undeclared here (not in= a function) error: =E2=80=98KVM_FEATURE_NOP_IO_DELAY=E2=80=99 undeclared here (not i= n a function) error: =E2=80=98KVM_FEATURE_MMU_OP=E2=80=99 undeclared here (not in a fu= nction) So again, wth?