This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] Shadow Page Tables in Xen

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Shadow Page Tables in Xen
From: priya sehgal <priyagps@xxxxxxxxxxx>
Date: Tue, 21 Apr 2009 01:04:18 +0530 (IST)
Delivery-date: Mon, 20 Apr 2009 12:34:44 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1240256059; bh=cNz6JZz0XHh7+WBxwzgjqf7Ekg9gSX8E/ewmU3vBMPY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=gXVTWnRk6uJZIpHplo7cc+AmSbNP7sf8tFBOq4W1y274b5rATYFX4BsIEdm8e8lvH354dcgqKvL3/YVLDMvUooD1YCfaYYEzG+S53YJLeDleMDgRoo8SI0fG4SL5iz/nV7zvaPlxr0rFuBUSY6HerQ8wlCPfQfo8FQOrsMN56xc=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=plKk1ujWY545BqctL+dVyIfTFJfSkukMAhTOboYEs5SNDDElKSCEd6WG6mSsRE3X3hkFrONuyiPlfx2XnheHNzfIUjlM2NXjiHdqo9MDtBb7BviWTY447vcWpRjKR3CkMbgEV3tTNFUxxQHa71L+IvapsLyk0yKXVMdp/BWC+YY=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I was going through the memory management in Xen and little confused
about shadow page tables for HVM guest and how they work.
Few of my questions are :
1. A shadow page table, is a copy of the guest page table, with actual machine 
frame numbers (MFN), as against the physical page number(PFN) in case of 
Do the shadow page tables write protect each of the PTE it contains, or only 
the pages containing the "guest page table" are write protected (to check if 
the guest has modified any entry)? 

2. I know that live migration is supported on xen, but not sure if it works for 
HVM guests. In this case also, xen will need to keep a shadow page table, which 
should detect which pages have been modified since the last time the pages were 
migrated. For this, shadow page table should mark all the PTEs as write 
protected. Does xen implement live migration of HVM guests in this way ? 
If yes, then is this shadow table same as the one used in (1), or there are 
multiple copies of the shadow tables for different purposes?



Xen-devel mailing list