Received: from eggs.gnu.org ([2001:4830:134:3::10]:47181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekQXz-0000r6-2r for qemu-devel@nongnu.org; Sat, 10 Feb 2018 03:30:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekQXt-0005MO-VA for qemu-devel@nongnu.org; Sat, 10 Feb 2018 03:30:11 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:2085 helo=huawei.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ekQXt-0005GW-4X for qemu-devel@nongnu.org; Sat, 10 Feb 2018 03:30:05 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 8BB40D73FD350 for ; Sat, 10 Feb 2018 16:29:46 +0800 (CST) From: Wang King Date: Sat, 10 Feb 2018 16:29:25 +0800 Message-ID: <20180210082925.1888-1-king.wang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Qemu aborted in ide_restart_bh after migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: weifuqiang@huawei.com, Wang King Empty IDE CD-ROM configured on the VM:
Make migration for this VM, then qemu aborted in ide_restart_bh. IDEState= expect end_transfer_func equal to ide_atapi_cmd, but it refer to ide_dummy_trans= fer_stop. I have no idea about this, can anyone help me? qemu version is 2.8.1 (gdb) bt #0 0x00007fcff7c4b157 in raise () from /usr/lib64/libc.so.6 #1 0x00007fcff7c4c848 in abort () from /usr/lib64/libc.so.6 #2 0x00007fcff7c441c6 in __assert_fail_base () from /usr/lib64/libc.so.6 #3 0x00007fcff7c44272 in __assert_fail () from /usr/lib64/libc.so.6 #4 0x00000000006207ab in ide_restart_bh (opaque=3D0x38b3430) at hw/ide/c= ore.c:2570 #5 0x0000000000763a6f in aio_bh_poll (ctx=3Dctx@entry=3D0x234f940) at as= ync.c:115 #6 0x0000000000770948 in aio_dispatch (ctx=3D0x234f940) at aio_posix.c:3= 03 #7 0x00000000007638e1 in aio_ctx_dispatch (source=3D, cal= lback=3D, user_data=3D) at async.c:254 #8 0x00007fcff8e6799a in g_main_context_dispatch () from /usr/lib64/libg= lib-2.0.so.0 #9 0x000000000076e606 in glib_pollfds_poll () at main_loop.c:228 #10 0x000000000076e6ab in os_host_main_loop_wait (timeout=3D0) at main_lo= op.c:273 #11 0x000000000076e7d5 in main_loop_wait (nonblocking=3Dnonblocking@entry= =3D0) at main_loop.c:521 #12 0x000000000056b911 in main_loop () at vl.c:2089 #13 0x0000000000420805 in main (argc=3D, argv=3D, envp=3D) at vl.c:4964 (gdb) f 4 #4 0x00000000006207ab in ide_restart_bh (opaque=3D0x38b3430) 2570 assert(s->end_transfer_func =3D=3D ide_atapi_cmd); (gdb) p *bus $7 =3D {qbus =3D {obj =3D {class =3D 0x2313a30, free =3D 0x0, properties = =3D 0x3871520, ref =3D 2, parent =3D 0x38b2b00}, parent =3D 0x38b2b00, na= me =3D 0x3980af0 "ide.0", hotplug_handler =3D 0x0, max_index =3D 1, reali= zed =3D true, children =3D {tqh_first =3D 0x349e050, tqh_last =3D 0x349e060}, sibli= ng =3D {le_next =3D 0x0, le_prev =3D 0x38b3d68}}, master =3D 0x0, slave =3D= 0x349e3c0, ifs =3D {{bus =3D 0x38b3430, unit =3D 0 '\000', drive_kind =3D= IDE_HD, cylinders =3D 0, heads =3D 0, sectors =3D 0, chs_trans =3D 0, nb_se= ctors =3D 0, mult_sectors =3D 16, identify_set =3D 0, identify_data =3D '= \000' , drive_serial =3D 1, drive_serial_str =3D '\000' , drive_model_str =3D= '\000' , wwn =3D 0, feature =3D 0 '\000', error =3D 1 = '\001', nsector =3D 0, sector =3D 0 '\000', lcyl =3D 96 '`', hcyl =3D 0 '\000', hob_feature =3D 0 '\000', hob_nsector =3D 0 '\00= 0', hob_sector =3D 0 '\000', hob_lcyl =3D 0 '\000', hob_hcyl =3D 0 '\000'= , select =3D 160 '\240', status =3D 80 'P', lba48 =3D 0 '\000', blk =3D 0= x0, version =3D "\000\000\000\000\000\000\000\000", events =3D {eject_r= equest =3D false, new_media =3D false}, sense_key =3D 0 '\000', asc =3D 0= '\000', tray_open =3D false, tray_locked =3D false, cdrom_changed =3D 0 '\000', packet_transfer_size =3D 0, elementary_= transfer_size =3D 0, io_buffer_index =3D 0, lba =3D 0, cd_sector_size =3D= 0, atapi_dma =3D 0, acct =3D {bytes =3D 0, start_time_ns =3D 0, type =3D BLOCK_ACCT_READ}, pio_aiocb =3D 0x0, iov =3D {iov_base =3D= 0x0, iov_len =3D 0}, qiov =3D {iov =3D 0x0, niov =3D 0, nalloc =3D 0, si= ze =3D 0}, buffered_requests =3D {lh_first =3D 0x0}, io_buffer_offset =3D= 0, io_buffer_size =3D 0, sg =3D {sg =3D 0x0, nsg =3D 0, nalloc =3D 0, = size =3D 0, dev =3D 0x0, as =3D 0x0}, req_nb_sectors =3D 0, end_transfer_= func =3D 0x61b780 , data_ptr =3D 0x7fcffd126800 "\377\377\377\377", data_end =3D 0x7fcf= fd126800 "\377\377\377\377", io_buffer =3D 0x7fcffd126800 "\377\377\377\3= 77", io_buffer_total_len =3D 131076, cur_io_buffer_offset =3D 0, cur_io_buffer_len =3D 0, end_transfer_fn_idx =3D 0 '\000', sector_w= rite_timer =3D 0x39e5c60, irq_count =3D 0, ext_error =3D 0 '\000', mdata_= size =3D 0, mdata_storage =3D 0x0, media_changed =3D 0, dma_cmd =3D IDE_DMA_READ, smart_enabled =3D 0 '\000', smart_autosav= e =3D 0 '\000', smart_errors =3D 0, smart_selftest_count =3D 0 '\000', sm= art_selftest_data =3D 0x39e6000 "", ncq_queues =3D 0}, {bus =3D 0x38b3430= , unit =3D 1 '\001', drive_kind =3D IDE_CD, cylinders =3D 0, heads =3D= 0, sectors =3D 0, chs_trans =3D 0, nb_sectors =3D 0, mult_sectors =3D 16= , identify_set =3D 1, identify_data =3D "\300\205", '\000' , "MQ0000 2"= , ' ' , "\003\000\000\002\004\000.2+5 EQUMD DVR-MO",= ' ' , "\000\000\001\000\000\003\000\000\000\000\000\00= 0\a", '\000' , "\a\000\a\000\003\000\264\000\264\000,\0= 01\264\000\000\000\000\000\036\000\036", '\000' , "\036= ", '\000' , "?", '\000' , drive_seri= al =3D 2, drive_serial_str =3D "QM00002", '\000' , driv= e_model_str =3D "QEMU DVD-ROM", '\000' , wwn =3D 0, fea= ture =3D 0 '\000', error =3D 0 '\000', nsector =3D 3, sector =3D 0 '\000', lcyl =3D 18 '\022', hcyl =3D 0 '\000', hob_fea= ture =3D 0 '\000', hob_nsector =3D 3 '\003', hob_sector =3D 0 '\000', hob= _lcyl =3D 0 '\000', hob_hcyl =3D 0 '\000', select =3D 176 '\260', status =3D 80 'P', lba48 =3D 0 '\000', blk =3D 0x2498650, version =3D= "2.5+\000\000\000\000", events =3D {eject_request =3D false, new_media =3D= false}, sense_key =3D 2 '\002', asc =3D 58 ':', tray_open =3D false, tray_locked =3D false, cdrom_changed =3D 0 '\000', packet_transfer_= size =3D 0, elementary_transfer_size =3D 0, io_buffer_index =3D 0, lba =3D= 0, cd_sector_size =3D 0, atapi_dma =3D 0, acct =3D {bytes =3D 0, start_time_ns =3D 0, type =3D BLOCK_ACCT_READ}, pio_aiocb =3D 0x0= , iov =3D {iov_base =3D 0x0, iov_len =3D 0}, qiov =3D {iov =3D 0x0, niov = =3D 0, nalloc =3D 0, size =3D 0}, buffered_requests =3D {lh_first =3D 0x0= }, io_buffer_offset =3D 0, io_buffer_size =3D 0, sg =3D {sg =3D 0x0, n= sg =3D 0, nalloc =3D 0, size =3D 0, dev =3D 0x0, as =3D 0x0}, req_nb_sect= ors =3D 0, end_transfer_func =3D 0x61b780 , data_ptr =3D 0x7fcff03ca800 "\377\377\377\377", data_end =3D 0x7fcf= f03ca800 "\377\377\377\377", io_buffer =3D 0x7fcff03ca800 "\377\377\377\3= 77", io_buffer_total_len =3D 131076, cur_io_buffer_offset =3D 0, cur_io_buffer_len =3D 0, end_transfer_fn_idx =3D 0 '\000', sector_w= rite_timer =3D 0x39e5ca0, irq_count =3D 0, ext_error =3D 0 '\000', mdata_= size =3D 0, mdata_storage =3D 0x0, media_changed =3D 0, dma_cmd =3D IDE_DMA_READ, smart_enabled =3D 1 '\001', smart_autosav= e =3D 1 '\001', smart_errors =3D 0, smart_selftest_count =3D 0 '\000', sm= art_selftest_data =3D 0x39e7000 "", ncq_queues =3D 0}}, bh =3D 0x0, bus_id =3D 0, max_units =3D 2, dma =3D 0x38b45f0, unit =3D 1 '\001', cm= d =3D 8 '\b', irq =3D 0x39e5ce0, error_status =3D 0, retry_unit =3D 1 '\0= 01', retry_sector_num =3D -1, retry_nsector =3D 2, portio_list =3D { ports =3D 0xe61a20 , owner =3D 0x0, address_space =3D= 0x23527e0, nr =3D 1, regions =3D 0x3980b10, opaque =3D 0x38b3430, name =3D= 0x8d2724 "ide", flush_coalesced_mmio =3D false}, portio2_list =3D { ports =3D 0xe619c0 , owner =3D 0x0, address_space =3D= 0x23527e0, nr =3D 1, regions =3D 0x39b3400, opaque =3D 0x38b3430, name =3D= 0x8d2724 "ide", flush_coalesced_mmio =3D false}, vmstate =3D 0x39e5eb0} (gdb) p *(BMDMAState*)0x38b45f0 $9 =3D {dma =3D {ops =3D 0xd51280 , iov =3D {iov_base =3D 0x0,= iov_len =3D 0}, qiov =3D {iov =3D 0x0, niov =3D 0, nalloc =3D 0, size =3D= 0}, aiocb =3D 0x0}, cmd =3D 0 '\000', status =3D 4 '\004', addr =3D 0, b= us =3D 0x38b3430, cur_addr =3D 0, cur_prd_last =3D 0, cur_prd_addr =3D 0, cur_prd_len =3D= 0, dma_cb =3D 0x0, addr_ioport =3D {parent_obj =3D {class =3D 0x2327d00,= free =3D 0x0, properties =3D 0x3871180, ref =3D 1, parent =3D 0x38b2b00}= , romd_mode =3D true, ram =3D false, subpage =3D false, readonly =3D fa= lse, rom_device =3D false, flush_coalesced_mmio =3D false, global_locking= =3D true, dirty_log_mask =3D 0 '\000', ram_block =3D 0x0, owner =3D 0x38= b2b00, iommu_ops =3D 0x0, ops =3D 0xe8c8c0 , opaque =3D= 0x38b45f0, container =3D 0x38b4b20, size =3D 0x0000000000000000000000000= 0000004, addr =3D 4, destructor =3D 0x46fc40 , align =3D 0,= terminates =3D true, ram_device =3D false, enabled =3D true, warning_pri= nted =3D false, vga_logging_count =3D 0 '\000', alias =3D 0x0, alias_offset =3D 0, priority =3D 0, subregions =3D {tqh_first =3D 0x0= , tqh_last =3D 0x38b46f8}, subregions_link =3D {tqe_next =3D 0x38b4750, t= qe_prev =3D 0x38b4a98}, coalesced =3D {tqh_first =3D 0x0, tqh_last =3D 0x= 38b4718}, name =3D 0x38e90c0 "bmdma", ioeventfd_nb =3D 0, ioeventfds =3D 0x0, i= ommu_notify =3D {lh_first =3D 0x0}, iommu_notify_flags =3D IOMMU_NOTIFIER= _NONE}, extra_io =3D {parent_obj =3D {class =3D 0x2327d00, free =3D 0x0, properties =3D 0x3871060, ref =3D 1, parent =3D 0x38b2b00}, romd_mo= de =3D true, ram =3D false, subpage =3D false, readonly =3D false, rom_de= vice =3D false, flush_coalesced_mmio =3D false, global_locking =3D true, dirty_log_mask =3D 0 '\000', ram_block =3D 0x0, owner =3D 0x38b2b00, = iommu_ops =3D 0x0, ops =3D 0xd516c0 , opaque =3D 0x38b45f= 0, container =3D 0x38b4b20, size =3D 0x00000000000000000000000000000004, addr =3D 0, destructor =3D 0x46fc40 , = align =3D 0, terminates =3D true, ram_device =3D false, enabled =3D true,= warning_printed =3D false, vga_logging_count =3D 0 '\000', alias =3D 0x0= , alias_offset =3D 0, priority =3D 0, subregions =3D {tqh_first =3D 0x0= , tqh_last =3D 0x38b47f8}, subregions_link =3D {tqe_next =3D 0x0, tqe_pre= v =3D 0x38b4708}, coalesced =3D {tqh_first =3D 0x0, tqh_last =3D 0x38b481= 8}, name =3D 0x38b6af0 "piix-bmdma", ioeventfd_nb =3D 0, ioeventfds =3D 0= x0, iommu_notify =3D {lh_first =3D 0x0}, iommu_notify_flags =3D IOMMU_NOT= IFIER_NONE}, irq =3D 0x285c930, migration_compat_status =3D 36 '$', migration_retry_unit =3D 1 '\001', migration_retry_sector_num =3D -1, m= igration_retry_nsector =3D 2, pci_dev =3D 0x38b2b00} (gdb) --=20 2.8.3