From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [RFT] kvm host suspend/resume Date: Mon, 29 Jan 2007 10:24:32 +0200 Message-ID: <45BDAF40.6090209@qumranet.com> References: <45BC96BB.5080203@qumranet.com> <45BD8079.8020202@rydia.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: dormando Return-path: In-Reply-To: <45BD8079.8020202-uFjFfPRxV21eoWH0uzbU5w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org dormando wrote: > Avi Kivity wrote: >> I've committed kvm support for host suspend-to-disk (and hopefully >> resume too). This means you can suspend your machine with running >> vms, and resume it later will all vms returning to the saved state. >> This should please laptop owners. >> >> The big ironers should also be happy as support for host cpu hotplug >> was also added as a side effect. >> >> Please test this feature! A few testing cycles on one of my machines >> saw both Linux and Windows guests survive a suspend/resume cycle. >> >> This is available from subversion trunk, or if you don't use >> subversion, from http://people.qumranet.com/avi/kvm-r4341.tar.gz. > > I pulled r4347 from SVN and built it... > > I have a Dell M1210 (Core 2 Duo intel), and tried a few things, all > with a debian Etch AMD64 guest: > > 1) chmod'ing /dev/kvm and starting guest as local user > 2) starting guest as root > 3) starting guest, closing it, then suspend/resuming without unloading > the modules. > ... then suspending/resuming the laptop. > > Previously, I could suspend/resume with the modules loaded, but the > laptop would hardlock as soon as I tried to start up a guest. This is expected: the cpu came up with vmx disabled. > > This time, in all cases the machine did not come back from suspend, > even in case #3 where it used to come back fine. I just get a black > screen and no network activity, so I don't have any interesting > troubleshooting info. Anything I can do to be of more help? > Sprinkle printk()s in vmx_vcpu_decache(), vmx_hardware_enable(), vmx_hardware_disable(), kvm_cpu_hotplug(), kvm_suspend(), and kvm_resume(). Please include raw_smp_processor_id() in all outputs, then send the log (unfortunately you'll have to copy it by hand: netconsole doesn't play well with suspend). Please start with case #3 (perhaps even case #4 where you load the modules but don't start a guest). -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV