qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Glauber Costa <glommer@redhat.com>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 2/2] expose kvm pv features
Date: Fri, 6 Feb 2009 16:53:00 -0200	[thread overview]
Message-ID: <20090206185300.GA31468@poweredge.glommer> (raw)
In-Reply-To: <498C857A.5040000@us.ibm.com>

On Fri, Feb 06, 2009 at 12:46:18PM -0600, Anthony Liguori wrote:
> Glauber Costa wrote:
>> expose kvm paravirtual features into cpuid. This enables
>> the use of kvmclock in qemu guests. (and all the other
>> features too).
>>
>> Signed-off-by: Glauber Costa <glommer@redhat.com>
>> ---
>>  kvm.h             |    5 +++++
>>  target-i386/kvm.c |   29 +++++++++++++++++++++++++++++
>>  2 files changed, 34 insertions(+), 0 deletions(-)
>>
>> diff --git a/kvm.h b/kvm.h
>> index efce145..49a2653 100644
>> --- a/kvm.h
>> +++ b/kvm.h
>> @@ -17,6 +17,8 @@
>>  #include "config.h"
>>
>>  #ifdef CONFIG_KVM
>> +#include <linux/kvm.h>
>> +#include <linux/kvm_para.h>
>>  extern int kvm_allowed;
>>   
>
> This breaks the build in an admittedly subtle way.  kvm.h is included in  
> various c files throughout QEMU.  However, in Makefile.target, we have:
for the record, it wfm ;-)

>
> kvm.o: CFLAGS+=$(KVM_CFLAGS)
> kvm-all.o: CFLAGS+=$(KVM_CFLAGS)
>
> And KVM_CFLAGS contains flags derived from --kerneldir.  But now you're  
> relying on all C files being able to pull in kernel headers.
yeah, agreed.
>
> Looking at the patch, why put this includes in kvm.h at all?
You mean we should put them somewhere else, or not put them at all?

We need the headers to exist since we'll be dealing with capabilities
and feature bits that kvm defines. But given this problem, they can go fine
in kvm.c

      reply	other threads:[~2009-02-06 18:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-05 15:35 [Qemu-devel] [PATCH 0/2] Expose KVM pv features Glauber Costa
2009-02-05 15:35 ` [Qemu-devel] [PATCH 1/2] Factor out common code in filling cpuid code Glauber Costa
2009-02-05 15:35   ` [Qemu-devel] [PATCH 2/2] expose kvm pv features Glauber Costa
2009-02-06 18:46     ` [Qemu-devel] " Anthony Liguori
2009-02-06 18:53       ` Glauber Costa [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090206185300.GA31468@poweredge.glommer \
    --to=glommer@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).