From: Glauber de O. C. <gc...@re...> - 2008-01-14 21:20:00
|
Avi Kivity wrote: > Glauber de Oliveira Costa wrote: >> have qemu-kvm to include kvm_para, allowing access to paravirt >> definitions >> >> Signed-off-by: Glauber de Oliveira Costa <gc...@re...> >> --- >> qemu/qemu-kvm-x86.c | 1 + >> 1 files changed, 1 insertions(+), 0 deletions(-) >> >> diff --git a/qemu/qemu-kvm-x86.c b/qemu/qemu-kvm-x86.c >> index c79ca36..21ec112 100644 >> --- a/qemu/qemu-kvm-x86.c >> +++ b/qemu/qemu-kvm-x86.c >> @@ -14,6 +14,7 @@ extern int kvm_irqchip; >> #include <libkvm.h> >> #include <pthread.h> >> #include <sys/utsname.h> >> +#include <linux/kvm_para.h> >> > > IIRC, early versions of kvm_para.h were userspace unfriendly, so we need > a version code check (or better, a KVM_CAP_ check) around this. > No need. including kvm_para.h in userspace unfriendly tools won't break anything. Code that handles it userspace is already enclosed in the KVM_CAP_ check. (well, in reality, I forgot to enclose one line with it. But it's a bug, and will be fixed in the series I'm about to shoot out. |