From owner-svn-src-head@freebsd.org Thu Jul 16 16:45:41 2020 Return-Path: Delivered-To: svn-src-head@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 BE226366E41; Thu, 16 Jul 2020 16:45:41 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B70Vs3C2Nz3WVP; Thu, 16 Jul 2020 16:45:41 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-ot1-f52.google.com with SMTP id t18so4724109otq.5; Thu, 16 Jul 2020 09:45:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8o8y2yh9OSnF52ecXI8E2kn1p9VoByh2+ztFB/6Hu88=; b=M0E3Tx00rrdwHeVyfhZBntoxs+6cNlkANlIBf9SMg8F3741fS8EoEuHaXRE/e+znpT K795bXgvftopnSEIdOGrx2x0M5SRc8QMdZGNJpNGdj9WNpLw2xLlPgBms1Q99TtX2VZh AW1Hv1kI84xz9z/oQERcA8dVXI5/wUP3HLlr4vvaXtsEd/lndmtUrbufFoCSXfkZ5EUG oRpnC0MKb2Xz+fbBBN73fLFoMh9VubekiiCr0sShkYg56O1UW6MZ516sf8s61geyDa2x Jbjct/4ZXj2FGHn3K2wAKjW2eXderqZg5DIKcIHZtdXWhfDgUspYxosLUPaBNfhRqyWr ZaAw== X-Gm-Message-State: AOAM5335v1oVqvADz5/KWMn5AFdzdcPt8+hbNMQ67MJjB+PwmpZKUbBc x9WU2u6qKaFZMoTsrLmImjGwTUjULexodhpxnaSEGkMu X-Google-Smtp-Source: ABdhPJyzgzfALBsYcDP3iKqi2U5Y0V5/XC0FE+cjPgP/kTN5vTy8tmNXFqpR3pTju9QORxwkILL/QpKTcd+VTdRoZo0= X-Received: by 2002:a9d:429:: with SMTP id 38mr5141892otc.291.1594917939876; Thu, 16 Jul 2020 09:45:39 -0700 (PDT) MIME-Version: 1.0 References: <202007161632.06GGWGIR034870@repo.freebsd.org> In-Reply-To: <202007161632.06GGWGIR034870@repo.freebsd.org> From: Alan Somers Date: Thu, 16 Jul 2020 10:45:28 -0600 Message-ID: Subject: Re: svn commit: r363255 - head/sys/dev/virtio/block To: Allan Jude Cc: src-committers , svn-src-all , svn-src-head X-Rspamd-Queue-Id: 4B70Vs3C2Nz3WVP X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2020 16:45:41 -0000 On Thu, Jul 16, 2020 at 10:32 AM Allan Jude wrote: > Author: allanjude > Date: Thu Jul 16 16:32:16 2020 > New Revision: 363255 > URL: https://svnweb.freebsd.org/changeset/base/363255 > > Log: > Add VIRTIO_BLK_T_DISCARD support to the virtio-blk driver > > If the hypervisor advertises support for the DISCARD command then the > guest can perform TRIM commands, freeing space on the backing store. > > If VIRTIO_BLK_F_DISCARD is enabled, advertise DISKFLAG_CANDELETE > > Tested with FreeBSD guests on bhyve and KVM > +1