From: Denis Chapligin Subject: Problem with migrating/saving 2.6.30 vanilla kernel with multiple VCPUs Date: Mon, 10 Aug 2009 11:04:24 +0300 Message-ID: <20090810110424.11d96ac8@biker.satgate.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi I have xen 3.4.1 installed, with dom0 running linux-2.6.18-xen.hg (four weeks old) I've made a domU with a vanilla 2.6.30.4 kernel and tried to save it to a file.=20 xm save command stuck and resulting file was only 1503 bytes. Here are some details - xm list after xm save command: dom0:~# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 254 1 r----- 90.7 migrating-test 9 256 4 -b---- 12.3 Snapshot file: dom0:/tmp# ls -l=20 total 0 -rwxr-xr-x 1 root root 1503 2009-08-10 10:51 test.mem Contents of test.mem file: dom0:/tmp# cat test.mem=20 LinuxGuestRecord=EF=BF=BDdomain (domid 9) (on_crash restart) (uuid e3ac4f7e-d1e4-e9ce-8d9f-dfb229ced941) (bootloader_args ) (vcpus 4) (name test) (on_poweroff destroy) (on_reboot restart) (cpus (() () () ())) (bootloader ) (maxmem 256) (memory 256) (shadow_memory 0) (vcpu_avail 15) (features ) (on_xend_start ignore) (on_xend_stop ignore) (start_time 1249890685.85) (cpu_time 0.0) (online_vcpus 1) (image (linux (kernel /GFS/kernels/vmlinuz-2.6.30.4) (ramdisk /GFS/kernels/initrd.img-2.6.30.4) (args 'root=3D/dev/xvda clocksource=3Djiffies') (videoram 4) (notes (HV_START_LOW 4118806528) (FEATURES '!writable_page_tables|pae_pgdir_above_4gb') (VIRT_BASE 3221225472) (GUEST_VERSION 2.6) (PADDR_OFFSET 0) (GUEST_OS linux) (HYPERCALL_PAGE 3222282240) (LOADER generic) (SUSPEND_CANCEL 1) (PAE_MODE yes) (ENTRY 3225649152) (XEN_VERSION xen-3.0)))) (status 2) (state --p---) (store_mfn 1165228) (console_mfn 1165227) (device (vif (bridge br6) (mac 00:16:3e:2e:4c:8b) (script /etc/xen/scripts/vif-bridge) (uuid 668ceb77-5657-79d0-a6d8-20442e718d79) (backend 0))) (device (vbd (protocol x86_32-abi) (uuid da6930eb-f7eb-893e-6d87-a27db331b957) (bootable 1) (dev xvda:disk) (uname phy:/dev/etherd/e1.2) (mode w) (backend 0) (bootable 1) (VDI ))) (device (console (protocol vt100) (location 2) (uuid becf1aa4-e58c-7404-f2ff-8e33ec7f788e))) (cpuid ((2147483648 ((eax 00000000000000000000000000000011) (edx 00000000000000000000000000000000) (ebx 00000000000000000000000000000000) (ecx 00000000000000000000000000000000)))))) There is nothing on xen's dmesg and dom0 dmesg. Here are part of xend.log: [2009-08-10 10:51:45 2186] DEBUG (XendCheckpoint:110) [xc_save]: /usr/lib/xen-3.4/bin/xc_save 46 9 0 0 0=20 [2009-08-10 10:51:452186] DEBUG (XendCheckpoint:388) suspend=20 [2009-08-10 10:51:45 2186]DEBUG (XendCheckpoint:113) In saveInputHandler suspend=20 [2009-08-1010:51:45 2186] DEBUG (XendCheckpoint:115) Suspending 9 ...=20 [2009-08-1010:51:45 2186] DEBUG (XendDomainInfo:511) XendDomainInfo.shutdown(suspend)=20 [2009-08-10 10:51:45 2186] DEBUG (XendDomainInfo:1709) XendDomainInfo.handleShutdownWatch=20 [2009-08-1010:51:45 2186] DEBUG (XendDomainInfo:1709) XendDomainInfo.handleShutdownWatch=20 [2009-08-10 10:51:45 2186] INFO(XendCheckpoint:417) xc_save: failed to get the suspend evtchn port=20 Xen's info: dom0:~# xm info host : dom0 release : 2.6.18.8 version : #1 SMP Tue Jul 7 18:42:07 EEST 2009 machine : i686 nr_cpus : 4 nr_nodes : 1 cores_per_socket : 1 threads_per_core : 2 cpu_mhz : 2992 hw_caps : bfebfbff:20000800:00000000:00000180:0000641d:00000000:0 0000000:00000000 virt_caps :=20 total_memory : 4095 free_memory : 3529 node_to_cpu : node0:0-3 node_to_memory : node0:3529 xen_major : 3 xen_minor : 4 xen_extra :=20 xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p=20 xen_scheduler : credit xen_pagesize : 4096 platform_params : virt_start=3D0xff800000 xen_changeset : unavailable cc_compiler : gcc version 4.3.2 (Debian 4.3.2-1.1)=20 cc_compile_by : chollya cc_compile_domain : satgate.net cc_compile_date : Fri Aug 7 11:54:19 EEST 2009 xend_config_format : 4 and the domain configuration file: dom0:~# cat /GFS/xen/test.cfg=20 kernel=3D"/GFS/kernels/vmlinuz-2.6.30.4" ramdisk=3D"/GFS/kernels/initrd.img-2.6.30.4" root=3D"/dev/xvda" extra=3D"clocksource=3Djiffies" memory =3D 256 cpuid=3D['0x80000000:eax=3D0x3,ebx=3D0x0,ecx=3D0x0,edx=3D0x0'] name =3D "test" vcpus =3D 4 vif =3D ['bridge=3Dbr6'] disk =3D ['phy:/dev/etherd/e1.2,xvda,w'] Save/migrate works fine when i use linux-2.6.18-xen.hg as a domU kernel, so i suppose it could be a bug somewhere, not a configuration issue. --=20 Denis Chapligin