mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[HVM] Save/restore: remove bogus "valid state" check
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
This commit is contained in:
1 parent
154753acf2
commit
4bbfa3da11
1 file changed
+1
-8
@@ -339,14 +339,7 @@ int xc_hvm_save(int xc_handle, int io_fd, uint32_t dom, uint32_t max_iters,
|
||||
}
|
||||
shared_info_frame = info.shared_info_frame;
|
||||
|
||||
/* A cheesy test to see whether the domain contains valid state. */
|
||||
if (ctxt.ctrlreg[3] == 0)
|
||||
{
|
||||
ERROR("Domain is not in a valid HVM guest state");
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* cheesy sanity check */
|
||||
/* cheesy sanity check */
|
||||
if ((info.max_memkb >> (PAGE_SHIFT - 10)) > max_mfn) {
|
||||
ERROR("Invalid HVM state record -- pfn count out of range: %lu",
|
||||
(info.max_memkb >> (PAGE_SHIFT - 10)));
|
||||
|
||||