From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2URG-0003vz-OK for qemu-devel@nongnu.org; Thu, 15 Apr 2010 15:09:22 -0400 Received: from [140.186.70.92] (port=35800 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2UQp-0001yh-22 for qemu-devel@nongnu.org; Thu, 15 Apr 2010 15:09:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2UQ2-0005hH-Fj for qemu-devel@nongnu.org; Thu, 15 Apr 2010 15:08:50 -0400 Received: from mail-pv0-f173.google.com ([74.125.83.173]:37823) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2UQ2-0005gx-9f for qemu-devel@nongnu.org; Thu, 15 Apr 2010 15:08:06 -0400 Received: by pvd12 with SMTP id 12so1059096pvd.4 for ; Thu, 15 Apr 2010 12:08:05 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 15 Apr 2010 22:08:05 +0300 Message-ID: From: Blue Swirl Content-Type: text/plain; charset=UTF-8 Subject: [Qemu-devel] [PATCH 0/3] Compile some files only once List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel I think Paolo's approach can work even with vl.c including kvm.h, provided that kvm.h remains such that it can be used safely. The situation is a bit fragile though. Some kind of poisoning, splitting kvm.h into two files, or other means should be used to make kvm.h more robust. Blue Swirl (2): Compile vl.c once Compile event_notifier only once Paolo Bonzini (1): provide a stub version of kvm-all.c if !CONFIG_KVM Makefile.objs | 4 +- Makefile.target | 5 +- kvm-all.c | 6 ++- kvm-stub.c | 135 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ kvm.h | 13 +---- vl.c | 16 +++---- 6 files changed, 154 insertions(+), 25 deletions(-) create mode 100644 kvm-stub.c