[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH]Add a flag for shadow pages
Currently we don't know that a page is a shadow page unless we are in shadow handler. This cause error when we try to get the page owner for the shadow page, this snippet add a flag to it. signed-off-by: Jiang, Yunhong <yunhong.jiang@xxxxxxxxx> I'm not quite sure if the sh_put_ref() and sh_rm_write_access_from_sl1p() is try to checking a page is shadow page (I assume so), because when a anonymous page is allocated, the count_info is also 0 (like HVM's vlapic page), so I change it like this patch (checking PGC_count_mask is 0). Since comments in sh_hash_audit_bucket() has stated clearly it is to check if it is shdow, so I replace it with test_bit(). Also, do we need checking in page_get_owner() also? Thanks Yunhong Jiang Attachment:
new_shadow_flag.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |