From: Ming Liu Subject: About getting guest pfn number from virtual address Date: Wed, 10 Oct 2012 20:12:48 -0400 Message-ID: <50F4CF19-626E-4210-BA69-E03FF8D7C951@gmail.com> Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Hi, I find that the shadow page fault entry function is : sh_page_fault. It has three parameters: struct vcpu *v, unsigned long va and struct cpu_user_regs *regs. I have two questions here: 1. The "unsigned long va" means the virtual address of the guest? 2. How can I get the physical frame number (PFN) from this va variable? Thanks. Best,