Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-devel

[Xen-devel] [PATCH] [XENOPROF] fix shared_xenoprof_page_with_guest() and

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] [XENOPROF] fix shared_xenoprof_page_with_guest() and clean up
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Tue, 28 Nov 2006 17:20:03 +0900
Delivery-date: Tue, 28 Nov 2006 00:20:34 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
Without this patch, profiling more than twice causes xen panic
because of page reference counter inconsistency.

[XENOPROFILE] fix shared_xenoprof_page_with_guest() and clean up.
- share_xenoprof_page_with_guest() must check page reference count manually
  and clear the page owner in order to keep page_info consistency.
  free_domheap_pages() called by put_page() doesn't clear page owner.
  It's intentional. On the other hand, share_xen_page_with_guest() checks
  whether the page owner is already a requested one at first. If so,
  it simply returns doing nothing because share_xen_page_with_guest() expects
  freshly allocated pages or already shared one and doesn't expect
  put_page()-and-free_domheap_pages() pages or pages shared with
  another domains.
- clean up
  remove unsed argument gmaddr of alloc_xenoprof_buf(), alloc_xenoprof_struct()

-- 
yamahata

Attachment: 12549_ec4428278e41_xenoprof_common_allocation.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel