From nobody Sat Feb 12 11:53:24 2022 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A53411957A4D for ; Sat, 12 Feb 2022 11:53:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jwplm2kgLz3kQr for ; Sat, 12 Feb 2022 11:53:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3E8D326EEE for ; Sat, 12 Feb 2022 11:53:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 21CBrOhS002095 for ; Sat, 12 Feb 2022 11:53:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21CBrOnj002094 for virtualization@FreeBSD.org; Sat, 12 Feb 2022 11:53:24 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 260200] AHCI emulation throws CAM errors when backed by -t malloc memory disk devices Date: Sat, 12 Feb 2022 11:53:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: afedorov@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644666804; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kItpUy8hN++gQJF46iD9xn3wcFK9XlVds7VeOpvCI5g=; b=QTWS11KT9KOitFlKrmtEkPSRfMhrjZLJzilF2SJcxV6BcYGX7PXktj7fNCEAed3Dp3TZ95 4Syd4WZW3O6tUY8rs1n3qkfaf5/HR5MPcnneV7eL96kPS7EDuvx0nCNDHIn1nnD3nCbeZ0 8cRpImcCEGEpLaFAAtqBv8940hrOjupzBrmWDCPSFmErY4ncBIYsJVuGYmEERgZlii/Ppk pqPz8+RVDpqR4ww/UntoHsVOnUZePkGjBfSMavgLWZPFb4ZDjpPnAo5SiT7F24u/EkhLcz 2MCVQs2NVuZFNS5VQupKLXgUBaEdKL19TwDwfgK7zLGiAntVvHRJGRPdC84G/A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644666804; a=rsa-sha256; cv=none; b=d5wpprmEk43ounGkV6Y/0C+YfdQmsGPR7S0bpMvyPOhGbNdOkfFdQyYjc8PCYsVhCd76Qm vH3ru3EYiijMJBMasAXPK7i+ekrDzDenJW7s7bruBsaG1SKFdjTHvcYznuwj0uOFu1e5WZ aFKOT17H9E09s1/1VSMtPL6SgySJQJLjWXgulxIkKSrGD2MgXhCHvqzDWeZuAVrQdexMRH P1btxqFsbnE5uXCW/dYExrQr8xnUc5SaQhPrPsleoC/XlwaLT0hLom8mKWZS+JQLAhFSDE q3cjXbZjZSijURnFdibF7GURskeqTeMJ71rv7NOYLNvwi1K/MJKvKpZpd4cRfw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260200 --- Comment #3 from Aleksandr Fedorov --- Second way: diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 308374f49f14..affb0780fa4a 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -643,6 +643,9 @@ mdstart_malloc(struct md_s *sc, struct bio *bp) case BIO_WRITE: case BIO_DELETE: break; + case BIO_FLUSH: + bp->bio_resid =3D 0; + return (0); default: return (EOPNOTSUPP); } --=20 You are receiving this mail because: You are the assignee for the bug.=