Added LinuxUpdateParam class for passing parameters to linux

This commit is contained in:
Amit Mahajan
2009-10-21 16:41:28 +05:30
parent 61a0d5b60f
commit 86c3a7c176
3 changed files with 98 additions and 2 deletions
+3
View File
@@ -19,6 +19,7 @@ class Container:
self.pager_shm_region_end = 0
self.pager_utcb_region_start = 0
self.pager_utcb_region_end = 0
self.linux_zreladdr = 0
self.linux_page_offset = 0
self.linux_phys_offset = 0
self.linux_mapsize = 0
@@ -120,6 +121,8 @@ class configuration:
elif param[:len("LINUX_PHYS_OFFSET")] == "LINUX_PHYS_OFFSET":
self.containers[id].linux_phys_offset = int(val, 0)
self.containers[id].pager_lma += int(val, 0)
elif param[:len("LINUX_ZRELADDR")] == "LINUX_ZRELADDR":
self.containers[id].linux_zreladdr += int(val, 0)
elif re.match(r"(VIRT|PHYS){1}([0-9]){1}(_){1}(START|END){1}", param):
matchobj = re.match(r"(VIRT|PHYS){1}([0-9]){1}(_){1}(START|END){1}", param)
virtphys, regionidstr, discard1, startend = matchobj.groups()