All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: David Vrabel <david.vrabel@citrix.com>
Cc: xen-devel@lists.xenproject.org,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>
Subject: Re: [PATCH] xen/balloon: set ballooned out pages as invalid in p2m
Date: Tue, 1 Jul 2014 10:06:43 -0400	[thread overview]
Message-ID: <20140701140643.GA21842@laptop.dumpdata.com> (raw)
In-Reply-To: <53B2BEF0.50109@citrix.com>

On Tue, Jul 01, 2014 at 03:00:16PM +0100, David Vrabel wrote:
> On 01/07/14 14:58, Konrad Rzeszutek Wilk wrote:
> > On Tue, Jul 01, 2014 at 02:37:48PM +0100, David Vrabel wrote:
> >> Since cd9151e26d31048b2b5e00fd02e110e07d2200c9 (xen/balloon: set a
> >> mapping for ballooned out pages), a ballooned out page had its entry
> >> in the p2m set to the MFN of one of the scratch pages.  This means
> >> that the p2m will contain many entries pointing to the same MFN.
> >>
> >> During a domain save, these many-to-one entries are not identified as
> >> such and the scratch page is saved multiple times. On restore the
> >> ballooned pages are populated with new frames and the domain may use
> >> up its allocation before all pages can be restored.
> >>
> >> Set ballooned out pages as INVALID_P2M_ENTRY in the p2m (as they were
> >> before), preventing them from being saved and re-populated on restore.
> >>
> > 
> > Won't that invalide the primal purpose of the scratch page code?
> > 
> > That is  cd9151e26d31048b2b5e00fd02e110e07d2200c9
> > 
> >     xen/balloon: set a mapping for ballooned out pages
> > " Allocate a page per cpu and map all the ballooned out pages to the
> >     corresponding mfn. Set the p2m accordingly. This way reading from a
> >     ballooned out page won't cause a kernel crash (see
> >     http://lists.xen.org/archives/html/xen-devel/2012-12/msg01154.html).
> > "
> > ?
> 
> No, because we still have a virtual mapping for the ballooned out page.

If you could add that comment in that would reflect that - IMHO
it would be good.

> 
> David

  reply	other threads:[~2014-07-01 14:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-01 13:37 [PATCH] xen/balloon: set ballooned out pages as invalid in p2m David Vrabel
2014-07-01 13:58 ` Konrad Rzeszutek Wilk
2014-07-01 14:00   ` David Vrabel
2014-07-01 14:06     ` Konrad Rzeszutek Wilk [this message]
2014-07-04 14:08       ` Stefano Stabellini
  -- strict thread matches above, loose matches on Subject: below --
2014-07-02  9:40 David Vrabel
2014-07-04 14:18 ` David Vrabel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140701140643.GA21842@laptop.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=david.vrabel@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.