Fix 64bit shadow tracking

(The mask used to check for available shadows was off by 1 bit)

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
This commit is contained in:
tdeegan@york.uk.xensource.com committed 2006-08-17 18:39:10 +01:00
1 parent 26fdf1475d
commit bbca18e3ee
1 file changed
+1 -1
+1 -1
View File
@@ -489,7 +489,7 @@ shadow2_guest_physmap_remove_page(struct domain *d, unsigned long gfn,
*/
#define PGC_SH2_type_to_index(_type) ((_type) >> PGC_SH2_type_shift)
#define SH2F_page_type_mask \
(((1u << PGC_SH2_type_to_index(PGC_SH2_max_shadow + 1u)) - 1u) - \
(((1u << (PGC_SH2_type_to_index(PGC_SH2_max_shadow) + 1u)) - 1u) - \
((1u << PGC_SH2_type_to_index(PGC_SH2_min_shadow)) - 1u))
#define SH2F_L1_32 (1u << PGC_SH2_type_to_index(PGC_SH2_l1_32_shadow))
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.