* Mapping pages from dom0
@ 2005-02-03 23:34 Jacob Gorm Hansen
2005-02-04 0:04 ` Mark Williamson
2005-02-04 15:30 ` John L Griffin
0 siblings, 2 replies; 7+ messages in thread
From: Jacob Gorm Hansen @ 2005-02-03 23:34 UTC (permalink / raw)
To: xen-devel
hi,
I am mapping some pages in a domU from dom0 userspace. Doing that once I
know the page numbers is fairly trivial, but what is the recommended way
of communicating one or more page numbers from domU to dom0, hopefully
without having to modify xend?
Right now I just copy&paste from the console, but that seems uncool
somehow ;-)
thanks,
Jacob
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Mapping pages from dom0
2005-02-03 23:34 Mapping pages from dom0 Jacob Gorm Hansen
@ 2005-02-04 0:04 ` Mark Williamson
2005-02-04 0:32 ` Jacob Gorm Hansen
2005-02-04 15:30 ` John L Griffin
1 sibling, 1 reply; 7+ messages in thread
From: Mark Williamson @ 2005-02-04 0:04 UTC (permalink / raw)
To: xen-devel; +Cc: Jacob Gorm Hansen
> I am mapping some pages in a domU from dom0 userspace. Doing that once I
> know the page numbers is fairly trivial, but what is the recommended way
> of communicating one or more page numbers from domU to dom0, hopefully
> without having to modify xend?
Hrrrm. There was talk of a simple generic control message that could be used
for this sort of thing but I'm not sure if it's been implemented.
> Right now I just copy&paste from the console, but that seems uncool
> somehow ;-)
There's always the network, although that's kinda gross ;-)
Cheers,
Mark
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Mapping pages from dom0
2005-02-04 0:04 ` Mark Williamson
@ 2005-02-04 0:32 ` Jacob Gorm Hansen
2005-02-04 0:42 ` Jacob Gorm Hansen
0 siblings, 1 reply; 7+ messages in thread
From: Jacob Gorm Hansen @ 2005-02-04 0:32 UTC (permalink / raw)
To: Mark Williamson; +Cc: xen-devel
Mark Williamson wrote:
>>I am mapping some pages in a domU from dom0 userspace. Doing that once I
>>know the page numbers is fairly trivial, but what is the recommended way
>>of communicating one or more page numbers from domU to dom0, hopefully
>>without having to modify xend?
>
>
> Hrrrm. There was talk of a simple generic control message that could be used
> for this sort of thing but I'm not sure if it's been implemented.
Sad. I tried sticking this at the last four bytes of the shared_info
page, but apparently that one gets cleared every now and then :-(
Jacob
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Mapping pages from dom0
2005-02-04 0:32 ` Jacob Gorm Hansen
@ 2005-02-04 0:42 ` Jacob Gorm Hansen
0 siblings, 0 replies; 7+ messages in thread
From: Jacob Gorm Hansen @ 2005-02-04 0:42 UTC (permalink / raw)
To: Jacob Gorm Hansen; +Cc: Mark Williamson, xen-devel
Jacob Gorm Hansen wrote:
> Mark Williamson wrote:
>
>>> I am mapping some pages in a domU from dom0 userspace. Doing that once I
>>> know the page numbers is fairly trivial, but what is the recommended way
>>> of communicating one or more page numbers from domU to dom0, hopefully
>>> without having to modify xend?
>>
>>
>>
>> Hrrrm. There was talk of a simple generic control message that could
>> be used for this sort of thing but I'm not sure if it's been implemented.
>
>
> Sad. I tried sticking this at the last four bytes of the shared_info
> page, but apparently that one gets cleared every now and then :-(
Anyway, for now I guess I can just extend the shared_info_t struct and
things should work, but in the longer run it might be nice to have some
kind of simple mechanism for doing this stuff.
Jacob
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Mapping pages from dom0
@ 2005-02-04 1:00 Ian Pratt
0 siblings, 0 replies; 7+ messages in thread
From: Ian Pratt @ 2005-02-04 1:00 UTC (permalink / raw)
To: Jacob Gorm Hansen, Mark Williamson; +Cc: xen-devel
> > Hrrrm. There was talk of a simple generic control message
> that could be used
> > for this sort of thing but I'm not sure if it's been implemented.
>
> Sad. I tried sticking this at the last four bytes of the shared_info
> page, but apparently that one gets cleared every now and then :-(
The last half of the shared_info page is the control message ring, so
this won't work.
Ian
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Mapping pages from dom0
2005-02-03 23:34 Mapping pages from dom0 Jacob Gorm Hansen
2005-02-04 0:04 ` Mark Williamson
@ 2005-02-04 15:30 ` John L Griffin
2005-02-04 16:33 ` Mark A. Williamson
1 sibling, 1 reply; 7+ messages in thread
From: John L Griffin @ 2005-02-04 15:30 UTC (permalink / raw)
To: xen-devel
> I am mapping some pages in a domU from dom0 userspace. Doing that once I
> know the page numbers is fairly trivial, but what is the recommended way
> of communicating one or more page numbers from domU to dom0, hopefully
> without having to modify xend?
I am curious: I'm just starting to look into the mechanisms by which pages
are shared between domains. The above question surprised me, because I'd
assumed there existed some sort of anonymous "I want to map a page that
domain N has exported" method to bootstrap direct interdomain
communication between unprivileged domains.
Looking through the code now, could someone please comment on the
correctness (or, more importantly, uncorrectness) of the following
statements?
* It is possible for two unprivileged domains to share pages, without
needing any intervention from a privileged domain, as long as each side
knows in advance the addresses of the pages to be shared?
* The grant_table_op hypervisor call is used by Domain-A to notify Xen
that "yes, I want to allow Domain-B to map this page"? Then, the
update_va_mapping hypervisor call is used by Domain-B to map the page?
* grant_table_op cannot be used by Domain-A to revoke Domain-B's mapping
of the page? (I.e., all the "unmap grant ref" flag says is "cause all
future Domain-B update_va_mapping calls, regarding mapping this page, to
fail"?)
* Jacob's problem (dom0 needing to know the addresses of pages shared by a
domU) is avoided during virtual network and virtual block device setup,
because the pages to be shared are somehow either set up by Xen or shared
through the "control interface" channel to Xend?
Thanks,
JLG
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Mapping pages from dom0
2005-02-04 15:30 ` John L Griffin
@ 2005-02-04 16:33 ` Mark A. Williamson
0 siblings, 0 replies; 7+ messages in thread
From: Mark A. Williamson @ 2005-02-04 16:33 UTC (permalink / raw)
To: xen-devel; +Cc: John L Griffin
> I am curious: I'm just starting to look into the mechanisms by which pages
> are shared between domains. The above question surprised me, because I'd
> assumed there existed some sort of anonymous "I want to map a page that
> domain N has exported" method to bootstrap direct interdomain
> communication between unprivileged domains.
To map another domain's memory you have to know the machine address of the
page frame in question.
> Looking through the code now, could someone please comment on the
> correctness (or, more importantly, uncorrectness) of the following
> statements?
Here goes...
> * It is possible for two unprivileged domains to share pages, without
> needing any intervention from a privileged domain, as long as each side
> knows in advance the addresses of the pages to be shared?
Not yet. Grant tables should enable this but are not completed yet. For now,
you need to be a privileged domain to map another domain's memory.
> * The grant_table_op hypervisor call is used by Domain-A to notify Xen
> that "yes, I want to allow Domain-B to map this page"? Then, the
> update_va_mapping hypervisor call is used by Domain-B to map the page?
It will be, when the grant tables stuff is finished.
> * grant_table_op cannot be used by Domain-A to revoke Domain-B's mapping
> of the page? (I.e., all the "unmap grant ref" flag says is "cause all
> future Domain-B update_va_mapping calls, regarding mapping this page, to
> fail"?)
I think the plan is to enable domains to appeal to domain 0 if a mapping that
should have been relinquished by another domain is not. Some sort of
algorithm is then to be used by management code in domain 0 to decide what to
do about it.
> * Jacob's problem (dom0 needing to know the addresses of pages shared by a
> domU) is avoided during virtual network and virtual block device setup,
> because the pages to be shared are somehow either set up by Xen or shared
> through the "control interface" channel to Xend?
The control interface protocols for each of the device interfaces include a
message from the frontend that tells Xend where the shared memory frame for
the device interface's comms ring is placed (in machine addresses). Xend
then sends this address to the backend so it knows where the interface ring
is.
Messages passed over a device interface ring contain machine addresses that
the backend can use to map the actual IO destination
Cheers,
Mark
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-02-04 16:33 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-03 23:34 Mapping pages from dom0 Jacob Gorm Hansen
2005-02-04 0:04 ` Mark Williamson
2005-02-04 0:32 ` Jacob Gorm Hansen
2005-02-04 0:42 ` Jacob Gorm Hansen
2005-02-04 15:30 ` John L Griffin
2005-02-04 16:33 ` Mark A. Williamson
-- strict thread matches above, loose matches on Subject: below --
2005-02-04 1:00 Ian Pratt
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.