mirror of
https://github.com/drasko/codezero.git
synced 2026-10-24 19:57:28 +02:00
Added LinuxUpdateParam class for passing parameters to linux
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user