Skip to contentSkip to conversation

Control panel changes for IA64/VTI

PATCH RESEND Tian, Kevin 2 participants 2 messages Oct 23, 2005

lore
Share & tools
lore
#0 lore raw

BTW, the reason for an ia64 specific get_pfn_list (by Matt) is that machine pages for domain on ia64 are allocated on demand. So there's requirement for parameters to contain start_pfn and nr_pages so that Xen can allocate necessary pages for that specific range. On x86 side, since all the pages are allocated when domain creation, get_pfn_list is aimed to query once for all pages and so the parameter can be only nr_pages. Just the background here. ;-)

Thanks,
Kevin

Quoted 39 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Tian, Kevin
Sent: 2005年10月23日 11:47
To: Keir Fraser
Cc: [email protected]; Xen-IA64-Devel
Subject: [Xen-devel] [PATCH][RESEND] Control panel changes for IA64/VTI

Quoted 11 lines

From: Keir Fraser [mailto:[email protected]]
Sent: 2005年10月22日 14:26

Quoted 4 lines · Kevin

Attached are the necessary changes in control panel to support
ia64/vti domain builder. One is in common side, and the other is in vti specific image builder. Please take a look, and if no objection, I'd like to ask Dan's help to check into xen-ia64-unstable.hg first.

The common changes to libxc look ia64 specific. Why not stick all of them in ia64_stubs?

OK, see updated version and I moved all interfaces within "ifdef __ia64__" to ia64_stubs.

Quoted 7 lines

Adding code to memset to force into the TLB won't be accepted. Either those whole functions are ia64 specific or (better) replace use of mlock/munlock with map_to_hypervisor/unmap_from_hypervisor which do mlock/memset/munlock on ia64 and skip the memset on x86.

-- Keir

Actually those changes are all ia64 specific. With normal diff command, I can use "-p" option to add one line like "@@ -322,46 +322,6 @@ int xc_ia64_get_pfn_list(int xc_handle,". However I don't know how to produce same format with "hg diff". That brings some trouble to people when similar code pieces exist in same file. ;-( I also removed memset in xc_ia64_get_pfn_list since mlock seems to have the effect.

Thanks,
Kevin

#1 lore raw
Quoted 1 line · Kevin

BTW, the reason for an ia64 specific get_pfn_list (by Matt) is that machine pages for domain on ia64 are allocated on demand. So there's requirement for parameters to contain start_pfn and nr_pages so that Xen can allocate necessary pages for that specific range. On x86 side, since all the pages are allocated when domain creation, get_pfn_list is aimed to query once for all pages and so the parameter can be only nr_pages. Just the background here. ;-)

We could have a common interface then. All the uses of get_pfn_list in common or x86 code will have start_pfn==0.

The patches look okay, although the Python bits aren't particularly pretty.

-- Keir