Skip to contentSkip to conversation

Writable page tables

DISCUSSION Ky Srinivasan 2 participants 2 messages Apr 6, 2006 – Apr 7, 2006 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

I have a question with regards to writable page table support. I am able to modify a page table entry via the hypercall interface (xen_l1_entry_update). However, if I enable the writable page table feature, the hypervisor fails to fix up the write fault on the same page table. The fixup fails in ptwr_do_page_fault() - the problem appears to be with the TYPE_COUNT (it is 0 and all other checks pass). Why is the writable code path more restrictive, given that the modifications done via the writable path will be validated by the hypervisor before hooking in the page table under question. Since the validation is deferred, I was expecting this path would have fewer checks.

Regards,

K. Y

#3 lore raw
Quoted 10 lines · Ky Srinivasan

I have a question with regards to writable page table support. I am able to modify a page table entry via the hypercall interface (xen_l1_entry_update). However, if I enable the writable page table feature, the hypervisor fails to fix up the write fault on the same page table. The fixup fails in ptwr_do_page_fault() - the problem appears to be with the TYPE_COUNT (it is 0 and all other checks pass). Why is the writable code path more restrictive, given that the modifications done via the writable path will be validated by the hypervisor before hooking in the page table under question. Since the validation is deferred, I was expecting this path would have fewer checks.

Have you write protected the page but not yet pinned it as a pagetable page, nor hooked it into an existing pagetable?

-- Keir