Skip to contentSkip to conversation

fix page size assumptions in tools

PATCH Tian, Kevin 1 participant 1 message Jun 15, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Matt

Chapman

Quoted 10 lines

Sent: Wednesday, June 15, 2005 4:03 AM

This patch defines XC_PAGE_SIZE in libxc and removes assumptions about the page size being 4096 bytes, in preparation for the userspace tools supporting ia64 Xen (which currently uses a 16KB page size).

Matt

Is that right way for control panel to have such assumption about page size of Xen? Especially for architectures supporting multiple page size like IA64, we need a control panel able to run on Xen with any page size configured, without modification. Even on x86, we can't eliminate the possibility of special version of Xen + xenolinux with a default 2M page in the future. :)

A cleaner way may be to add page size info in DOM0_GETDOMAININFO, together with tot_pages.

Thanks,
Kevin