From: Ian Campbell Subject: Re: [PATCH] xen: correctly restore pfn_to_mfn_list_list after resume Date: Mon, 30 Nov 2009 10:36:53 +0000 Message-ID: <1259577413.7590.1163.camel@zakaz.uk.xensource.com> References: <1258803169-17191-1-git-send-email-ian.campbell@citrix.com> <200911301117.40578.bartoszl@ics.p.lodz.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200911301117.40578.bartoszl@ics.p.lodz.pl> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Bartosz Lis Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, 2009-11-30 at 10:17 +0000, Bartosz Lis wrote: > Unfortunately save/restore does not work for 64bit kernel/userland in dom0 and > 32bit kernel/userland in domU (tested with 1 and then with 2 vcpus). Save > hangs. Save file is ~1.5kB long and I'm getting on guest's console: You stack trace looks like the issue resolved by "xen: do not unmap grant status on suspend when using v1 grant tables" sent to the list on Wednesday. > ----8<---- > [ 34.729250] BUG: unable to handle kernel paging request at c1527000 > [ 34.729271] IP: [] xen_set_pmd+0x73/0xb0 > [ 34.729288] *pdpt = 0000000403162027 > [ 34.729299] Oops: 0003 [#1] SMP > [ 34.729312] last sysfs file: /sys/module/ip_tables/initstate > [ 34.729321] Modules linked in: sch_sfq xt_limit ipt_REJECT xt_tcpudp > ipt_LOG xt_state xt_multiport iptable_filter iptable_nat nf_nat > nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 iptable_mangle ip_tables > x_tables xenfs dm_multipath scsi_dh dm_mod st sd_mod crc_t10dif lpfc qla2xxx > scsi_transport_fc scsi_tgt qla1280 scsi_mod psmouse uhci_hcd ehci_hcd usbcore > pcspkr xen_netfront evdev ext3 jbd mbcache > [ 34.729485] > [ 34.729493] Pid: 1686, comm: kstop/0 xid: #0 Not tainted > (2.6.31.6x_xenUnogrsecuritypae-BL5.5 #1) > [ 34.729504] EIP: 0061:[] EFLAGS: 00010046 CPU: 0 > [ 34.729513] EIP is at xen_set_pmd+0x73/0xb0 > [ 34.729520] EAX: c1527000 EBX: 031f3067 ECX: 00000004 EDX: c179b000 > [ 34.729529] ESI: 00000004 EDI: c1527000 EBP: ddd75eb0 ESP: ddd75ea0 > [ 34.729538] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0069 > [ 34.729547] Process kstop/0 (pid: 1686, ti=ddd74000 task=df8f48c0 > task.ti=ddd74000) > [ 34.729557] Stack: > [ 34.729563] c1527000 031f3067 1fd61067 c1527000 ddd75ec4 c10cd650 00000000 > 00000000 > [ 34.729595] <0> 00200000 ddd75f20 c10ceb14 00000000 123ab067 00000000 > 00000fff 00001000 > [ 34.729630] <0> 00000fff c1463000 c1474f60 01ba9067 00000000 ddd75f14 > c1006f3a c153001c > [ 34.729670] Call Trace: > [ 34.729682] [] ? __pte_alloc_kernel+0xa0/0xb0 > [ 34.729693] [] ? apply_to_page_range+0x314/0x330 > [ 34.729705] [] ? xen_force_evtchn_callback+0x1a/0x30 > [ 34.729717] [] ? arch_gnttab_unmap+0x26/0x30 > [ 34.729729] [] ? unmap_pte_fn+0x0/0x50 > [ 34.729742] [] ? gnttab_suspend+0x41/0x50 > [ 34.729753] [] ? xen_suspend+0x3a/0xf0 > [ 34.729765] [] ? stop_cpu+0x8d/0xd0 > [ 34.729776] [] ? worker_thread+0x112/0x220 > [ 34.729787] [] ? stop_cpu+0x0/0xd0 > [ 34.729798] [] ? autoremove_wake_function+0x0/0x40 > [ 34.729810] [] ? worker_thread+0x0/0x220 > [ 34.729821] [] ? kthread+0x7c/0x90 > [ 34.729831] [] ? kthread+0x0/0x90 > [ 34.729843] [] ? kernel_thread_helper+0x7/0x10 > [ 34.729851] Code: 00 75 48 8b 45 f0 89 da 89 f1 83 05 fc 32 53 c1 01 e8 e2 > fe ff ff 8b 5d f4 8b 75 f8 8b 7d fc 89 ec 5d c3 90 8d 74 26 00 8b 45 f0 <89> > 18 89 70 04 eb e4 ba e0 32 53 c1 b9 33 00 00 00 31 c0 89 d7 > [ 34.730076] EIP: [] xen_set_pmd+0x73/0xb0 SS:ESP 0069:ddd75ea0 > [ 34.730093] CR2: 00000000c1527000 > [ 34.730102] ---[ end trace cd1b831872a4c87f ]--- > [ 34.730137] ------------[ cut here ]------------ > [ 34.730147] WARNING: at /root/rpm/BUILD/kernel- > xenUnogrsecuritypae-2.6.31.6x/linux-2.6.31/kernel/time/timekeeping.c:102 > getnstimeofday+0x102/0x110() > [ 34.730160] Modules linked in: sch_sfq xt_limit ipt_REJECT xt_tcpudp > ipt_LOG xt_state xt_multiport iptable_filter iptable_nat nf_nat > nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 iptable_mangle ip_tables > x_tables xenfs dm_multipath scsi_dh dm_mod st sd_mod crc_t10dif lpfc qla2xxx > scsi_transport_fc scsi_tgt qla1280 scsi_mod psmouse uhci_hcd ehci_hcd usbcore > pcspkr xen_netfront evdev ext3 jbd mbcache > [ 34.730316] Pid: 0, comm: swapper xid: #0 Tainted: G D > 2.6.31.6x_xenUnogrsecuritypae-BL5.5 #1 > [ 34.730326] Call Trace: > [ 34.730338] [] ? printk+0x18/0x1e > [ 34.730349] [] warn_slowpath_common+0x6d/0xa0 > [ 34.730360] [] ? getnstimeofday+0x102/0x110 > [ 34.730370] [] ? getnstimeofday+0x102/0x110 > [ 34.730381] [] warn_slowpath_null+0x15/0x20 > [ 34.730392] [] getnstimeofday+0x102/0x110 > [ 34.730403] [] ktime_get_ts+0x26/0x60 > [ 34.730413] [] ktime_get+0x16/0x40 > [ 34.730425] [] tick_nohz_stop_sched_tick+0x6c/0x390 > [ 34.730437] [] cpu_idle+0x27/0x80 > [ 34.730449] [] rest_init+0x55/0x60 > [ 34.730461] [] start_kernel+0x2fb/0x301 > [ 34.730472] [] ? unknown_bootoption+0x0/0x1ad > [ 34.730483] [] i386_start_kernel+0x7c/0x83 > [ 34.730494] [] xen_start_kernel+0x517/0x51f > [ 34.730502] ---[ end trace cd1b831872a4c880 ]--- > ----8<---- > > I'm going to try newer commits. > > Regards, >