* Re: doubt on domU segment mappings
2008-07-21 16:50 doubt on domU segment mappings Sandesh
@ 2008-07-21 16:42 ` Samuel Thibault
2008-07-21 17:04 ` Sandesh
0 siblings, 1 reply; 13+ messages in thread
From: Samuel Thibault @ 2008-07-21 16:42 UTC (permalink / raw)
To: Sandesh; +Cc: xen-devel@lists.xensource.com
Sandesh, le Mon 21 Jul 2008 22:20:28 +0530, a écrit :
> Can someone please tell me if the segment mappings like kernel_seg,
> ramdisk_seg, pgtables_seg, start_info_seg, etc.. are static or are they
> subjected to change, in the sense the are the page table entries in dom0
> mapping these segments change or do they remain static??
These are constructed by the PV domain builder just for the domU. DomU
is then free to do whatever it wants with it, dom0 doesn't care at all.
In the PV-GRUB case for instance, it is completely rebuilt from within
the domU.
Samuel
^ permalink raw reply [flat|nested] 13+ messages in thread
* doubt on domU segment mappings
@ 2008-07-21 16:50 Sandesh
2008-07-21 16:42 ` Samuel Thibault
0 siblings, 1 reply; 13+ messages in thread
From: Sandesh @ 2008-07-21 16:50 UTC (permalink / raw)
To: xen-devel@lists.xensource.com
Hi all,
Can someone please tell me if the segment mappings like kernel_seg,
ramdisk_seg, pgtables_seg, start_info_seg, etc.. are static or are they
subjected to change, in the sense the are the page table entries in dom0
mapping these segments change or do they remain static??
Any hints or reference regarding this is greatly appreciated.
Thanks in advance.
Regards,
Sandesh
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: doubt on domU segment mappings
2008-07-21 17:04 ` Sandesh
@ 2008-07-21 16:55 ` Samuel Thibault
2008-07-21 17:13 ` Sandesh
2008-07-21 18:51 ` Sandesh
2008-07-21 17:08 ` Sandesh
1 sibling, 2 replies; 13+ messages in thread
From: Samuel Thibault @ 2008-07-21 16:55 UTC (permalink / raw)
To: Sandesh; +Cc: xen-devel@lists.xensource.com
Sandesh, le Mon 21 Jul 2008 22:34:33 +0530, a écrit :
> > These are constructed by the PV domain builder just for the domU.
> > DomU
> > is then free to do whatever it wants with it, dom0 doesn't care at
> > all
> but aren't these mappings in the dom0 page tables?
Just temporarily when the domain builder fills them, but as soon as it's
built, they are unmapped.
> Once the domU is running how can i change them?
What for?
> like how will i know which entries in the dom0 pgtables corresponds to
> kernel_seg or ramdisk_seg and so on..
Again, dom0 doesn't map them any more, it doesn't need them any more.
Samuel
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: doubt on domU segment mappings
2008-07-21 17:08 ` Sandesh
@ 2008-07-21 17:00 ` Samuel Thibault
2008-07-21 17:14 ` Sandesh
0 siblings, 1 reply; 13+ messages in thread
From: Samuel Thibault @ 2008-07-21 17:00 UTC (permalink / raw)
To: Sandesh; +Cc: xen-devel@lists.xensource.com
Sandesh, le Mon 21 Jul 2008 22:38:15 +0530, a écrit :
> On Mon, 2008-07-21 at 22:34 +0530, Sandesh wrote:
> > thanks for the reply...
> >
> > > These are constructed by the PV domain builder just for the domU.
> > > DomU
> > > is then free to do whatever it wants with it, dom0 doesn't care at
> > > all
> > but aren't these mappings in the dom0 page tables?? Once the domU is
> > running how can i change them? like how will i know which entries in the
> > dom0 pgtables corresponds to kernel_seg or ramdisk_seg and so on..
> i want to access these mappings from the hypervisor once domU is booted,
What for? What is your domU guest?
Samuel
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: doubt on domU segment mappings
2008-07-21 16:42 ` Samuel Thibault
@ 2008-07-21 17:04 ` Sandesh
2008-07-21 16:55 ` Samuel Thibault
2008-07-21 17:08 ` Sandesh
0 siblings, 2 replies; 13+ messages in thread
From: Sandesh @ 2008-07-21 17:04 UTC (permalink / raw)
To: Samuel Thibault; +Cc: xen-devel@lists.xensource.com
thanks for the reply...
> These are constructed by the PV domain builder just for the domU.
> DomU
> is then free to do whatever it wants with it, dom0 doesn't care at
> all
but aren't these mappings in the dom0 page tables?? Once the domU is
running how can i change them? like how will i know which entries in the
dom0 pgtables corresponds to kernel_seg or ramdisk_seg and so on..
Regards,
Sandesh
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: doubt on domU segment mappings
2008-07-21 17:04 ` Sandesh
2008-07-21 16:55 ` Samuel Thibault
@ 2008-07-21 17:08 ` Sandesh
2008-07-21 17:00 ` Samuel Thibault
1 sibling, 1 reply; 13+ messages in thread
From: Sandesh @ 2008-07-21 17:08 UTC (permalink / raw)
To: Samuel Thibault; +Cc: xen-devel@lists.xensource.com
On Mon, 2008-07-21 at 22:34 +0530, Sandesh wrote:
> thanks for the reply...
>
> > These are constructed by the PV domain builder just for the domU.
> > DomU
> > is then free to do whatever it wants with it, dom0 doesn't care at
> > all
> but aren't these mappings in the dom0 page tables?? Once the domU is
> running how can i change them? like how will i know which entries in the
> dom0 pgtables corresponds to kernel_seg or ramdisk_seg and so on..
i want to access these mappings from the hypervisor once domU is booted,
not from domU guest kernel. So in that perspective how will i know which
entries point to respective segments.
>
> Regards,
> Sandesh
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: doubt on domU segment mappings
2008-07-21 17:13 ` Sandesh
@ 2008-07-21 17:08 ` Samuel Thibault
2008-07-21 17:36 ` Sandesh
0 siblings, 1 reply; 13+ messages in thread
From: Samuel Thibault @ 2008-07-21 17:08 UTC (permalink / raw)
To: Sandesh; +Cc: xen-devel@lists.xensource.com
Sandesh, le Mon 21 Jul 2008 22:43:13 +0530, a écrit :
> > > Once the domU is running how can i change them?
> >
> > What for?
> basically right after shutdown with poweroff = 'preserve' option i want
> to reboot the domU without having to going through the whole domain
> building process. So i need to load the different domU segments again,
> or at least the pt_base mapping.
Well the problem is that the domU most probably has destroyed it
completely already.
> > > like how will i know which entries in the dom0 pgtables corresponds to
> > > kernel_seg or ramdisk_seg and so on..
> >
> > Again, dom0 doesn't map them any more, it doesn't need them any more.
> then how will the domU kernel memory is accessed? are they mapped to the
> domU pg_tables?
Yes. No need for anybody else to access it (except PV interfaces, but
then the MFNs or grants are explicitely given by the domU).
Samuel
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: doubt on domU segment mappings
2008-07-21 16:55 ` Samuel Thibault
@ 2008-07-21 17:13 ` Sandesh
2008-07-21 17:08 ` Samuel Thibault
2008-07-21 18:51 ` Sandesh
1 sibling, 1 reply; 13+ messages in thread
From: Sandesh @ 2008-07-21 17:13 UTC (permalink / raw)
To: Samuel Thibault; +Cc: xen-devel@lists.xensource.com
On Mon, 2008-07-21 at 17:55 +0100, Samuel Thibault wrote:
> Sandesh, le Mon 21 Jul 2008 22:34:33 +0530, a écrit :
> > > These are constructed by the PV domain builder just for the domU.
> > > DomU
> > > is then free to do whatever it wants with it, dom0 doesn't care at
> > > all
> > but aren't these mappings in the dom0 page tables?
>
> Just temporarily when the domain builder fills them, but as soon as it's
> built, they are unmapped.
>
> > Once the domU is running how can i change them?
>
> What for?
basically right after shutdown with poweroff = 'preserve' option i want
to reboot the domU without having to going through the whole domain
building process. So i need to load the different domU segments again,
or at least the pt_base mapping.
>
> > like how will i know which entries in the dom0 pgtables corresponds to
> > kernel_seg or ramdisk_seg and so on..
>
> Again, dom0 doesn't map them any more, it doesn't need them any more.
then how will the domU kernel memory is accessed? are they mapped to the
domU pg_tables?
>
> Samuel
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: doubt on domU segment mappings
2008-07-21 17:00 ` Samuel Thibault
@ 2008-07-21 17:14 ` Sandesh
0 siblings, 0 replies; 13+ messages in thread
From: Sandesh @ 2008-07-21 17:14 UTC (permalink / raw)
To: Samuel Thibault; +Cc: xen-devel@lists.xensource.com
On Mon, 2008-07-21 at 18:00 +0100, Samuel Thibault wrote:
> Sandesh, le Mon 21 Jul 2008 22:38:15 +0530, a écrit :
> > On Mon, 2008-07-21 at 22:34 +0530, Sandesh wrote:
> > > thanks for the reply...
> > >
> > > > These are constructed by the PV domain builder just for the domU.
> > > > DomU
> > > > is then free to do whatever it wants with it, dom0 doesn't care at
> > > > all
> > > but aren't these mappings in the dom0 page tables?? Once the domU is
> > > running how can i change them? like how will i know which entries in the
> > > dom0 pgtables corresponds to kernel_seg or ramdisk_seg and so on..
> > i want to access these mappings from the hypervisor once domU is booted,
>
> What for? What is your domU guest?
domU guest is linux 2.8.18.1 hypervisor kernel.
>
> Samuel
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: doubt on domU segment mappings
2008-07-21 17:36 ` Sandesh
@ 2008-07-21 17:36 ` Samuel Thibault
0 siblings, 0 replies; 13+ messages in thread
From: Samuel Thibault @ 2008-07-21 17:36 UTC (permalink / raw)
To: Sandesh; +Cc: xen-devel@lists.xensource.com
Sandesh, le Mon 21 Jul 2008 23:06:31 +0530, a écrit :
> On Mon, 2008-07-21 at 18:08 +0100, Samuel Thibault wrote:
> > > or at least the pt_base mapping.
> >
> > Well the problem is that the domU most probably has destroyed it
> > completely already.
> can't i preserve them, at least the base pointers??? :)
> can u just point to me where these segment mappings are recreated in
> domU(linux 2.6.18.1).
Linux domU starts in head-xen.S's startup_32, which calls start_kernel,
which itself becomes the idle thread, so I guess it actually preserves
it. As for the pt_base address, you can get it from linux itself from
the xen_start_info structure. There is no way to get that from other
domains.
> > > > Again, dom0 doesn't map them any more, it doesn't need them any
> > more.
> > > then how will the domU kernel memory is accessed? are they mapped to
> > the
> > > domU pg_tables?
> so even pt_base becomes invalid once domU has booted??
DomU is free to do so, yes.
Samuel
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: doubt on domU segment mappings
2008-07-21 17:08 ` Samuel Thibault
@ 2008-07-21 17:36 ` Sandesh
2008-07-21 17:36 ` Samuel Thibault
0 siblings, 1 reply; 13+ messages in thread
From: Sandesh @ 2008-07-21 17:36 UTC (permalink / raw)
To: Samuel Thibault; +Cc: xen-devel@lists.xensource.com
On Mon, 2008-07-21 at 18:08 +0100, Samuel Thibault wrote:
> > or at least the pt_base mapping.
>
> Well the problem is that the domU most probably has destroyed it
> completely already.
can't i preserve them, at least the base pointers??? :)
> > > Again, dom0 doesn't map them any more, it doesn't need them any
> more.
> > then how will the domU kernel memory is accessed? are they mapped to
> the
> > domU pg_tables?
so even pt_base becomes invalid once domU has booted??
can u just point to me where these segment mappings are recreated in
domU(linux 2.6.18.1).
Regards,
Sandesh
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: doubt on domU segment mappings
2008-07-21 18:51 ` Sandesh
@ 2008-07-21 18:51 ` Samuel Thibault
0 siblings, 0 replies; 13+ messages in thread
From: Samuel Thibault @ 2008-07-21 18:51 UTC (permalink / raw)
To: Sandesh; +Cc: xen-devel@lists.xensource.com
Sandesh, le Tue 22 Jul 2008 00:21:54 +0530, a écrit :
> On Mon, 2008-07-21 at 17:55 +0100, Samuel Thibault wrote:
> > Sandesh, le Mon 21 Jul 2008 22:34:33 +0530, a écrit :
> > > > These are constructed by the PV domain builder just for the domU.
> > > > DomU
> > > > is then free to do whatever it wants with it, dom0 doesn't care at
> > > > all
> > > but aren't these mappings in the dom0 page tables?
> >
> > Just temporarily when the domain builder fills them, but as soon as it's
> > built, they are unmapped.
> can u just point me where the segments are being unmapped??
xc_dom_release calls xc_dom_unmap_all()
> so far i have not come across the code achieving this functionality.
you should probably tune your grep.
Samuel
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: doubt on domU segment mappings
2008-07-21 16:55 ` Samuel Thibault
2008-07-21 17:13 ` Sandesh
@ 2008-07-21 18:51 ` Sandesh
2008-07-21 18:51 ` Samuel Thibault
1 sibling, 1 reply; 13+ messages in thread
From: Sandesh @ 2008-07-21 18:51 UTC (permalink / raw)
To: Samuel Thibault; +Cc: xen-devel@lists.xensource.com
On Mon, 2008-07-21 at 17:55 +0100, Samuel Thibault wrote:
> Sandesh, le Mon 21 Jul 2008 22:34:33 +0530, a écrit :
> > > These are constructed by the PV domain builder just for the domU.
> > > DomU
> > > is then free to do whatever it wants with it, dom0 doesn't care at
> > > all
> > but aren't these mappings in the dom0 page tables?
>
> Just temporarily when the domain builder fills them, but as soon as it's
> built, they are unmapped.
hi samuel,
can u just point me where the segments are being unmapped??
so far i have not come across the code achieving this functionality.
Thanks a lot,
Regards,
Sandesh
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2008-07-21 18:51 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-21 16:50 doubt on domU segment mappings Sandesh
2008-07-21 16:42 ` Samuel Thibault
2008-07-21 17:04 ` Sandesh
2008-07-21 16:55 ` Samuel Thibault
2008-07-21 17:13 ` Sandesh
2008-07-21 17:08 ` Samuel Thibault
2008-07-21 17:36 ` Sandesh
2008-07-21 17:36 ` Samuel Thibault
2008-07-21 18:51 ` Sandesh
2008-07-21 18:51 ` Samuel Thibault
2008-07-21 17:08 ` Sandesh
2008-07-21 17:00 ` Samuel Thibault
2008-07-21 17:14 ` Sandesh
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.