move libkvm-all.c code to qemu-kvm.c
PATCH 1/1 move libkvm-all.c code to qemu-kvm.c
Ultimately, goal is to put it in kvm-all.c, so we can start sharing things. This is put here first to allow for preparation.
It is almost a cut and paste. Only needed adaptation goes with kvm_has_sync_mmu(), which had a conflicting definition.
Signed-off-by Glauber Costa <[email protected]>
--- Makefile.target | 2 +- libkvm-all.c | 1541 ------------------------------------------------------- libkvm-all.h | 2 - qemu-kvm.c | 1515 +++++++++++++++++++++++++++++++++++++++++++++++++++++- qemu-kvm.h | 4 +- 5 files changed, 1510 insertions(+), 1554 deletions(-) delete mode 100644 libkvm-all.c
Makefile.target +1 -1
@@ -162,7 +162,7 @@ CPPFLAGS+=-I$(SRC_PATH)/tcg/sparc endif ifeq ($(USE_KVM), 1) -LIBOBJS+=qemu-kvm.o libkvm.o libkvm-all.o +LIBOBJS+=qemu-kvm.o libkvm.o endif ifdef CONFIG_SOFTFLOAT LIBOBJS+=fpu/softfloat.o
libkvm-all.c deleted +0 -1541
1,541 lines not on this page · raw message
libkvm-all.h +0 -2
@@ -622,8 +622,6 @@ int kvm_dirty_pages_log_reset(kvm_context_t kvm);*/ int kvm_irqchip_in_kernel (kvm_context_t kvm); -int kvm_has_sync_mmu (kvm_context_t kvm); -#ifdef KVM_CAP_IRQCHIP /*! * \brief Dump in kernel IRQCHIP contents
qemu-kvm.c +1508 -7
1,443 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.5.6.6
Part of the diff is not shown here. View the raw message.
Avi Kivity
AppliedQuoted 8 lines · Glauber Costa
Ultimately, goal is to put it in
kvm-all.c, so we can start sharing things. This is put here first to allow for preparation.It is almost a cut and paste. Only needed adaptation goes with
kvm_has_sync_mmu(), which had a conflicting definition.
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function