Question on save/restore mfn canonicalization
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
Quoted 10 lines · Andres Lagar-Cavilla
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, butxc_domain_restoreuncanonicalizes 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 thepfn_to_mfn_frame_list(_list)entries from "outside" and remove that code frompost_suspend, or will something break?
You'll break the ABI. I don't know of a reason why it's so inconsistent.
regards
john
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
Quoted 12 lines · John Levon
Quoted 3 lines · Andres Lagar-Cavilla
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, butxc_domain_restoreuncanonicalizes 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 thepfn_to_mfn_frame_list(_list)entries from "outside" and remove that code frompost_suspend, or will something break?You'll break the ABI. I don't know of a reason why it's so inconsistent.
regards
john
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
Quoted 30 lines · Andres Lagar-Cavilla
Well, when you're in school you don't have to care about breaking ABI's :) So, the answer is then "no particular reason"?
AndresQuoted 15 lines · John Levon
Quoted 11 lines · Andres Lagar-Cavilla
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, butxc_domain_restoreuncanonicalizes 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 thepfn_to_mfn_frame_list(_list)entries from "outside" and remove that code frompost_suspend, or will something break?Quoted 5 lines
You'll break the ABI. I don't know of a reason why it's so inconsistent.
regards
john_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel