Re: [Qemu-devel] [PATCH 0/2] Make migration/ram.c target independent

2017-05-18 Thread Peter Xu
On Wed, May 17, 2017 at 06:08:02PM +0200, Juan Quintela wrote: > Hi > > Only reason that ram.c is compiled by target is because it use > TARGET_PAGE_BITS. As we already have a function to export > TARGET_PAGE_SIZE, do the same. > After this, we can make it target independent. > > Please, review.

Re: [Qemu-devel] [PATCH 0/2] Make migration/ram.c target independent

2017-05-18 Thread Juan Quintela
Juan Quintela wrote: > Hi Hi And I got it wrong subject. What got target independent is savevm.c ram.c needs to "cleanup" first include/exec/ram_addr.h Sorry, Juan. > > Only reason that ram.c is compiled by target is because it use > TARGET_PAGE_BITS. As we already have a function to export

[Qemu-devel] [PATCH 0/2] Make migration/ram.c target independent

2017-05-17 Thread Juan Quintela
Hi Only reason that ram.c is compiled by target is because it use TARGET_PAGE_BITS. As we already have a function to export TARGET_PAGE_SIZE, do the same. After this, we can make it target independent. Please, review. Later, Juan. Juan Quintela (2): exec: Create include for target_page_si