mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Fix save/restore and migrate on x86_64.
Signed-off-by: Steven Hand <steven@xensource.com>
This commit is contained in:
1 parent
b0116a884d
commit
d8fa063ad2
2 files changed
+11
-8
No files matched your search
@@ -128,7 +128,7 @@ def restore(xd, fd):
|
||||
try:
|
||||
l = read_exact(fd, sizeof_unsigned_long,
|
||||
"not a valid guest state file: pfn count read")
|
||||
nr_pfns = unpack("=L", l)[0] # XXX endianess
|
||||
nr_pfns = unpack("L", l)[0] # native sizeof long
|
||||
if nr_pfns > 16*1024*1024: # XXX
|
||||
raise XendError(
|
||||
"not a valid guest state file: pfn count out of range")
|
||||
|
||||