From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Brook Subject: Re: [Qemu-devel] Re: [questions] savevm|loadvm Date: Thu, 1 Apr 2010 12:20:09 +0000 Message-ID: <201004011320.10119.paul@codesourcery.com> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Juan Quintela , Wenhao Xu , kvm@vger.kernel.org To: qemu-devel@nongnu.org Return-path: Received: from mail.codesourcery.com ([38.113.113.100]:38839 "EHLO mail.codesourcery.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755486Ab0DAMUO (ORCPT ); Thu, 1 Apr 2010 08:20:14 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: > Wenhao Xu wrote: > > Hi, Juan, > > I am fresh to both QEMU and KVM. But so far, I notice that QEMU > > uses "KVM_SET_USER_MEMORY_REGION" to set memory region that KVM can > > use and uses cpu_register_physical_memory_offset to register the same > > memory to QEMU emulator, which means QEMU and KVM use the same host > > virtual memory. And therefore the memory KVM modified could be > > directly reflected to QEMU. I don't quite understand the different > > memory layout problem between the two. So I don't know exactly what > > you mean to "fix" it? > > 1st. qemu-kvm.git and qemu.git memory layouts are different, indeed with > qemu.git kvm mode. (yes it is complex and weird). > > kvm vs qemu initialization is different. Expecting to stop kvm, and run > tcg from there is not going to work. I guess it would need a lot of > changes, but I haven't looked at it myself. FWIW I think this really *should* work, and any failure to do so is definitely a bug. Paul