All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jiang, Yunhong" <yunhong.jiang@intel.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>,
	Tim Deegan <Tim.Deegan@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: RE: [PATCH] Support swap a page from user space tools -- Was RE: [RFC][PATCH] Basic support for page offline
Date: Thu, 19 Mar 2009 17:57:36 +0800	[thread overview]
Message-ID: <E2263E4A5B2284449EEBD0AAB751098401C7EC069A@PDSMSX501.ccr.corp.intel.com> (raw)
In-Reply-To: <C5E7C4D2.57DF%keir.fraser@eu.citrix.com>

Keir Fraser <mailto:keir.fraser@eu.citrix.com> wrote:
> On 19/03/2009 09:32, "Tim Deegan" <Tim.Deegan@eu.citrix.com> wrote:
> 
>>>> - 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.
>>> 
>>> Yes, fixed and now named pte_addr as a uint64.
>> 
>> You made it an unsigned long, which is still smaller than a paddr_t on
>> PAE builds.  And you can't just make it 64 bits in that union without
>> breaking the ABI; you'll need to add a new interface somewhere.  Maybe
>> Keir can suggest a better place.
> 
> Firstly, the comment added to the header file is pretty rubbish. The
> description fits existing update methods such as
> MMU_NORMAL_PT_UPDATE, so
> based on that comment I could quite reasonably reject your
> patch on grounds
> that it is redundant.

I will update it. In fact, I didn't find a proper name for it. Maybe something like MMU_FOREIGN_PT_UPDATE? But it may still be confused as update pt to point memory belongs to other domain.

> 
> Secondly, the patch name says swap_page and a printk the patch
> adds refers
> to 'swap page'. What's being swapped? That's not the name of
> the operation,
> nor is swapping referred to in the description comment I mention above.
> 
> Thirdly, perhaps this makes more sense as a MMU_* op hanging off
> mmu_update()? That call takes pairs of u64 values, which could
> give you the
> space you require. Then you can add a nice comment explaining
> how your new
> command differs from MMU_NORMAL_PT_UPDATE.

I turn to the mmu_ext_op because it has only 1 entry left. So do you mean it is ok to be there?

- yhj

> 
> -- Keir

  reply	other threads:[~2009-03-19  9:57 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
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 [this message]
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=E2263E4A5B2284449EEBD0AAB751098401C7EC069A@PDSMSX501.ccr.corp.intel.com \
    --to=yunhong.jiang@intel.com \
    --cc=Tim.Deegan@eu.citrix.com \
    --cc=keir.fraser@eu.citrix.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.