Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Adding breaktrace & disabling timer migration"
[kvmfornfv.git]
/
qemu
/
scripts
/
analyze-migration.py
diff --git
a/qemu/scripts/analyze-migration.py
b/qemu/scripts/analyze-migration.py
index
f6894be
..
1455387
100755
(executable)
--- a/
qemu/scripts/analyze-migration.py
+++ b/
qemu/scripts/analyze-migration.py
@@
-252,6
+252,15
@@
class HTABSection(object):
def getDict(self):
return ""
def getDict(self):
return ""
+
+class ConfigurationSection(object):
+ def __init__(self, file):
+ self.file = file
+
+ def read(self):
+ name_len = self.file.read32()
+ name = self.file.readstr(len = name_len)
+
class VMSDFieldGeneric(object):
def __init__(self, desc, file):
self.file = file
class VMSDFieldGeneric(object):
def __init__(self, desc, file):
self.file = file
@@
-474,6
+483,7
@@
class MigrationDump(object):
QEMU_VM_SECTION_FULL = 0x04
QEMU_VM_SUBSECTION = 0x05
QEMU_VM_VMDESCRIPTION = 0x06
QEMU_VM_SECTION_FULL = 0x04
QEMU_VM_SUBSECTION = 0x05
QEMU_VM_VMDESCRIPTION = 0x06
+ QEMU_VM_CONFIGURATION = 0x07
QEMU_VM_SECTION_FOOTER= 0x7e
def __init__(self, filename):
QEMU_VM_SECTION_FOOTER= 0x7e
def __init__(self, filename):
@@
-514,6
+524,9
@@
class MigrationDump(object):
section_type = file.read8()
if section_type == self.QEMU_VM_EOF:
break
section_type = file.read8()
if section_type == self.QEMU_VM_EOF:
break
+ elif section_type == self.QEMU_VM_CONFIGURATION:
+ section = ConfigurationSection(file)
+ section.read()
elif section_type == self.QEMU_VM_SECTION_START or section_type == self.QEMU_VM_SECTION_FULL:
section_id = file.read32()
name = file.readstr()
elif section_type == self.QEMU_VM_SECTION_START or section_type == self.QEMU_VM_SECTION_FULL:
section_id = file.read32()
name = file.readstr()