Skip to contentSkip to conversation

Control panel changes for IA64/VTI

PATCH RESEND Tian, Kevin 1 participant 1 message Oct 24, 2005

lore
Share & tools
lore
#0 lore raw

Ewan, thanks for pointing out following obvious error, and I need to make patch more carefully next time. ;-)

Attached the updated version. To reduce the mail size, I skipped attaching the other untouched one.

Thanks,
Kevin

Quoted 37 lines

From: Ewan Mellor [mailto:[email protected]]
Sent: 2005年10月24日 18:07

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].

Quoted 1 line

Ewan.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel