[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] put_page in ptwr_do_page_fault



On Mon, 2012-10-15 at 07:43 +0100, Xinxin Jin wrote:
> Hi all,
> I am trying to understand write page table handler for PV guests. I
> got the core of ptwr_do_page_fault is x86_emulate() which will emulate
> the write operation in Xen. But why after that Xen calls  put_page()
> to free the page mapped to the PTE ? The code snapshot is as follows: 

The put_page balances the get_page inside get_page_from_pagenr which is
in the code you trimmed out below.

Ian.




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.