Skip to contentSkip to conversation

migration: move page_cache.c to migration/

PATCH In review Paolo Bonzini 2 participants 3 messages Feb 4, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 migration: move page_cache.c to migration/

page_cache.c is part of the XBZRLE implementation, move it to the right directory.

---
 Makefile.objs                          | 1 -
 migration/Makefile.objs                | 2 +-
 page_cache.c => migration/page_cache.c | 0
 3 files changed, 1 insertion(+), 2 deletions(-)
 rename page_cache.c => migration/page_cache.c (100%)
Makefile.objs +0 -1
index 06b95c7..f950b0f 100644
@@ -51,7 +51,6 @@ common-obj-$(CONFIG_LINUX) += fsdev/
 
 common-obj-y += migration/
 common-obj-y += qemu-char.o #aio.o
-common-obj-y += page_cache.o
 common-obj-y += qjson.o
 
 common-obj-$(CONFIG_SPICE) += spice-qemu-char.o
migration/Makefile.objs +1 -1
index 0cac6d7..e5778de 100644
@@ -1,7 +1,7 @@
 common-obj-y += migration.o tcp.o
 common-obj-y += vmstate.o
 common-obj-y += qemu-file.o qemu-file-buf.o qemu-file-unix.o qemu-file-stdio.o
-common-obj-y += xbzrle.o postcopy-ram.o
+common-obj-y += xbzrle.o page_cache.o postcopy-ram.o
 
 common-obj-$(CONFIG_RDMA) += rdma.o
 common-obj-$(CONFIG_POSIX) += exec.o unix.o fd.o
migration/page_cache.c renamed from page_cache.c +0 -0
similarity index 100%
rename from page_cache.c
rename to migration/page_cache.c
Signature · 1 line
2.5.0
#1 lore raw
Quoted 4 lines · * Paolo Bonzini ([email protected]) wrote:

page_cache.c is part of the XBZRLE implementation, move it to the right directory.

Does that need tests/Makefile updating - I see:

tests/test-xbzrle$(EXESUF): tests/test-xbzrle.o migration/xbzrle.o page_cache.o $(test-util-obj-y)

I'm OK with moving this, although I didn't when I moved everything else because there's nothing stopping anyone using it outside of migration.

Dave

Quoted 40 lines
---
 Makefile.objs                          | 1 -
 migration/Makefile.objs                | 2 +-
 page_cache.c => migration/page_cache.c | 0
 3 files changed, 1 insertion(+), 2 deletions(-)
 rename page_cache.c => migration/page_cache.c (100%)
Makefile.objs +0 -1
index 06b95c7..f950b0f 100644
@@ -51,7 +51,6 @@ common-obj-$(CONFIG_LINUX) += fsdev/
 
 common-obj-y += migration/
 common-obj-y += qemu-char.o #aio.o
-common-obj-y += page_cache.o
 common-obj-y += qjson.o
 
 common-obj-$(CONFIG_SPICE) += spice-qemu-char.o
migration/Makefile.objs +1 -1
index 0cac6d7..e5778de 100644
@@ -1,7 +1,7 @@
 common-obj-y += migration.o tcp.o
 common-obj-y += vmstate.o
 common-obj-y += qemu-file.o qemu-file-buf.o qemu-file-unix.o qemu-file-stdio.o
-common-obj-y += xbzrle.o postcopy-ram.o
+common-obj-y += xbzrle.o page_cache.o postcopy-ram.o
 
 common-obj-$(CONFIG_RDMA) += rdma.o
 common-obj-$(CONFIG_POSIX) += exec.o unix.o fd.o
migration/page_cache.c renamed from page_cache.c +0 -0
similarity index 100%
rename from page_cache.c
rename to migration/page_cache.c
Signature · 1 line
2.5.0

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

#2 lore raw
Quoted 4 lines · Dr. David Alan Gilbert

tests/test-xbzrle$(EXESUF): tests/test-xbzrle.o migration/xbzrle.o page_cache.o $(test-util-obj-y)

I'm OK with moving this, although I didn't when I moved everything else because there's nothing stopping anyone using it outside of migration.

Oops...

Paolo