qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] savevm: unbreak register_savevm_live()/vmstate_regi


From: Isaku Yamahata
Subject: [Qemu-devel] [PATCH] savevm: unbreak register_savevm_live()/vmstate_register_with_alias_id()
Date: Wed, 26 Jan 2011 18:45:34 +0900

This patch unbreaks 7685ee6abcb939104801f84b3fe9645412528088.
With the changeset, more than one instances of same device on bus
that provides get_dev_path method can't be created because it hits
the assertion.
This patch removes the assertion whose assumption isn't correct.

Cc: Alex Williamson <address@hidden>
Signed-off-by: Isaku Yamahata <address@hidden>
---
 savevm.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/savevm.c b/savevm.c
index fcd8db4..cd29eb8 100644
--- a/savevm.c
+++ b/savevm.c
@@ -1126,7 +1126,6 @@ int register_savevm_live(DeviceState *dev,
     } else {
         se->instance_id = instance_id;
     }
-    assert(!se->compat || se->instance_id == 0);
     /* add at the end of list */
     QTAILQ_INSERT_TAIL(&savevm_handlers, se, entry);
     return 0;
@@ -1236,7 +1235,6 @@ int vmstate_register_with_alias_id(DeviceState *dev, int 
instance_id,
     } else {
         se->instance_id = instance_id;
     }
-    assert(!se->compat || se->instance_id == 0);
     /* add at the end of list */
     QTAILQ_INSERT_TAIL(&savevm_handlers, se, entry);
     return 0;
-- 
1.7.1.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]