Mime-version: 1.0
Sender: xen-devel-bounces@lists.xensource.com
Errors-To: xen-devel-bounces@lists.xensource.com
To: xen-devel@lists.xensource.com
List-Id: xen-devel@lists.xenproject.org
This is a multi-part message in MIME format.
--===============0712230193==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_00C5_01C7F51E.71C8D680"
This is a multi-part message in MIME format.
------=_NextPart_000_00C5_01C7F51E.71C8D680
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Current Xen design is that the guest domain have readonly access to the =
memory mapped for them. Documentation say it is not safe for them to =
be writable. Why?
Is it so as to trigger a trap exception whenever writing is made to it? =
This is the optimal answer :-).
And since it is not "safe" what checks are done in Xen hypervisor =
against these "dangers", ie, enumerate the potential dangers? I cannot =
think of any, as a newbie in Xen. My logic is that if the pages have =
been assigned as owned by a domain, just let it do whatever it wants to, =
and so therefore should not trigger any privilege trap condition (or VM =
exit condition, in the HVM case).
In the traditional Linux model, once a memory is mapped for user =
process, non-root user included, it can be mapped as writable. So why =
is this discrepancy in the case of Xen?
By taking away this readonly restriction, I think Xen hypervisor will =
have a lot of performance to gain. =20
Please share your thoughts? Apologies for the questions from a newbie.
------=_NextPart_000_00C5_01C7F51E.71C8D680
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Current Xen design is that the guest domain have =
readonly=20
access to the memory mapped for them. Documentation say it =
is not=20
safe for them to be writable. Why?
Is it so as to trigger a trap exception whenever =
writing is=20
made to it? This is the optimal answer :-).
And since it is not "safe" what checks are done in =
Xen=20
hypervisor against these "dangers", ie, enumerate the potential=20
dangers? I cannot think of any, as a newbie in =
Xen. My=20
logic is that if the pages have been assigned as owned by a domain, just =
let it=20
do whatever it wants to, and so therefore should not trigger any =
privilege trap=20
condition (or VM exit condition, in the HVM case).
In the traditional Linux model, once a memory is =
mapped for=20
user process, non-root user included, it can be mapped as=20
writable. So why is this discrepancy in the case of=20
Xen?
By taking away this readonly restriction, I think =
Xen=20
hypervisor will have a lot of performance to gain. =
Please share your thoughts? Apologies =
for the=20
questions from a newbie.
------=_NextPart_000_00C5_01C7F51E.71C8D680--
--===============0712230193==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
--===============0712230193==--