Skip to contentSkip to conversation

Control panel changes for IA64/VTI

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

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

From: Keir Fraser [mailto:[email protected]]
Sent: 2005年10月23日 16:15

Quoted 7 lines · 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. ;-)

Quoted 2 lines

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

OK. I can do it later when there's no other requirement for an ia64 specific version. I believe that can be done just after current domU enable on ia64 will get solved at hand.

Quoted 5 lines

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

-- Keir

Sorry for bad Python skill. ;-) So Dan, please help check in.

Thanks,
Kevin

#1 lore raw
Quoted 8 lines · Kevin
Quoted 6 lines

From: Keir Fraser [mailto:[email protected]]

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

-- Keir

Sorry for bad Python skill. ;-) So Dan, please help check in.

Actually executing your code would be a good start.

tools/python/xen/xend/image.py +3 -0
@@ -58,6 +58,7 @@
     """
 
     ostype = None
+    page_kb = 4
 
 
     def __init__(self, vm, imageConfig, deviceConfig):
@@ -366,11 +367,13 @@
 
     def getDomainMemory(self, mem):
         """@see ImageHandler.getDomainMemory"""
+	if os.uname[4] == 'ia64':
+	    page_kb = 16
         # for ioreq_t and xenstore
         static_pages = 2
 

This is going to fail with a TypeError exception, because os.uname is a function. You want os.uname()[4].

Ewan.