From: Glauber de Oliveira Costa <gcosta@redhat.com>
To: Keir Fraser <keir@xensource.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: Re: [PATCH] make ballooning up to maxmem work
Date: Wed, 22 Nov 2006 10:47:45 -0200 [thread overview]
Message-ID: <20061122124745.GC2496@redhat.com> (raw)
In-Reply-To: <C189E28F.4DF0%keir@xensource.com>
On Wed, Nov 22, 2006 at 11:18:39AM +0000, Keir Fraser wrote:
>
>
>
> On 22/11/06 10:40, "Glauber de Oliveira Costa" <gcosta@redhat.com> wrote:
>
> >> case XENMEM_current_reservation:
> >> case XENMEM_maximum_reservation:
> >> + case XENMEM_maximum_memory:
> >> if ( copy_from_guest(&domid, arg, 1) )
> >> return -EFAULT;
> >
> > This still makes use of d->max_pages in return. Isn't it supposed to
> > change in the future too? IIRC, according to Keir, max_pages will track
> > the _current_ number of pages, differing from tot_pages only in a brief
> > timeframe in which you balloon, but tot_pages was not yet updated.
>
> This adds a level of indirection at least, but really we may as well
> implement the XENMEM_memory_map hypercall. Then there is no guest
> modification required.
We may need guest modifications anyway, since currently no actions are
performed if the memory_map call does not return ENOSYS.
--
Glauber de Oliveira Costa
Red Hat Inc.
"Free as in Freedom"
prev parent reply other threads:[~2006-11-22 12:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-21 21:00 [PATCH] make ballooning up to maxmem work Rik van Riel
2006-11-22 10:40 ` Glauber de Oliveira Costa
2006-11-22 11:18 ` Keir Fraser
2006-11-22 12:47 ` Glauber de Oliveira Costa [this message]
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=20061122124745.GC2496@redhat.com \
--to=gcosta@redhat.com \
--cc=keir@xensource.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.