Displaying 1 result from an estimated 1 matches for "order_nr".
2007 Jan 11
0
[PATCH 6/8] HVM save restore: guest memory handling
...bit (int nr, volatile void * addr)
+{
+ return (BITMAP_ENTRY(nr, addr) >> BITMAP_SHIFT(nr)) & 1;
+}
+
+static inline void clear_bit (int nr, volatile void * addr)
+{
+ BITMAP_ENTRY(nr, addr) &= ~(1UL << BITMAP_SHIFT(nr));
+}
+
+static inline int permute( int i, int nr, int order_nr )
+{
+ /* Need a simple permutation function so that we scan pages in a
+ pseudo random order, enabling us to get a better estimate of
+ the domain''s page dirtying rate as we go (there are often
+ contiguous ranges of pfns that have similar behaviour, and we
+ w...