From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 5/3] compile balloon.c once
Date: Wed, 31 Mar 2010 17:25:57 +0200 [thread overview]
Message-ID: <1270049157-29784-2-git-send-email-pbonzini@redhat.com> (raw)
In-Reply-To: <1270047363-12627-1-git-send-email-pbonzini@redhat.com>
balloon.c contained some code from monitor.c, so it was compiled
once per target. Fix this.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
Makefile.objs | 2 +-
Makefile.target | 2 +-
kvm.h | 9 +++++----
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/Makefile.objs b/Makefile.objs
index 233fbba..f89823c 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -128,7 +128,7 @@ user-obj-y += cutils.o cache-utils.o
# libhw
hw-obj-y =
-hw-obj-y += vl.o loader.o
+hw-obj-y += vl.o balloon.o loader.o
hw-obj-y += virtio.o virtio-console.o
hw-obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
hw-obj-y += fw_cfg.o pci.o pci_host.o pcie_host.o
diff --git a/Makefile.target b/Makefile.target
index 9ca6636..dbffe63 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -161,7 +161,7 @@ endif #CONFIG_BSD_USER
# System emulator target
ifdef CONFIG_SOFTMMU
-obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o balloon.o
+obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o
# virtio has to be here due to weird dependency between PCI and virtio-net.
# need to fix this properly
obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-serial-bus.o
diff --git a/kvm.h b/kvm.h
index 4f77188..cb9d79b 100644
--- a/kvm.h
+++ b/kvm.h
@@ -16,6 +16,7 @@
#include "config-host.h"
#include "qemu-queue.h"
+#include "cpu-common.h"
extern int kvm_allowed;
@@ -31,6 +32,10 @@ struct kvm_run;
int kvm_init(int smp_cpus);
+int kvm_has_sync_mmu(void);
+int kvm_has_vcpu_events(void);
+int kvm_has_robust_singlestep(void);
+
#ifdef NEED_CPU_H
int kvm_init_vcpu(CPUState *env);
@@ -40,10 +45,6 @@ int kvm_cpu_exec(CPUState *env);
int kvm_log_start(target_phys_addr_t phys_addr, ram_addr_t size);
int kvm_log_stop(target_phys_addr_t phys_addr, ram_addr_t size);
-int kvm_has_sync_mmu(void);
-int kvm_has_vcpu_events(void);
-int kvm_has_robust_singlestep(void);
-
void kvm_setup_guest_memory(void *start, size_t size);
int kvm_coalesce_mmio_region(target_phys_addr_t start, ram_addr_t size);
--
1.6.6.1
next prev parent reply other threads:[~2010-03-31 15:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-31 14:56 [Qemu-devel] [PATCH rebased 0/3] move stuff out of vl.c Paolo Bonzini
2010-03-31 14:56 ` [Qemu-devel] [PATCH 1/3] move socket_init to qemu-sockets.c Paolo Bonzini
2010-03-31 14:56 ` [Qemu-devel] [PATCH 2/3] move two variable declarations out of vl.c Paolo Bonzini
2010-03-31 14:56 ` [Qemu-devel] [PATCH 3/3] move balloon handling to balloon.c Paolo Bonzini
2010-03-31 15:25 ` [Qemu-devel] [PATCH 4/3] move targphys.h and hw/poison.h inclusion to cpu-common.h Paolo Bonzini
2010-03-31 15:25 ` Paolo Bonzini [this message]
2010-04-01 8:11 ` [Qemu-devel] Re: [PATCH 5/3] compile balloon.c once Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1270049157-29784-2-git-send-email-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).