From owner-freebsd-amd64@freebsd.org Tue Jan 3 16:47:31 2017 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 74F5CC9D0D0 for ; Tue, 3 Jan 2017 16:47:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4C450124D for ; Tue, 3 Jan 2017 16:47:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v03GlV4l076923 for ; Tue, 3 Jan 2017 16:47:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 215740] [bhyve] utilizing passthru breaks raw device usage with virtio-blk | ahci-hd Date: Tue, 03 Jan 2017 16:47:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bugzilla.freebsd@omnilan.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2017 16:47:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215740 Bug ID: 215740 Summary: [bhyve] utilizing passthru breaks raw device usage with virtio-blk | ahci-hd Product: Base System Version: 11.0-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: freebsd-bugs@FreeBSD.org Reporter: bugzilla.freebsd@omnilan.de CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org Using a passthru device with bhyve(8) for hosting guests with a physical de= vice as storage backend (regardless if accessed through virtio-blk or ahci-hd) corrupts guest-disk access, while file-backed ahci-hd (or virtio-blk) doesn= 't show that problem with passthru. Steps to reproduce: Use any harddrive containing any installed OS. On the host: 'hd /dev/ada6 | less' See MBR/PMBR code. Use the same device (ada6 in that example) and conncet it to a FreeBSD-Live= -DVD guest with a passthru device involved (e. g. bhyveload -d ./releases/ISO-IMAGES/11.0/FreeBSD-11.0-RELEASE-amd64-disc1.is= o -S -m 2G ppttest && bhyve -u -A -H -P -s 0,hostbridge -s 3,ahci,cd:./releases/ISO-IMAGES/11.0/FreeBSD-11.0-RELEASE-amd64-disc1.iso,h= d:/dev/ada6 -s 5,passthru,0/25/0 -s 31,lpc -l com1,stdio -S -m 2G -c 4 ppttest ) Inside the guest, 'hd /dev/ada0 | less' doesn't work anymore (endless I/O) Using 'dd if=3D/dev/ada6 count=3D1 | hd' shows only 0x0 instead of the outp= ut you saw on the host! Simply repeating this without the passthru device in place solves the probl= em, you see exactly the same bytes inside the guest as on the host. --=20 You are receiving this mail because: You are on the CC list for the bug.=