All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir.fraser@eu.citrix.com>
To: Jan Beulich <jbeulich@novell.com>, xen-devel@lists.xensource.com
Cc: joserenato.santos@hp.com
Subject: Re: tracking of Xen heap pages shared with guest
Date: Fri, 14 Mar 2008 13:48:27 +0000	[thread overview]
Message-ID: <C40032AB.15032%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <47DA8E83.76E4.0078.0@novell.com>

On 14/3/08 13:41, "Jan Beulich" <jbeulich@novell.com> wrote:

> Right, but the question was - what if the guest erroneously or
> maliciously frees the page? If there's indeed no extra reference, then
> the page (which Xen will continue to write to) may get assigned to a
> different domain, including dom0, and hence the whole system could
> get at risk.

It cannot be freed by the guest. Note that free_domheap_pages() is a no-op
for Xen-heap pages.

>> I'm no expert on xenoprof. I've cc'ed Renato.
>> 
>> Wouldn't dom0 mappings bump the page reference count, and this would prevent
>> the domU being destroyed (remember that non-empty domain page ownership
>> lists hold a domain reference)?
> 
> As I understand it, the pages get shared with dom0, so ownership also
> transfers to dom0, which doesn't prevent the guest from being fully
> destroyed.

Point out the specific lines of code that you think are offending and I'll
take a look.

 -- Keir

  reply	other threads:[~2008-03-14 13:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-14 12:59 tracking of Xen heap pages shared with guest Jan Beulich
2008-03-14 13:10 ` Keir Fraser
2008-03-14 13:41   ` Jan Beulich
2008-03-14 13:48     ` Keir Fraser [this message]
2008-03-14 14:07       ` Jan Beulich
2008-03-14 15:35         ` Keir Fraser

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=C40032AB.15032%keir.fraser@eu.citrix.com \
    --to=keir.fraser@eu.citrix.com \
    --cc=jbeulich@novell.com \
    --cc=joserenato.santos@hp.com \
    --cc=xen-devel@lists.xensource.com \
    /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.