All of lore.kernel.org
 help / color / mirror / Atom feed
* Writable page tables questions
@ 2015-01-04 17:17 Junji Zhi
  2015-01-05 17:28 ` Andrew Cooper
  0 siblings, 1 reply; 5+ messages in thread
From: Junji Zhi @ 2015-01-04 17:17 UTC (permalink / raw)
  To: xen-devel

Hi,

I'm Junji, a newbie in Xen and hoping I can contribute to the community 
one day. I have a few questions regarding the writable page tables, 
while reading The Definitive Guide to the Xen Hypervisor by David Chisnall:

1. Writable page tables is one Xen memory assist technique, applied to 
paravirtualized guests ONLY. HVM does not apply. Correct?

2. According to the book, when a guest wants to modify its page table, 
it triggers a trap into the hypervisor and it does a few steps:

(1) it invalidates a PTE that points to the page containing the page 
table. Is my understanding correct?

Q: What does "invalidate" really mean here? Does it mean simply flipping 
a bit in the PTE of the page table, or removing the PTE completely? Does 
it also need to invalidate the TLB entry?

(2) then the control goes back to the guest and it can write/read the 
page table now.

(3) The book's words pasted: "When an address referenced by the newly 
invalidated page directory entry is referenced (read or write), a page 
fault occurs. "

Q: The description of step (3) is confusing. What does it mean by "an 
address referenced by the newly invalidated page directory entry is 
referenced"? Does it mean the case when the guest code is accessing an 
virtual address that needs to search the invalidated page table for 
translation?


Thanks and I really appreciate any comment or responses.
Junji

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-01-08 11:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-04 17:17 Writable page tables questions Junji Zhi
2015-01-05 17:28 ` Andrew Cooper
2015-01-06  9:55   ` Ian Campbell
2015-01-08 11:19     ` Tim Deegan
2015-01-08 11:30       ` Ian Campbell

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.