From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [Qemu-devel] [PATCHv2] Add KVM paravirt cpuid leaf Date: Mon, 11 Jan 2010 15:36:19 -0600 Message-ID: <4B4B99D3.9090705@codemonkey.ws> References: <20100107124449.GY4905@redhat.com> <20100107162427.GF4905@redhat.com> <4B4B7988.5090803@codemonkey.ws> <4B4B8CD4.8090505@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Gleb Natapov , qemu-devel@nongnu.org, kvm-devel , Avi Kivity , Marcelo Tosatti To: Jan Kiszka Return-path: Received: from mail-qy0-f185.google.com ([209.85.221.185]:51793 "EHLO mail-qy0-f185.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751424Ab0AKVgY (ORCPT ); Mon, 11 Jan 2010 16:36:24 -0500 Received: by qyk15 with SMTP id 15so9725959qyk.23 for ; Mon, 11 Jan 2010 13:36:24 -0800 (PST) In-Reply-To: <4B4B8CD4.8090505@web.de> Sender: kvm-owner@vger.kernel.org List-ID: On 01/11/2010 02:40 PM, Jan Kiszka wrote: > Anthony Liguori wrote: > >> On 01/07/2010 10:24 AM, Gleb Natapov wrote: >> >>> diff --git a/target-i386/kvm.c b/target-i386/kvm.c >>> index 4084503..6a841de 100644 >>> --- a/target-i386/kvm.c >>> +++ b/target-i386/kvm.c >>> @@ -17,6 +17,7 @@ >>> #include >>> >>> #include >>> +#include >>> >> This breaks the build on a default F12 install because while kvm.h is >> present, kvm_para.h is not. This is a hard one to fix. >> >> We can default the kvm search path to /lib/modules/$(uname -r)/build, we >> can fix the glibc headers and live with it, or we can pull in the kvm >> headers into qemu. >> >> Avi/Marcelo/Jan, any thoughts from the qemu-kvm side? >> > kvm-kmod-wise, I can include arch and generic kvm_para.h in the next > release (missed the need for it so far). I'm planning to write a qemu > patch to ask pkg-config for kvm-kmod headers. > That would be nice. I assume a change has to be made in the kernel too so that the libc headers are updated. IOW, I assume make headers_install doesn't currently install kvm_para.h > If we can live with considering the cpuid leaf a feature that depends on > a recent kvm-kmod version and is disabled otherwise, we are done. If > not, tricks like the above are required. > It's less than ideal, but I can live with it. Regards, Anthony Liguori > Jan > >