All of lore.kernel.org
 help / color / mirror / Atom feed
* Question on save/restore mfn canonicalization
@ 2007-09-28 16:25 Andres Lagar-Cavilla
  2007-09-28 17:54 ` John Levon
  0 siblings, 1 reply; 4+ messages in thread
From: Andres Lagar-Cavilla @ 2007-09-28 16:25 UTC (permalink / raw)
  To: xen-devel

While exploring the paravirt save/restore code path, I noted a 
(seemingly) lack of consistency between where/who canonicalizes 
something and who un-canonicalizes. For example, the guest kernel 
canonicalizes the store and console mfn's in pre_suspend, but 
xc_domain_restore uncanonicalizes them before scheduling back the 
restored guest.
The question is if there is a mandatory reason for this, or is just the 
way the code was written. Can I, e.g, fill the 
pfn_to_mfn_frame_list(_list) entries from "outside" and remove that code 
from post_suspend, or will something break?

Thanks!
Andres

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question on save/restore mfn canonicalization
  2007-09-28 16:25 Question on save/restore mfn canonicalization Andres Lagar-Cavilla
@ 2007-09-28 17:54 ` John Levon
  2007-09-28 18:55   ` Andres Lagar-Cavilla
  0 siblings, 1 reply; 4+ messages in thread
From: John Levon @ 2007-09-28 17:54 UTC (permalink / raw)
  To: Andres Lagar-Cavilla; +Cc: xen-devel

On Fri, Sep 28, 2007 at 12:25:28PM -0400, Andres Lagar-Cavilla wrote:

> While exploring the paravirt save/restore code path, I noted a 
> (seemingly) lack of consistency between where/who canonicalizes 
> something and who un-canonicalizes. For example, the guest kernel 
> canonicalizes the store and console mfn's in pre_suspend, but 
> xc_domain_restore uncanonicalizes them before scheduling back the 
> restored guest.
> The question is if there is a mandatory reason for this, or is just the 
> way the code was written. Can I, e.g, fill the 
> pfn_to_mfn_frame_list(_list) entries from "outside" and remove that code 
> from post_suspend, or will something break?

You'll break the ABI. I don't know of a reason why it's so inconsistent.

regards
john

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question on save/restore mfn canonicalization
  2007-09-28 17:54 ` John Levon
@ 2007-09-28 18:55   ` Andres Lagar-Cavilla
  2007-09-29  6:46     ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Andres Lagar-Cavilla @ 2007-09-28 18:55 UTC (permalink / raw)
  To: John Levon; +Cc: xen-devel

Well, when you're in school you don't have to care about breaking ABI's :)
So, the answer is then "no particular reason"?
Andres
John Levon wrote:
> On Fri, Sep 28, 2007 at 12:25:28PM -0400, Andres Lagar-Cavilla wrote:
>
>   
>> While exploring the paravirt save/restore code path, I noted a 
>> (seemingly) lack of consistency between where/who canonicalizes 
>> something and who un-canonicalizes. For example, the guest kernel 
>> canonicalizes the store and console mfn's in pre_suspend, but 
>> xc_domain_restore uncanonicalizes them before scheduling back the 
>> restored guest.
>> The question is if there is a mandatory reason for this, or is just the 
>> way the code was written. Can I, e.g, fill the 
>> pfn_to_mfn_frame_list(_list) entries from "outside" and remove that code 
>> from post_suspend, or will something break?
>>     
>
> You'll break the ABI. I don't know of a reason why it's so inconsistent.
>
> regards
> john
>   

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question on save/restore mfn canonicalization
  2007-09-28 18:55   ` Andres Lagar-Cavilla
@ 2007-09-29  6:46     ` Keir Fraser
  0 siblings, 0 replies; 4+ messages in thread
From: Keir Fraser @ 2007-09-29  6:46 UTC (permalink / raw)
  To: Andres Lagar-Cavilla, John Levon; +Cc: xen-devel

Yeah, it's just the way it got written long ago. It isn't as nice as it
could be, but it can't be changed now.

 -- Keir

On 28/9/07 19:55, "Andres Lagar-Cavilla" <andreslc@cs.toronto.edu> wrote:

> Well, when you're in school you don't have to care about breaking ABI's :)
> So, the answer is then "no particular reason"?
> Andres
> John Levon wrote:
>> On Fri, Sep 28, 2007 at 12:25:28PM -0400, Andres Lagar-Cavilla wrote:
>> 
>>   
>>> While exploring the paravirt save/restore code path, I noted a
>>> (seemingly) lack of consistency between where/who canonicalizes
>>> something and who un-canonicalizes. For example, the guest kernel
>>> canonicalizes the store and console mfn's in pre_suspend, but
>>> xc_domain_restore uncanonicalizes them before scheduling back the
>>> restored guest.
>>> The question is if there is a mandatory reason for this, or is just the
>>> way the code was written. Can I, e.g, fill the
>>> pfn_to_mfn_frame_list(_list) entries from "outside" and remove that code
>>> from post_suspend, or will something break?
>>>     
>> 
>> You'll break the ABI. I don't know of a reason why it's so inconsistent.
>> 
>> regards
>> john
>>   
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-09-29  6:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-28 16:25 Question on save/restore mfn canonicalization Andres Lagar-Cavilla
2007-09-28 17:54 ` John Levon
2007-09-28 18:55   ` Andres Lagar-Cavilla
2007-09-29  6:46     ` Keir Fraser

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.