From: Tim Deegan <Tim.Deegan@citrix.com>
To: "Jiang, Yunhong" <yunhong.jiang@intel.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Keir Fraser <Keir.Fraser@eu.citrix.com>
Subject: Re: [PATCH] Support swap a page from user space tools -- Was RE: [RFC][PATCH] Basic support for page offline
Date: Wed, 18 Mar 2009 17:34:35 +0000 [thread overview]
Message-ID: <20090318173435.GF11733@york.uk.xensource.com> (raw)
In-Reply-To: <E2263E4A5B2284449EEBD0AAB751098401C7E77E4E@PDSMSX501.ccr.corp.intel.com>
Hi,
At 10:24 +0000 on 18 Mar (1237371884), Jiang, Yunhong wrote:
> Tim, this is the implementation as discussed.
> The swap_page.patch is for HV side change, basically it call the mod_lx_entry to update the table.
That seems good. One or two nits with that patch:
- You're passing a physical address (of the PTE to update) in an MFN
field. That's not going to be big enough on all platforms. Also
it's pretty confusing.
- The "swap" operation takes the physical address of a PTE and a new
MFN. Why not a new PTE? And if it's going to be called "swap", why
not take the old PTE too and do an atomic update? (or just call it
something else and only take the new PTE?)
- Why the checks for the validity of the old MFN before the change?
What are you guarding against?
And please document the hypercall, specially since its side-effects
could be quite surprising.
> The free_page.patch is the function from user space tools to offlien a page.
This is much better than the previous version, thanks.
Cheers,
Tim.
>
> Thanks
> Yunhong Jiang
>
> Jiang, Yunhong <> wrote:
> > Tim Deegan <mailto:Tim.Deegan@citrix.com> wrote:
> >> At 14:37 +0000 on 19 Feb (1235054276), Jiang, Yunhong wrote:
> >>>
> >>>>> It should be possible to have the tools do all the PTE manipulations
> >>>>> with MMU update hypercalls (I think -- Keir may correct me here). Then
> >>>>> the final hypercall to surrender the page will fail if the grant tables
> >>>>> are wrong; if it does, put the PTEs back and fall back to a live
> >>>>> migration. Isn't that what your in-xen code does anyway?
> >>>
> >>> Tim, after checking the code more carefully, seems currently
> >> the MMU update hypercalls (including mod_lx_entry ) assume it
> >> is for current domain, while in our usage model, it will
> >> update MMU for other domain, so I will try to do following
> >> changes: 1) change mod_lx_entry() to get a domain parameter 2)
> >> Add a new hypercall (or a new command to do_mmu_update ) to
> >> update the MMU for other domain. I'm not sure if there are
> >> other usage model for such requirement, and if such changes
> >> acceptable? Any feedback is welcome.
> >>>
> >>
> >> Sorry for the delay -- I was travelling around the summit and this got
> >> lost. Yes, I think this is an OK approach. I doubt there will be many
> >> other users of such a hypercall since most OSes will get upset by their
> >> PTEs changing under their feet, but I prefer it to the current patch.
> >
> > Sure, I will do this way.
> >
> > Thanks
> > Yunhong Jiang
> >
> >>
> >> Cheers,
> >>
> >> Tim.
> >>
> >> --
> >> Tim Deegan <Tim.Deegan@citrix.com>
> >> Principal Software Engineer, Citrix Systems (R&D) Ltd.
> >> [Company #02300071, SL9 0DZ, UK.]
--
Tim Deegan <Tim.Deegan@citrix.com>
Principal Software Engineer, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 0DZ, UK.]
next prev parent reply other threads:[~2009-03-18 17:34 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-09 8:54 [RFC][PATCH] Basic support for page offline Jiang, Yunhong
2009-02-10 9:15 ` Tim Deegan
2009-02-10 9:29 ` Jiang, Yunhong
2009-02-10 9:42 ` Tim Deegan
2009-02-10 10:29 ` Keir Fraser
2009-02-10 21:09 ` Frank van der Linden
2009-02-11 0:16 ` Jiang, Yunhong
2009-02-11 0:39 ` Frank van der Linden
2009-02-11 1:08 ` Jiang, Yunhong
2009-02-11 4:08 ` Frank Van Der Linden
2009-02-13 17:03 ` Tim Deegan
2009-02-13 17:36 ` Keir Fraser
2009-02-15 9:39 ` Jiang, Yunhong
2009-02-15 9:48 ` Jiang, Yunhong
2009-02-16 14:31 ` Tim Deegan
2009-02-16 15:25 ` Jiang, Yunhong
2009-02-18 14:51 ` Jiang, Yunhong
2009-02-18 15:20 ` Tim Deegan
2009-02-19 8:44 ` Jiang, Yunhong
2009-02-19 14:37 ` Jiang, Yunhong
2009-03-02 11:56 ` Tim Deegan
2009-03-04 8:23 ` Jiang, Yunhong
2009-03-18 10:24 ` [PATCH] Support swap a page from user space tools -- Was " Jiang, Yunhong
2009-03-18 10:32 ` Jiang, Yunhong
2009-03-18 10:42 ` Keir Fraser
2009-03-18 17:34 ` Tim Deegan [this message]
2009-03-19 5:12 ` Jiang, Yunhong
2009-03-19 9:32 ` Tim Deegan
2009-03-19 9:45 ` Keir Fraser
2009-03-19 9:57 ` Jiang, Yunhong
2009-03-19 10:13 ` Keir Fraser
2009-03-19 13:01 ` Jiang, Yunhong
2009-03-19 13:22 ` Keir Fraser
2009-03-19 14:26 ` Jiang, Yunhong
2009-03-19 14:36 ` Keir Fraser
2009-03-19 14:42 ` Jiang, Yunhong
2009-03-19 14:48 ` Jiang, Yunhong
2009-03-19 16:45 ` Keir Fraser
2009-03-20 2:52 ` Jiang, Yunhong
2009-03-20 9:05 ` Keir Fraser
2009-03-20 9:16 ` Jiang, Yunhong
2009-03-20 9:28 ` Keir Fraser
2009-03-20 9:42 ` Re: [PATCH] Support swap a page from user space tools-- " Jan Beulich
2009-03-20 9:48 ` Keir Fraser
2009-03-20 9:44 ` Re: [PATCH] Support swap a page from user space tools -- " Jiang, Yunhong
2009-03-20 9:52 ` Keir Fraser
2009-03-20 9:37 ` Re: [PATCH] Support swap a page from user spacetools " Jan Beulich
2009-03-20 9:41 ` Jiang, Yunhong
2009-03-20 9:42 ` Keir Fraser
2009-03-20 9:52 ` Jiang, Yunhong
2009-03-20 9:58 ` Keir Fraser
2009-03-20 9:59 ` Jiang, Yunhong
2009-03-20 10:03 ` Keir Fraser
2009-03-20 10:05 ` Jiang, Yunhong
2009-03-20 10:07 ` Keir Fraser
2009-03-20 10:13 ` Jiang, Yunhong
2009-03-20 10:21 ` Keir Fraser
2009-03-20 10:36 ` Jiang, Yunhong
2009-03-20 10:40 ` Keir Fraser
2009-03-20 10:19 ` Keir Fraser
2009-03-19 9:48 ` [PATCH] Support swap a page from user space tools " Jiang, Yunhong
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=20090318173435.GF11733@york.uk.xensource.com \
--to=tim.deegan@citrix.com \
--cc=Keir.Fraser@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
--cc=yunhong.jiang@intel.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.