From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Katz Subject: Re: [RFT] kvm host suspend/resume Date: Tue, 30 Jan 2007 14:43:23 -0500 Message-ID: <45BF9FDB.6060302@redhat.com> References: <45BC96BB.5080203@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: Avi Kivity Return-path: In-Reply-To: <45BC96BB.5080203-atKUWr5tajBWk0Htik3J/w@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 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. So testing with trunk (r4365) + 2.6.20-rc5-ish, I'm able to suspend and resume with the modules loaded. Starting a guest after resume gets the following oops in the host; guest is in the grub menu at that point. kvm: msrs: 1 invalid opcode: 0000 [#1] SMP last sysfs file: /class/net/eth0/carrier Modules linked in: snd_hda_intel snd_hda_codec button kvm_intel kvm rfcomm hidp l2cap i915 drm ipt_MASQUERADE iptable_nat nf_nat ipv6 autofs4 sunrpc bridge dummy nf_conntrack_netbios_ns ipt_REJECT nf_conntrack_ipv4 xt_state nf_conntrack nfnetlink xt_tcpudp iptable_filter ip_tables x_tables cpufreq_ondemand video sbs i2c_ec dock battery asus_acpi backlight ac parport_pc lp parport sr_mod cdrom snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss hci_usb fw_ohci snd_pcm e100 mii bluetooth sdhci ata_piix fw_core ipw3945 mmc_core sg serio_raw i2c_i801 iTCO_wdt iTCO_vendor_support snd_timer ieee80211 ieee80211_crypt ata_generic i2c_core snd soundcore snd_page_alloc joydev dm_snapshot dm_zero dm_mirror dm_mod ahci libata sd_mod scsi_mod ext3 jbd mbcache ehci_hcd ohci_hcd uhci_hcd CPU: 1 EIP: 0060:[] Not tainted VLI EFLAGS: 00010207 (2.6.19-1.2913.fc7 #1) EIP is at vmx_vcpu_load+0x49/0xc1 [kvm_intel] eax: db452cbc ebx: f2f5847c ecx: 018e2100 edx: c075eb2c esi: 00000001 edi: db452dc0 ebp: db452cd4 esp: db452cac ds: 007b es: 007b ss: 0068 Process qemu (pid: 21176, ti=db452000 task=e2020030 task.ti=db452000) Stack: 22222222 22222222 22222222 22222222 144d9000 00000000 db452dc0 db452cd4 f2f58484 f2f5847c db452ce4 f8e61ad6 f2f5847c f2f5847c db452cf0 f8e6322f 00000001 db452d4c f8d3cc69 c0603728 00000000 00000002 c0603751 f2f58484 Call Trace: [] show_trace_log_lvl+0x1a/0x2f [] show_stack_log_lvl+0x9b/0xa3 [] show_registers+0x194/0x26a [] die+0x12d/0x242 [] do_trap+0x79/0x91 [] do_invalid_op+0x97/0xa1 [] error_code+0x7c/0x84 [] vcpu_load+0x3b/0x3f [kvm] [] kvm_resched+0x20/0x23 [kvm] [] kvm_vmx_return+0x1d0/0x1df [kvm_intel] [] kvm_dev_ioctl+0x284/0x117a [kvm] [] do_ioctl+0x22/0x67 [] vfs_ioctl+0x252/0x265 [] sys_ioctl+0x49/0x64 [] syscall_call+0x7/0xb ======================= Code: 00 40 39 73 48 89 45 e8 74 07 89 d8 e8 5d ff ff ff 8b 0c b5 80 b3 71 c0 ba 2c eb 75 c0 8b 43 04 39 04 0a 74 31 89 04 0a 8d 45 e8 <0f> c7 30 0f 96 c0 84 c0 74 21 8b 45 e8 8b 55 ec c7 04 24 a3 d4 EIP: [] vmx_vcpu_load+0x49/0xc1 [kvm_intel] SS:ESP 0068:db452cac Jeremy ------------------------------------------------------------------------- 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