From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juan Quintela Subject: [PATCH 00/24] configure and Makefile cleanup Date: Fri, 18 Sep 2009 13:41:08 +0200 Message-ID: To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:60638 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756414AbZIRLli (ORCPT ); Fri, 18 Sep 2009 07:41:38 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8IBffQo004890 for ; Fri, 18 Sep 2009 07:41:41 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This series: - werror is not disabled unconditoanally, you can disable it with --disable-werror. - clean configure and Makefile* of mis-merges - sync such files to qemu upstream - kvm options are detected and configured _after_ detecting kvm, not the other way around - add command line options and change styse so kvm-cap-pit and kvm-cap-device-assignment looks like the other options. Bring command line flags to enable/disable them, and fix code to compile. - CONFIG_CPU_EMULATION is back, and it works (it is still a hack, proper fix means moving code to new files and other conditional compilation, better to do it at qemu upstream. - Why do we define "-D__user=" for gcc? Nothing uses it (/me guess sparse missmerge) What I didn't touch: - kvm-kmod. - CFLAGS += $(KVM_CFLAGS) on Makefile.target, only 4-5 files need them. Didn't investigate too much into it. - I only tested it on x86_64, i386 should work. powerpc/ia64 -> dunno. For upstream: - kvm_cflags reorganization: make sense - KVM_CAP_PIT: haven't looked how much support is missing there - DEVICE_ASSIGNMENT: idem - CONFIG_CPU_EMULATION: Proper implementation is not trivial. What is in qemu-kvm is a hack, proper integration requires moving code back and forth. Not sure how important is to have this option. Comments? Juan Quintela (24): Don't disable werror unconditionally extboot.bin is a generated file Remove merge artifacts piix4_dev is not used for pc's compatfd is included before, and it is compiled unconditionally Use common style for signalfd One CONFIG_EVENTFD should be enough Bring ia64 to current arch selection code Use configure way of enabling kvm Prin kvm options values as everything else KVM temp hack not needed anymore Introduce libs_softmmu to device assignment code Use compile_prog function in thee missing compilations Test for libpci, not only for header Rename USE_KVM_* to CONFIG_KVM_* Move kvm specific tests after main kvm test Add kvm-cap-pit command line flags Add kvm-cap-device-assignment command line flags Fix compilation without device assignment Only print kvm options when kvm is enabled __user is not used anywhere in qemu sources fix mis-merge (we define pkgversion 3 lines above Get CONFIG_CPU_EMULATION back to life Remove build-targets-* rules that are always empty .gitignore | 1 + Makefile | 11 -- Makefile.target | 31 ++----- compatfd.c | 4 +- configure | 237 +++++++++++++++++++++++------------------------ create_config | 3 - exec.c | 2 + hw/ipf.c | 4 +- hw/pc.c | 6 +- hw/pci-hotplug.c | 14 ++-- hw/pci.c | 4 +- hw/pcspk.c | 2 +- hw/piix_pci.c | 3 - qemu-kvm-x86.c | 2 + qemu-kvm.c | 10 +- qemu-kvm.h | 2 +- target-i386/fake-exec.c | 4 - vl.c | 2 +- 18 files changed, 154 insertions(+), 188 deletions(-)