Received: from eggs.gnu.org ([2001:4830:134:3::10]:39665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEtbv-0001sN-6y for qemu-devel@nongnu.org; Thu, 08 Dec 2016 02:59:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEtbu-0007Pi-Fl for qemu-devel@nongnu.org; Thu, 08 Dec 2016 02:59:23 -0500 Received: from [59.151.112.132] (port=8534 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEtbt-0007Ko-QZ for qemu-devel@nongnu.org; Thu, 08 Dec 2016 02:59:22 -0500 From: Zhang Chen Date: Thu, 8 Dec 2016 15:55:14 +0800 Message-ID: <1481183716-7342-2-git-send-email-zhangchen.fnst@cn.fujitsu.com> In-Reply-To: <1481183716-7342-1-git-send-email-zhangchen.fnst@cn.fujitsu.com> References: <1481183716-7342-1-git-send-email-zhangchen.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH for-2.9 V2 1/3] Migration: Don't load vmdesc when xen is enabled List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu devel , Jason Wang , Eric Blake Cc: Zhang Chen , Li Zhijian , zhanghailiang , "eddie . dong" , Bian Naimeng , Changlong Xie Xen doesn't need this. Signed-off-by: Zhang Chen --- migration/savevm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/migration/savevm.c b/migration/savevm.c index 0363372..bec6c7e 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -1973,6 +1973,10 @@ int qemu_loadvm_state(QEMUFile *f) ret = qemu_file_get_error(f); } + if (xen_enabled()) { + return ret; + } + /* * Try to read in the VMDESC section as well, so that dumping tools that * intercept our migration stream have the chance to see it. -- 2.7.4