Skip to contentSkip to conversation

move libkvm-all.c code to qemu-kvm.c

PATCH Applied Glauber Costa 2 participants 2 messages Jun 11, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 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
index da18f48..dac95aa 100644
@@ -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
index d647ef1..4f7b9a3 100644
@@ -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

qemu-kvm.h +1 -3
index fa40542..126b8f3 100644

Lines of this file are not shown. View the 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.

Applied
#1 lore raw
Quoted 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