[Bug 215740] [bhyve] utilizing passthru breaks raw device usage with virtio-blk | ahci-hd
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215740 --- Comment #7 from Harald Schmalzbauer --- Is there anybody who has checked whether the steps to reproduce show the reported results? Meaning, is there anybody who can confirm correct behaviour in that case? I observed many more, at first sight completely unrelated strange errors, but all show up as soon as one condition is true: shutting down a bhyve-guest which had ppt in use. Latest example: panic: Memory modified after free 0xf8002486a030(48) val=0 @ 0xf8002486a030 cpuid = 5 KDB: stack backtrace: #0 0x805bf327 at kdb_backtrace+0x67 #1 0x8057f266 at vpanic+0x186 #2 0x8057f2e3 at panic+0x43 #3 0x8082eaeb at trash_ctor+0x4b #4 0x8082aaec at uma_zalloc_arg+0x52c #5 0x813b54a6 at zio_add_child+0x26 #6 0x813b5a05 at zio_create+0x385 #7 0x813b6de2 at zio_vdev_child_io+0x232 #8 0x81396be0 at vdev_mirror_io_start+0x370 #9 0x813bc629 at zio_vdev_io_start+0x4a9 #10 0x813b76bc at zio_execute+0x36c #11 0x813b6868 at zio_nowait+0xb8 #12 0x81396bec at vdev_mirror_io_start+0x37c #13 0x813bc383 at zio_vdev_io_start+0x203 #14 0x813b76bc at zio_execute+0x36c #15 0x805d10dd at taskqueue_run_locked+0x13d #16 0x805d1e78 at taskqueue_thread_loop+0x88 #17 0x80543844 at fork_exit+0x84 #0 doadump (textdump=) at pcpu.h:222 #1 0x8057ece0 in kern_reboot (howto=260) at /usr/local/share/deploy-tools/RELENG_11/src/sys/kern/kern_shutdown.c:366 #2 0x8057f2a0 in vpanic (fmt=, ap=) at /usr/local/share/deploy-tools/RELENG_11/src/sys/kern/kern_shutdown.c:759 #3 0x8057f2e3 in panic (fmt=) at /usr/local/share/deploy-tools/RELENG_11/src/sys/kern/kern_shutdown.c:690 #4 0x8082eaeb in trash_ctor (mem=, size=, arg=, flags=) at /usr/local/share/deploy-tools/RELENG_11/src/sys/vm/uma_dbg.c:80 #5 0x8082aaec in uma_zalloc_arg (zone=0xf8001febc680, udata=0xf8001ad5f340, flags=) at /usr/local/share/deploy-tools/RELENG_11/src/sys/vm/uma_core.c:2152 #6 0x813b54a6 in zio_add_child (pio=0xf8026f350b88, cio=0xf8002478b7b0) at /usr/local/share/deploy-tools/RELENG_11/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c:460 #7 0x813b5a05 in zio_create (pio=0xf8026f350b88, spa=, txg=433989, bp=, data=0xfe0058afa000, size=1024, type=, priority=ZIO_PRIORITY_ASYNC_WRITE, flags=, vd=, offset=, zb=, pipeline=) at /usr/local/share/deploy-tools/RELENG_11/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c:690 #8 0x813b6de2 in zio_vdev_child_io (pio=0xf8026f350b88, bp=, vd=, offset=325398016, data=, size=1024, type=, flags=1048704, done=) at /usr/local/share/deploy-tools/RELENG_11/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c:1141 #9 0x81396be0 in vdev_mirror_io_start (zio=0xf8026f350b88) at /usr/local/share/deploy-tools/RELENG_11/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_mirror.c:488 #10 0x813bc629 in zio_vdev_io_start (zio=0xf8026f350b88) at /usr/local/share/deploy-tools/RELENG_11/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c:3143 #11 0x813b76bc in zio_execute (zio=) at /usr/local/share/deploy-tools/RELENG_11/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c:1681 #12 0x813b6868 in zio_nowait (zio=0xf8026f350b88) at /usr/local/share/deploy-tools/RELENG_11/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c:1739 #13 0x81396bec in vdev_mirror_io_start (zio=0xf8026f7a7b88) at /usr/local/share/deploy-tools/RELENG_11/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_mirror.c:488 #14 0x813bc383 in zio_vdev_io_start (zio=0xf8026f7a7b88) at /usr/local/share/deploy-tools/RELENG_11/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c:3021 #15 0x813b76bc in zio_execute (zio=) at /usr/local/share/deploy-tools/RELENG_11/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c:1681 #16 0x805d10dd in taskqueue_run_locked (queue=0xf8001ab5a700) at /usr/local/share/deploy-tools/RELENG_11/src/sys/kern/subr_taskqueue.c:454 #17 0x805d1e78 in taskqueue_thread_loop (arg=) at /usr/local/share/deploy-tools/RELENG_11/src/sys/kern/subr_taskqueue.c:741 #18 0x80543844 in fork_exit (callout=0x805d1df0 , arg=0xf8001aa90720, frame=0xfe043f609ac0) at /usr/local/share/deploy-tools/RELENG_11/src/sys/kern/kern_fork.c:1042 #19 0x808598ae in fork_trampoline () at /usr/local/share/deploy-tools/RELENG_11/src/sys/amd64/amd64/exception.S:611 #20 0x in ?? () I consider this as a severe problem, which shouldn't exist in 11.1-RELEASE. If nobody can prove my findings wrong, using passthru should be disabled in RELENG_11_1 until it can be ruled out as source of these strange problems (some form of memory corruption). Thanks
[Bug 215740] [bhyve] utilizing passthru breaks raw device usage with virtio-blk | ahci-hd
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215740 --- Comment #6 from Harald Schmalzbauer --- Created attachment 182869 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=182869&action=edit Vebose boot of ppt corruvting /dev/ada via bhyve-ahci I tried to investigate further. I can confirm that the same procedure also breaks UEFI booting: X64 Exception Type - 000D CPU Apic ID - RIP - 7FB00FF5, CS - 0028, RFLAGS - 00010002 ExceptionData - RAX - , RCX - 0008, RDX - 0408 RBX - 0001, RSP - 7FBEF468, RBP - 7FBEF7C8 RSI - 7E549B2E, RDI - 7FBEF468 R8 - 7FBEF97C, R9 - 7FC16A9F, R10 - 03F8 R11 - 0040, R12 - , R13 - R14 - , R15 - DS - 0008, ES - 0008, FS - 0008 GS - 0008, SS - 0008 CR0 - 8033, CR2 - , CR3 - 7FB8E000 CR4 - 0668, CR8 - DR0 - , DR1 - , DR2 - DR3 - , DR6 - 0FF0, DR7 - 0400 GDTR - 7FB78E98 003F, LDTR - IDTR - 7F711018 0FFF, TR - FXSAVE_STATE - 7FBEF0C0 This happens as soon as I add a passthru device. Attached is a verbose boot of an install-iso, with bhyve-ahci (responsive, dd to /dev/null leads to _real_ disk activity, unfortunately NULLs only, not the disk's data). One thin I noticed is that I always get the message "pcib0: no PRT entry for 0.5.INTA" for any passthru device, regardless which slot I use. Any help highly appreciated! How do others use passthru? -harry -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: [Bug 215740] [bhyve] utilizing passthru breaks raw device usage with virtio-blk | ahci-hd
Hi Harry, Bezüglich bugzilla-nore...@freebsd.org's Nachricht vom 04.01.2017 21:37 (localtime): https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215740 … --- Comment #1 from Peter Grehan --- Would you be able to post a verbose dmesg (boot -v) ? Due to lack of knowledge I experimented with BIOS VT-d settings "Remap Interrupt enable" and "Remap DMA enable". No difference in any combination. Is there anything else I can provide to help narrowing down the problem? Has anybody else ever tried such a VM (using character special file as virtio-blk backend together with a passthru device)? With success? I had a look at the dmesg logs you posted in the bug report - everything looked fine there. I'll give it a try and see if I can repro. later, Peter. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: [Bug 215740] [bhyve] utilizing passthru breaks raw device usage with virtio-blk | ahci-hd
Bezüglich bugzilla-nore...@freebsd.org's Nachricht vom 04.01.2017 21:37 (localtime): > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215740 > … > --- Comment #1 from Peter Grehan --- > Would you be able to post a verbose dmesg (boot -v) ? Due to lack of knowledge I experimented with BIOS VT-d settings "Remap Interrupt enable" and "Remap DMA enable". No difference in any combination. Is there anything else I can provide to help narrowing down the problem? Has anybody else ever tried such a VM (using character special file as virtio-blk backend together with a passthru device)? With success? Thanks, -harry ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
[Bug 215740] [bhyve] utilizing passthru breaks raw device usage with virtio-blk | ahci-hd
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215740 --- Comment #5 from Harald Schmalzbauer --- (In reply to Peter Grehan from comment #1) Thanks for your attention! Please find them attached, I hope my 3-part separation doesn't confuse anybody... -harry -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
[Bug 215740] [bhyve] utilizing passthru breaks raw device usage with virtio-blk | ahci-hd
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215740 --- Comment #4 from Harald Schmalzbauer --- Created attachment 178539 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=178539&action=edit Verbose boot log part 3, listing rest (msi assignment + consumer attaching messages) -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
[Bug 215740] [bhyve] utilizing passthru breaks raw device usage with virtio-blk | ahci-hd
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215740 --- Comment #3 from Harald Schmalzbauer --- Created attachment 178538 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=178538&action=edit Verbose boot log part 2, listing device probe messages -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
[Bug 215740] [bhyve] utilizing passthru breaks raw device usage with virtio-blk | ahci-hd
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215740 --- Comment #2 from Harald Schmalzbauer --- Created attachment 178537 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=178537&action=edit Verbose boot log part 1, listing ACPI+CPU messages -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
[Bug 215740] [bhyve] utilizing passthru breaks raw device usage with virtio-blk | ahci-hd
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215740 Peter Grehan changed: What|Removed |Added CC||gre...@freebsd.org --- Comment #1 from Peter Grehan --- Would you be able to post a verbose dmesg (boot -v) ? -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
[Bug 215740] [bhyve] utilizing passthru breaks raw device usage with virtio-blk | ahci-hd
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215740 Mark Linimon changed: What|Removed |Added CC|freebsd-am...@freebsd.org | Assignee|freebsd-b...@freebsd.org|freebsd-virtualization@Free ||BSD.org -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"