WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Balloons, crash-dumps, populate-on-demand, and shared zero p

To: xen-devel@xxxxxxxxxxxxxxxxxxx, Paul Durrant <paul.durrant@xxxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Steven Smith <Steven.Smith@xxxxxxxxxxxxx>, Gianluca Guida <gianluca.guida@xxxxxxxxxxxxx>
Subject: [Xen-devel] Balloons, crash-dumps, populate-on-demand, and shared zero pages
From: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>
Date: Thu, 20 Aug 2009 11:18:07 +0100
Cc:
Delivery-date: Thu, 20 Aug 2009 03:18:30 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=POcP/eejgoU5o75WCwSda3iUwPtwI8fs8Hpfsvv5tT0=; b=p4rcobMoaVkxR2UnMu/UHgV/gVkO7LedrseuJoV2OzupMfA8/2cVSN9CyK+k2uxARR 2U4tOy7omZkvauHecURGXhi17uWBKaremnkurZSCi1dK1B1bXncUeOgcUs3NlGW4wUZq 3u7zY/+3lbToiq/lWacxJ6XZ8JzkHGO5DWlqM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=ZW5tJDG5m3C/EpQ0jX3hzTQMVwu6IEGXKKQlDPWX24N9b115XlZVitW7rbsjgXCPHd TBim95veNeYASz32QFH/Fdbbi2irE/k+ahr65MSlWSMo/ivmQS79ul9jUMDRc5xXl3gX 2EEQ/opHPI3XyqXa62zOTlIQUvPW4VgV97wf8=
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
Paul recently pointed out that a side-effect of having the balloon
driver replace guest p2m memory with empty space is that when Windows
does a crash dump (perhaps Linux too), when it reaches the pages in
the balloon, it will cause a page fault, which can cause cascading
crashes and prevent any useful information from reaching the dump
file.

After thinking about it for a bit, I wondered if it might be better to
replace the "populate-on-demand" concept with a
"shared-zero-populate-on-demand".  Reads to a PoD page would always
map to a read-only shared zero page (or superpage, as the case may
be).  We can change the balloon driver behavior to fill the p2m
entries for the balloon with zPoD entries instead of empy p2m entries.
 As a side-effect, the balloon driver no longer would need to
explicitly fill in the p2m entries with ram when deflating the
balloon; the tools already tell Xen about memory target increases, so
it can increase the PoD "cache"; the balloon driver would simply need
to free memory back to the kernel and it the balloon will be populated
on-demand by the guest.

Any thoughts?

 -George

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

<Prev in Thread] Current Thread [Next in Thread>