From owner-freebsd-virtualization@freebsd.org Tue Jul 7 15:38:30 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C6D02365791 for ; Tue, 7 Jul 2020 15:38:30 +0000 (UTC) (envelope-from felix@palmen-it.de) Received: from stef.palmen-it.de (stef.palmen-it.de [IPv6:2001:470:1f0b:bbb:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B1RRT2mHxz3Vgd for ; Tue, 7 Jul 2020 15:38:29 +0000 (UTC) (envelope-from felix@palmen-it.de) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=palmen-it.de; s=20200414; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=w4csffOyrenHvpPTLJX6siWmrVkHmlnHokZXvy+uiAs=; b=UnfRzr9kFBVAqfD0fcOwgMf+q hjEyuHHMLXRNy1sLZRcxrm/17UqEqXb8zBVq8D1vqZcHScbNjG9MIPUNGkyNXB8RKLE1o0xU4WsRr yZGQAs15b7eQpt1MknKgEKD+bJjIiAPzKY9wMZovz3/jgoViVyOnG0JVYFabG5yO7EfGRUwkYavPV 7LscjydQ7SzKBmhazeBChNJ2i+pBAt6sqnbZHbGY2Axd5NxNVy4e03I3dfrosArxp7u/Iqa84ac+u aig2GpwmVGRBOaTmebnVA2af126GHOsPE+wk8iKhF9Jgfz6r/H4Kk8H7LUzRnsMPEyIl/RAWsu05C 8umlrJepA==; Received: from [192.168.71.101] (helo=mail.home.palmen-it.de) by stef.palmen-it.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jspfu-0002Tl-TC for freebsd-virtualization@freebsd.org; Tue, 07 Jul 2020 15:38:26 +0000 Received: from nexus.home.palmen-it.de ([192.168.99.2]) by mail.home.palmen-it.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.94 (FreeBSD)) (envelope-from ) id 1jspfu-000Cv8-GG for freebsd-virtualization@freebsd.org; Tue, 07 Jul 2020 15:38:26 +0000 Date: Tue, 7 Jul 2020 17:40:25 +0200 From: Felix Palmen To: freebsd-virtualization@freebsd.org Subject: Re: bhyve, Windows guest and trim support Message-ID: <20200707154025.wm6u4abbrz5tesha@nexus.home.palmen-it.de> Mail-Followup-To: freebsd-virtualization@freebsd.org X-Face: /1K@t"h.}e~pR@]c7HorQ!T`F^RJCa'BCr#e>IKA{>C/9OTGB4|xh"y2{?1Z5M i2w"AH^pN_LlHR^{+f',_Np~; .B; !M/bL}*qk]p5*r7F5vW}; {:@4u5S?T&f0$7BJ-71Q5SV]:v$`5 A0[DZ:=?S52x8HJ~5@^P_\T@MsjG{R( Organization: palmen-it.de References: <4e0c7427-8bb4-37d6-b717-181d5c9b66d3@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dzbu4rwczftwyi3v" Content-Disposition: inline In-Reply-To: <4e0c7427-8bb4-37d6-b717-181d5c9b66d3@freebsd.org> User-Agent: NeoMutt/20200626 X-Rspamd-Queue-Id: 4B1RRT2mHxz3Vgd X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=palmen-it.de header.s=20200414 header.b=UnfRzr9k; dmarc=pass (policy=none) header.from=palmen-it.de; spf=pass (mx1.freebsd.org: domain of felix@palmen-it.de designates 2001:470:1f0b:bbb:1::1 as permitted sender) smtp.mailfrom=felix@palmen-it.de X-Spamd-Result: default: False [-4.69 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[palmen-it.de:s=20200414]; NEURAL_HAM_MEDIUM(-0.99)[-0.991]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:1f0b:bbb:1::1]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.001]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.41)[0.405]; DKIM_TRACE(0.00)[palmen-it.de:+]; DMARC_POLICY_ALLOW(-0.50)[palmen-it.de,none]; RCVD_IN_DNSWL_NONE(0.00)[2001:470:1f0b:bbb:1::1:from]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[palmen-it.de:dkim] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jul 2020 15:38:30 -0000 --dzbu4rwczftwyi3v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Allan Jude [20200707 10:51]: > I added support for bhyve to understand virtio-blk TRIM messages to > FreeBSD 13 back in April, r360229 Awesome, thanks, I was looking for this as well. The changeset applies almost cleanly to 12.1, only problem are some debug printing macros. As I don't have background knowledge how TRIM works exactly: Should guests that support it automatically free unused space when running on the updated bhyve? Or would I have to do a "clean restart", by creating a new zvol and copying everything over in the guest? > There is a separate patch to teach the FreeBSD virtio-blk driver to send > TRIM commands, it is still in review (needs testing on hypervisors other > than bhyve): >=20 > https://reviews.freebsd.org/D21708 Will need this as well, especially for my ports test-builder VM, as it creates tons of "temporary" data. So, this is already safe to use for a bhyve guest? Or would it make sense to wait for it hitting head? --=20 Dipl.-Inform. Felix Palmen ,.//.......... {web} http://palmen-it.de {jabber} [see email] ,//palmen-it.de {pgp public key} http://palmen-it.de/pub.txt // """"""""""" {pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A --dzbu4rwczftwyi3v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEqJE9VV8uOnQ5ZbmXPvKLCrwC2ioFAl8El2MACgkQPvKLCrwC 2ioNFggAt84SwknGOLu+aOLwZ4AyK3x1PRQbIoaberAug+W0P7xjipVvXn0lzatf 2n4L6uzpOhRmR+GdO+Lj1FVE9K6TD0/ZtcFkA9gAs2MvEVVif648el6pdkt+cJIy k5ZL4WMHo5oKF8YCzS4JKcc2YSgcnD01EjtRBKAQqx+tSWwbDRxm9suZZQt8oWMA lnSmErnBBZeroeen7lYiMZp32wuk9welXJzHPT4ABOa/AL/1vK0DPEKmn1/8qt9B +bogPKNhVw/EJ016ZQQzfwZLB+44sC58m9qyVWR1TobyDXhSPqYf52lgqfNlUPCx JqfVvTHKj8PpETIJmZig86s7Eu5Qyg== =L8yZ -----END PGP SIGNATURE----- --dzbu4rwczftwyi3v--