Skip to contentSkip to conversation

DOM0_GETPAGEFRAMEINFO for non-dom0 domains

DISCUSSION Jacob Gorm Hansen 2 participants 2 messages Aug 16, 2005

lore
Share & tools
lore
#0 lore raw

hi,

with writable page tables it takes a little more work tracking page types from within a domU. Basically, I need to duplicate Xen's pgd walks when pinning and unpinning pgds, within the domU, in order to obtain a consistent map of page types for my own pages.

It seems it would be a lot easier just to allow domUs access to a DOM0_GETPAGEFRAMEINFO-like hypercall that would extract this info from Xen. Would you consider merging a patch to do this, and how/where would you prefer it to be implemented?

thanks,
Jacob

#1 lore raw
Quoted 9 lines · Jacob Gorm Hansen

with writable page tables it takes a little more work tracking page types from within a domU. Basically, I need to duplicate Xen's pgd walks when pinning and unpinning pgds, within the domU, in order to obtain a consistent map of page types for my own pages.

It seems it would be a lot easier just to allow domUs access to a DOM0_GETPAGEFRAMEINFO-like hypercall that would extract this info from Xen. Would you consider merging a patch to do this, and how/where would you prefer it to be implemented?

Implement it as a new MMUEXT operation and we'll consider it.

-- Keir