Re: [Qemu-devel] [PATCH 37/39] memory: syncronize kvm bitmap using bitmaps operations

2013-11-06 Thread Paolo Bonzini
Il 06/11/2013 14:04, Juan Quintela ha scritto: > +/* start address is aligned at the start of a word? */ > +if (((page * BITS_PER_LONG) << TARGET_PAGE_BITS) == start) { > +int k; > +int nr = BITS_TO_LONGS(pages); > + > +printf("XXX: aligned start %lx page %lx\n", sta

[Qemu-devel] [PATCH 37/39] memory: syncronize kvm bitmap using bitmaps operations

2013-11-06 Thread Juan Quintela
If bitmaps are aligned properly, use bitmap operations. If they are not, just use old bit at a time code. Signed-off-by: Juan Quintela --- include/exec/memory-physical.h | 54 +- 1 file changed, 38 insertions(+), 16 deletions(-) diff --git a/include/exec