From 18fdb1c5c614ebdf9c3ea9ef0a548bd81cc1f981 Mon Sep 17 00:00:00 2001 From: ths Date: Fri, 18 Jul 2008 18:02:34 +0000 Subject: Various NICs: Fix suspend/resume of multiple instances, by Jan Kiszka. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4892 c046a42c-6fe2-441c-8c8c-71466251a162 --- vl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vl.c') diff --git a/vl.c b/vl.c index b6d65a0ef1..e7a0645888 100644 --- a/vl.c +++ b/vl.c @@ -6081,7 +6081,9 @@ typedef struct SaveStateEntry { static SaveStateEntry *first_se; /* TODO: Individual devices generally have very little idea about the rest - of the system, so instance_id should be removed/replaced. */ + of the system, so instance_id should be removed/replaced. + Meanwhile pass -1 as instance_id if you do not already have a clearly + distinguishing id for all instances of your device class. */ int register_savevm(const char *idstr, int instance_id, int version_id, -- cgit 1.4.1