Yang, Sheng wrote: > +void kvm_create_pit(kvm_context_t kvm) > +{ > + int r; > + > + if (!kvm->no_pit_creation) { > + r = ioctl(kvm->fd, KVM_CHECK_EXTENSION, KVM_CAP_PIT); > + if (r > 0) { > + r = ioctl(kvm->vm_fd, KVM_CREATE_PIT); > + if (r < 0) > + printf("Create kernel PIC irqchip failed\n"); > + } > + } > +} > >
Need to protect this with #ifdef KVM_CAP_PIT to support compilation with older kernels. If support is not available, qemu should fall back to userspace pit. Please separate the qemu and libkvm parts. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel