Page tables in Xen
Hi,
I have a question about memory page tables in Xen. As far as I understood, every modification
to page table will go through Xen(hypervisor). Is it so that all page tables are actually allocated
in Xen(hypervisor) instead of guest OS(domain)? Also, is it the case that Xen(hypervisor) needs to
maintain a page table for each process running in every domain?
Thanks
Haifeng
Quoted 9 lines · Haifeng He
Hi,
I have a question about memory page tables in Xen. As far as I understood, every modification
to page table will go through Xen(hypervisor). Is it so that all page tables are actually allocated
in Xen(hypervisor) instead of guest OS(domain)? Also, is it the case that Xen(hypervisor) needs to
maintain a page table for each process running in every domain?
In which context you are asking this? HVM guests or PV guests?
Thanks
Quoted 10 lines
Thanks
Haifeng
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Signature · 5 lines
--
pradeep singh rautela
"question = ( to ) ? be : ! be;"
-- Wm. ShakespeareIn my understanding, in PV, page table is allocated within guest OS, however, every update will go through xen via explicit hypercalls. in HVM, those update will be intercepted by xen.
Please correct me if I'm wrong.
Quoted 10 lines · Haifeng He
Hi,
I have a question about memory page tables in Xen. As far as I understood, every modification
to page table will go through Xen(hypervisor). Is it so that all page tables are actually allocated
in Xen(hypervisor) instead of guest OS(domain)? Also, is it the case that Xen(hypervisor) needs to
maintain a page table for each process running in every domain?
Quoted 9 lines
Thanks
Haifeng
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Thanks for answering my question. I am talking about PV mode. What about shadow page table? Does it mean, Xen will keep (real) copies of page tables?
Thanks
Haifeng
Quoted 34 lines · weiming
In my understanding, in PV, page table is allocated within guest OS, however, every update will go through xen via explicit hypercalls. in HVM, those update will be intercepted by xen.
Please correct me if I'm wrong.
Quoted 23 lines · Haifeng He
Hi,
I have a question about memory page tables in Xen. As far as I understood, every modification
to page table will go through Xen(hypervisor). Is it so that all page tables are actually allocated
in Xen(hypervisor) instead of guest OS(domain)? Also, is it the case that Xen(hypervisor) needs to
maintain a page table for each process running in every domain?Thanks
Haifeng
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 2 lines · Haifeng He
Thanks for answering my question. I am talking about PV mode. What about shadow page table? Does it mean, Xen will keep (real) copies of page tables?
Shadown page tables are employed in HVM guests not PV guests. OV guests still employ p2v m2p mappings.
PV guests are aware of the virtualisation.
THanks
Quoted 47 lines
Thanks
Haifeng
Quoted 4 lines · weiming
In my understanding, in PV, page table is allocated within guest OS, however, every update will go through xen via explicit hypercalls. in HVM, those update will be intercepted by xen.
Quoted 30 lines
Please correct me if I'm wrong.
Quoted 23 lines · Haifeng He
Hi,
I have a question about memory page tables in Xen. As far as I understood, every modification
to page table will go through Xen(hypervisor). Is it so that all page tables are actually allocated
in Xen(hypervisor) instead of guest OS(domain)? Also, is it the case that Xen(hypervisor) needs to
maintain a page table for each process running in every domain?Thanks
Haifeng
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Signature · 5 lines
--
pradeep singh rautela
"question = ( to ) ? be : ! be;"
-- Wm. ShakespeareQuoted 5 lines · pradeep singh rautela
Quoted 2 lines · Haifeng He
Thanks for answering my question. I am talking about PV mode. What about shadow page table? Does it mean, Xen will keep (real) copies of page tables?
Shadown page tables are employed in HVM guests not PV guests.
regarding shadowed PV domains, there's still XENFEAT_auto_translated_physmap. but it's rather exotic and therefore rarely used.
regarding the original question: yes, this means xen keeps the real page tables, while guests map pseudo-physical (i.e. linear) memory in what they (may) believe to be the real ones.
regards,
daniel
Signature · 5 lines
Daniel Stodden LRR - Lehrstuhl für Rechnertechnik und Rechnerorganisation Institut für Informatik der TU München D-85748 Garching http://www.lrr.in.tum.de/~stodden mailto:[email protected] PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B
Hi,
Quoted 6 lines · Daniel Stodden
Quoted 5 lines · pradeep singh rautela
Quoted 2 lines · Haifeng He
Thanks for answering my question. I am talking about PV mode. What about shadow page table? Does it mean, Xen will keep (real) copies of page tables?
Shadown page tables are employed in HVM guests not PV guests.
Shadow pagetables are also used when doing live migration of PV guests, but they don't do the automatic translation and reference-counting that they do for HVM guests.
Quoted 3 lines
regarding shadowed PV domains, there's still
XENFEAT_auto_translated_physmap. but it's rather exotic and therefore rarely used.
And therefore, AFAIK, doesn't work.
Tim.
Signature · 3 lines
Tim Deegan <[email protected]> Principal Software Engineer, Citrix Systems. [Company #5334508: XenSource UK Ltd, reg'd c/o EC2Y 5EB, UK.]
Quoted 14 lines · Tim Deegan
Hi,
Quoted 6 lines · Daniel Stodden
Quoted 5 lines · pradeep singh rautela
Quoted 2 lines · Haifeng He
Thanks for answering my question. I am talking about PV mode. What about shadow page table? Does it mean, Xen will keep (real) copies of page tables?
Shadown page tables are employed in HVM guests not PV guests.
Shadow pagetables are also used when doing live migration of PV guests, but they don't do the automatic translation and reference-counting that they do for HVM guests.
Quoted 5 lines
Quoted 3 lines
regarding shadowed PV domains, there's still
XENFEAT_auto_translated_physmap. but it's rather exotic and therefore rarely used.And therefore, AFAIK, doesn't work.
Which is why people depending on it are stuck with 3.0.2.
regards,
Daniel
Signature · 5 lines
Daniel Stodden LRR - Lehrstuhl für Rechnertechnik und Rechnerorganisation Institut für Informatik der TU München D-85748 Garching http://www.lrr.in.tum.de/~stodden mailto:[email protected] PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B
Thanks all for the explanation.
Haifeng
Quoted 37 lines · Daniel Stodden
Quoted 14 lines · Tim Deegan
Hi,
Quoted 6 lines · Daniel Stodden
Quoted 5 lines · pradeep singh rautela
Quoted 2 lines · Haifeng He
Thanks for answering my question. I am talking about PV mode. What about shadow page table? Does it mean, Xen will keep (real) copies of page tables?
Shadown page tables are employed in HVM guests not PV guests.
Shadow pagetables are also used when doing live migration of PV guests, but they don't do the automatic translation and reference-counting that they do for HVM guests.
Quoted 5 lines
Quoted 3 lines
regarding shadowed PV domains, there's still
XENFEAT_auto_translated_physmap. but it's rather exotic and therefore rarely used.And therefore, AFAIK, doesn't work.
Which is why people depending on it are stuck with 3.0.2.
regards,
Daniel--
Daniel Stodden
LRR - Lehrstuhl für Rechnertechnik und Rechnerorganisation
Institut für Informatik der TU München D-85748 Garching
http://www.lrr.in.tum.de/~stodden mailto:[email protected]
PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B
hi
I am confused about shadow page table in the paravirtual mode in xen,
does guestOS have all of its own processes'page tables,and xen keeps
the very exactly all of the guestOS's processes page tables for a copy? or say ,it is xen who keeps the only copy of the guestOS's processes page tables ,and guestOS accesses to its processes's page tables through some hypercall? or ,what about it ?
If the guestOS has all of its processes's page talbes, while xen
maintain the copy of all those page tables ,is it an inefficient usage of memory ,or what is the trick behind ?
Thanks in advance
Quoted 22 lines · Daniel Stodden
Quoted 7 lines · pradeep singh rautela
Quoted 3 lines · Haifeng He
Thanks for answering my question. I am talking about PV mode. What about shadow page table? Does it mean, Xen will keep (real) copies of page tables?
Shadown page tables are employed in HVM guests not PV guests.
regarding shadowed PV domains, there's still
XENFEAT_auto_translated_physmap. but it's rather exotic and therefore rarely used.regarding the original question: yes, this means xen keeps the real page tables, while guests map pseudo-physical (i.e. linear) memory in what they (may) believe to be the real ones.
regards,
daniel
Quoted 9 lines
I am confused about shadow page table in the paravirtual mode in xen, does guestOS have all of its own processes'page tables,and xen keeps
the very exactly all of the guestOS's processes page tables for a copy? or say ,it is xen who keeps the only copy of the guestOS's processes page tables ,and guestOS accesses to its processes's page tables through some hypercall? or ,what about it ?
If the guestOS has all of its processes's page talbes, while xen
maintain the copy of all those page tables ,is it an inefficient usage of memory ,or what is the trick behind ?
The process owns all of the pagetables for its processes; Xen does not (in normal operation) maintain a shadow pagetable for PV domains.
In PV mode, Xen simply prevents a guest from loading a pagetable for use unless the guest has relinquished all rights to write to that memory. i.e. a guest can only register a pagetable with Xen if there's no way that the guest can modify that pagetable directly. This guarantees safety.
When the guest needs to update the pagetable, it can either write directly to it (which will cause a trap due to lack of permission, then Xen will check whether the update should be allowed) or it can call directly to Xen (which then does safety checks and does the update if it's OK).
Cheers,
Mark
Quoted 26 lines
Thanks in advance
Quoted 12 lines · Daniel Stodden
Quoted 6 lines · pradeep singh rautela
Quoted 3 lines · Haifeng He
Thanks for answering my question. I am talking about PV mode. What about shadow page table? Does it mean, Xen will keep (real) copies of page tables?
Shadown page tables are employed in HVM guests not PV guests.
regarding shadowed PV domains, there's still
XENFEAT_auto_translated_physmap. but it's rather exotic and therefore rarely used.Quoted 6 lines
regarding the original question: yes, this means xen keeps the real page tables, while guests map pseudo-physical (i.e. linear) memory in what they (may) believe to be the real ones.
regards,
daniel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Signature · 4 lines
Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!
hi
I am still confused about the shadow page table in the live migration procession,
in this procession, xen shadow page table copy each process's page table in guestOS ,is it right? what formular is it used ,is it something in the form of page talbe with 3 or 4 levels, or is it just an array like p2m table ,or something? and what does it deal with? if it is only for detecting which page entry is modified ,does it need a whole copy of each process's page table in xen ,could an extended p2m table be competent?
I am not very quite clear about the functions of shadow page talbe in
PV mode for live migration ,I have read the live migration paper that during the migration ,WWS should be detected and some mechanism should be used if necessary, but could these be delt with using an extended p2m talbe ,rather than a whole copy of the gurstOS process's page tables? or there are some tricks behind these obviously inefficient usage of memory,
another confusion is the auto_translated_physmap or PV/autotranslated
mode , does it also need a whole shadow page table copy in xen? what is form of the page table of this ,are these array or something of 3or 4level page table,and what is the function ?
Thanks in advance
Quoted 56 lines · Mark Williamson
Quoted 10 lines
I am confused about shadow page table in the paravirtual mode in xen, does guestOS have all of its own processes'page tables,and xen keeps
the very exactly all of the guestOS's processes page tables for a copy? or say ,it is xen who keeps the only copy of the guestOS's processes page tables ,and guestOS accesses to its processes's page tables through some hypercall? or ,what about it ?
If the guestOS has all of its processes's page talbes, while xen
maintain the copy of all those page tables ,is it an inefficient usage of memory ,or what is the trick behind ?The process owns all of the pagetables for its processes; Xen does not (in normal operation) maintain a shadow pagetable for PV domains.
In PV mode, Xen simply prevents a guest from loading a pagetable for use unless the guest has relinquished all rights to write to that memory. i.e. a guest can only register a pagetable with Xen if there's no way that the guest can modify that pagetable directly. This guarantees safety.
When the guest needs to update the pagetable, it can either write directly to it (which will cause a trap due to lack of permission, then Xen will check whether the update should be allowed) or it can call directly to Xen (which then does safety checks and does the update if it's OK).
Cheers,
MarkQuoted 30 lines
Thanks in advance
Quoted 14 lines · Daniel Stodden
Quoted 8 lines · pradeep singh rautela
Quoted 4 lines · Haifeng He
Thanks for answering my question. I am talking about PV mode. What about shadow page table? Does it mean, Xen will keep (real) copies of page tables?
Shadown page tables are employed in HVM guests not PV guests.
regarding shadowed PV domains, there's still
XENFEAT_auto_translated_physmap. but it's rather exotic and therefore rarely used.Quoted 7 lines
regarding the original question: yes, this means xen keeps the real page tables, while guests map pseudo-physical (i.e. linear) memory in what they (may) believe to be the real ones.
regards,
daniel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hi,
Quoted 5 lines · tgh
hi
I am still confused about the shadow page table in the live migration procession,
in this procession, xen shadow page table copy each process's page table in guestOS ,is it right?
Xen makes a set of "shadow" pagetables for the guest to run on, which is based on the guest's own pagetables. CR3 points at the shadow pagetables. This is the same as for HVM guests, except in HVM Xen needs to translate the entries from GFN to MFNs, and in PV live-migration it only removes write access so that it can track dirtied pages.
Quoted 3 lines
what formular is it used ,is it
something in the form of page talbe with 3 or 4 levels, or is it just an array like p2m table ,or something?
It's a page table. CR3 needs to point at something in the shape of a page table and the guest's ones won't do.
Quoted 4 lines
and what does it deal with? if it
is only for detecting which page entry is modified ,does it need a whole copy of each process's page table in xen ,could an extended p2m table be competent?
No. The p2m is not used by the hardware in PV guests, and can't be used by the hardware at all (except for HVM guests on the latest AMD chips that support NPT).
It's not a full copy of every page table in the guest, by the way. It's demand-filled on page-faults and CR3 writes to contain the working set.
Quoted 6 lines
I am not very quite clear about the functions of shadow page talbe in
PV mode for live migration ,I have read the live migration paper that during the migration ,WWS should be detected and some mechanism should be used if necessary, but could these be delt with using an extended p2m talbe ,rather than a whole copy of the gurstOS process's page tables? or there are some tricks behind these obviously inefficient usage of memory,
The memory use is not all that bad. The main drawback of shadow pagetables is the latency of previously simple operations like page faults.
Quoted 4 lines
another confusion is the
auto_translated_physmapor PV/autotranslated
mode , does it also need a whole shadow page table copy in xen? what
is form of the page table of this ,are these array or something of 3or 4level page table,and what is the function ?
Auto-translated PV shadow mode uses all the same code for making shadow pagetables as every other mode; it just includes a translation from GFN to MFN when making the shadow PTEs.
Cheers,
Tim.
Signature · 3 lines
Tim Deegan <[email protected]> Principal Software Engineer, Citrix Systems. [Company #5334508: XenSource UK Ltd, reg'd c/o EC2Y 5EB, UK.]
hi
in the PV mode,VM guestOS pagetable is virtual-to-machine address
mapping,is it right?,and when a VM is migrated, the shadow page table mode will be enabled ,is it right? then, the PVguestOS pagetalbe will become the virtual-to-psuedophysical address mapping, or not? then ,at that time ,the shadow pagetalbe is virtual-to-machine one ,is it right?
I am still confused ,especially about the PVguestOS pagetalbe when
shadow pagetable enabled for migration? is it a virtual-to-machine address mapping, or a virtual-to-psuedophysical address one ?
Thanks in advance
Quoted 56 lines · Mark Williamson
Quoted 10 lines
I am confused about shadow page table in the paravirtual mode in xen, does guestOS have all of its own processes'page tables,and xen keeps
the very exactly all of the guestOS's processes page tables for a copy? or say ,it is xen who keeps the only copy of the guestOS's processes page tables ,and guestOS accesses to its processes's page tables through some hypercall? or ,what about it ?
If the guestOS has all of its processes's page talbes, while xen
maintain the copy of all those page tables ,is it an inefficient usage of memory ,or what is the trick behind ?The process owns all of the pagetables for its processes; Xen does not (in normal operation) maintain a shadow pagetable for PV domains.
In PV mode, Xen simply prevents a guest from loading a pagetable for use unless the guest has relinquished all rights to write to that memory. i.e. a guest can only register a pagetable with Xen if there's no way that the guest can modify that pagetable directly. This guarantees safety.
When the guest needs to update the pagetable, it can either write directly to it (which will cause a trap due to lack of permission, then Xen will check whether the update should be allowed) or it can call directly to Xen (which then does safety checks and does the update if it's OK).
Cheers,
MarkQuoted 30 lines
Thanks in advance
Quoted 14 lines · Daniel Stodden
Quoted 8 lines · pradeep singh rautela
Quoted 4 lines · Haifeng He
Thanks for answering my question. I am talking about PV mode. What about shadow page table? Does it mean, Xen will keep (real) copies of page tables?
Shadown page tables are employed in HVM guests not PV guests.
regarding shadowed PV domains, there's still
XENFEAT_auto_translated_physmap. but it's rather exotic and therefore rarely used.Quoted 7 lines
regarding the original question: yes, this means xen keeps the real page tables, while guests map pseudo-physical (i.e. linear) memory in what they (may) believe to be the real ones.
regards,
daniel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines · tgh
hi
in the PV mode,VM guestOS pagetable is virtual-to-machine address
mapping,is it right?
Yes.
Quoted 2 lines
,and when a VM is migrated, the shadow page table
mode will be enabled ,is it right?
Yes.
Quoted 2 lines
then, the PVguestOS pagetalbe will
become the virtual-to-psuedophysical address mapping, or not?
Not.
Quoted 2 lines
then ,at
that time ,the shadow pagetalbe is virtual-to-machine one ,is it right?
Yes.
Quoted 3 lines
I am still confused ,especially about the PVguestOS pagetalbe when
shadow pagetable enabled for migration? is it a virtual-to-machine address mapping, or a virtual-to-psuedophysical address one ?
*All* shadow pagetables are virtual-to-machine translations. Anything else wouldn't be much use.
Cheers,
Tim.
Signature · 3 lines
Tim Deegan <[email protected]> Principal Software Engineer, Citrix Systems. [Company #5334508: XenSource UK Ltd, reg'd c/o EC2Y 5EB, UK.]
hi
in the PV mode, when VM is migrated, the shadow page table will be created , that is ,the every active process pagetable in the guestOS will have a copy in the VMM, while the original one is maintianed as virtual-to-physical address mapping , is it right? then, when the guestOS process is scheduled , the shadow page table will be set into the CR3 and the CPU address mapping will be worked with the shadow pagetable rather than the original one, is it right? while every update to the process original pagetable in the guestOS will be trap into the VMM , where the shadow pagetable is updated and coherented with the original one, is it right?
Thanks in advance
Quoted 41 lines · Tim Deegan
Quoted 4 lines · tgh
hi
in the PV mode,VM guestOS pagetable is virtual-to-machine address
mapping,is it right?Yes.
Quoted 2 lines
,and when a VM is migrated, the shadow page table mode will be enabled ,is it right?
Yes.
Quoted 2 lines
then, the PVguestOS pagetalbe will become the virtual-to-psuedophysical address mapping, or not?
Not.
Quoted 3 lines
then ,at
that time ,the shadow pagetalbe is virtual-to-machine one ,is it right?Yes.
Quoted 3 lines
I am still confused ,especially about the PVguestOS pagetalbe when
shadow pagetable enabled for migration? is it a virtual-to-machine address mapping, or a virtual-to-psuedophysical address one ?*All* shadow pagetables are virtual-to-machine translations. Anything else wouldn't be much use.
Cheers,
Tim.
Quoted 5 lines · tgh
hi
in the PV mode, when VM is migrated, the shadow page table will be created , that is ,the every active process pagetable in the guestOS will have a copy in the VMM, while the original one is maintianed as virtual-to-physical address mapping , is it right?
Yes, though as I said we only shadow pagetables on demand when they are used.
Quoted 4 lines
then, when the
guestOS process is scheduled , the shadow page table will be set into the CR3 and the CPU address mapping will be worked with the shadow pagetable rather than the original one, is it right?
Yes.
Quoted 4 lines
while every update
to the process original pagetable in the guestOS will be trap into the VMM , where the shadow pagetable is updated and coherented with the original one, is it right?
Yes.
Why are you asking this, by the way? Are you trying to write code, or debug a problem, or write documentation?
Tim.
Signature · 3 lines
Tim Deegan <[email protected]> Principal Software Engineer, Citrix Systems. [Company #5334508: XenSource UK Ltd, reg'd c/o EC2Y 5EB, UK.]
Thank you for explanation
I have read the code ,and want to comfirm some confusion,and then try to write something new,if nessary
the shadow pagetable on demand ,means a whole pagetable copy when the process is scheduled, or just a part of the process's pagetable is copied
thanks in advance
cheers
Quoted 25 lines · Tim Deegan
Quoted 3 lines · tgh
hi
in the PV mode, when VM is migrated, the shadow page table will be created , that is ,the every active process pagetable in the guestOS will have a copy in the VMM, while the original one is maintianed as virtual-to-physical address mapping , is it right?Yes, though as I said we only shadow pagetables on demand when they are used.
Quoted 2 lines
then, when the guestOS process is scheduled , the shadow page table will be set into the CR3 and the CPU address mapping will be worked with the shadow pagetable rather than the original one, is it right?
Yes.
Quoted 2 lines
while every update to the process original pagetable in the guestOS will be trap into the VMM , where the shadow pagetable is updated and coherented with the original one, is it right?
Yes.
Why are you asking this, by the way? Are you trying to write code, or debug a problem, or write documentation?
Tim.
Hi,
Quoted 2 lines · tgh
I have read the code ,and want to comfirm some confusion,and then try to write something new,if nessary
What do you want to write?
Quoted 2 lines
the shadow pagetable on demand ,means a whole pagetable copy when the process is scheduled, or just a part of the process's pagetable is copied
Pagetable pages are shadowed in shadow_get_and_create_*, called from sh_page_fault(), and in sh_update_cr3(), all in arch/x86/mm/shadow/multi.c.
Tim.
Signature · 3 lines
Tim Deegan <[email protected]> Principal Software Engineer, Citrix Systems. [Company #5334508: XenSource UK Ltd, reg'd c/o EC2Y 5EB, UK.]
Quoted 3 lines
In my understanding, in PV, page table is allocated within guest OS, however, every update will go through xen via explicit hypercalls. in HVM, those update will be intercepted by xen.
In PV, explicit hypercalls are not always used to update the pagetables. Using the "writeable pagetables" API it's possible to update the pagetables simply by writing to the pagetable memory (Xen then traps this and does the appropriate validation before applying the update).
These days, explicit hypercalls are still used for batching updates for performance reasons (places where trapping lots of writeable pagetable updates would cause a performance hit).
Cheers,
Mark
Quoted 21 lines
Please correct me if I'm wrong.
Quoted 18 lines · Haifeng He
Hi,
I have a question about memory page tables in Xen. As far as I understood, every modification
to page table will go through Xen(hypervisor). Is it so that all page tables are actually allocated
in Xen(hypervisor) instead of guest OS(domain)? Also, is it the case that Xen(hypervisor) needs to
maintain a page table for each process running in every domain?Thanks
Haifeng
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Signature · 4 lines
Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!
Quoted 5 lines · Haifeng He
Hi,
I have a question about memory page tables in Xen. As far as I understood, every modification
to page table will go through Xen(hypervisor).
that is correct. The hypervisor must know (and validate) all page table updates.
Is it so that all page
Quoted 2 lines
tables are actually allocated
in Xen(hypervisor) instead of guest OS(domain)?
Nope. For page tables, the guest domain has to allocate pages from it's own memory pool. The guest domain must then inform the hypervisor about these pages so that Xen knows that they are page-table pages.
Quoted 3 lines
Also, is it the case
that Xen(hypervisor) needs to
maintain a page table for each process running in every domain?
No. Each domain maintains it's own page tables for processes. The hypervisor only needs to know which physical pages contain page table entries.
thanks,
satya.
Quoted 10 lines
Thanks
Haifeng
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Signature · 1 line
Take my advice. I don't use it anyway.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel