diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2010-04-19 18:59:30 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-04-19 18:59:30 +0000 |
commit | 3388bc1072ff3c5aeecb8e06f3c2ab79038ffa30 (patch) | |
tree | c709ea4646f51f34804bbf8de7dc1245254334b2 /Makefile.target | |
parent | 074a1ce1bae6b91fb9086c9966bfd51faa4e43c0 (diff) | |
download | qemu-3388bc1072ff3c5aeecb8e06f3c2ab79038ffa30.tar.gz qemu-3388bc1072ff3c5aeecb8e06f3c2ab79038ffa30.tar.bz2 qemu-3388bc1072ff3c5aeecb8e06f3c2ab79038ffa30.zip |
provide a stub version of kvm-all.c if !CONFIG_KVM
This allows limited use of kvm functions (which will return ENOSYS)
even in once-compiled modules. The patch also improves a bit the error
messages for KVM initialization.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
[blauwirbel@gmail.com: fixed Win32 build]
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'Makefile.target')
-rw-r--r-- | Makefile.target | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.target b/Makefile.target index 95c9d23439..34ceed60bd 100644 --- a/Makefile.target +++ b/Makefile.target @@ -1,6 +1,7 @@ # -*- Mode: makefile -*- GENERATED_HEADERS = config-target.h +CONFIG_NO_KVM = $(if $(subst n,,$(CONFIG_KVM)),n,y) include ../config-host.mak include config-devices.mak @@ -171,6 +172,7 @@ obj-y += vhost_net.o obj-$(CONFIG_VHOST_NET) += vhost.o obj-y += rwhandler.o obj-$(CONFIG_KVM) += kvm.o kvm-all.o +obj-$(CONFIG_NO_KVM) += kvm-stub.o LIBS+=-lz QEMU_CFLAGS += $(VNC_TLS_CFLAGS) |