[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 1/2] Move KVM init to arch_init.c, compile vl.c

From: Paolo Bonzini
Subject: [Qemu-devel] Re: [PATCH 1/2] Move KVM init to arch_init.c, compile vl.c once
Date: Fri, 02 Apr 2010 18:01:24 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.3

On 04/02/2010 05:20 PM, Anthony Liguori wrote:

I didn't do this to compile vl.c once.  I don't care about that.

I did this as an initial step towards having kvm functions stubbed out
for !CONFIG_KVM, instead of relying on GCC performing
dead-code-elimination on kvm_enabled().

I'd prefer a kvm-stub.c implementation as opposed to mixing in
CONFIG_KVM in kvm-all.c

I tried it, but our build system makes it a mess because compile-once-only can only be done using what once were static libraries. All files from there are added blindly:

   obj-y += $(addprefix ../, $(common-obj-y))
   obj-y += $(addprefix ../libdis/, $(libdis-y))
   obj-y += $(libobj-y)
   obj-y += $(addprefix $(HWDIR)/, $(hw-obj-y))

I'll try something.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]