Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADB47C19F2D for ; Thu, 11 Aug 2022 08:36:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 3967740C56; Thu, 11 Aug 2022 08:36:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 3967740C56 Authentication-Results: smtp2.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=P0l8IcjK X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YIsnQpqBrn_o; Thu, 11 Aug 2022 08:36:45 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp2.osuosl.org (Postfix) with ESMTPS id CD4F74025F; Thu, 11 Aug 2022 08:36:44 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org CD4F74025F Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 98736C0033; Thu, 11 Aug 2022 08:36:44 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 328CDC002D for ; Thu, 11 Aug 2022 08:36:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id EDE628140D for ; Thu, 11 Aug 2022 08:36:42 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org EDE628140D Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=P0l8IcjK X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jGcl7426p_9S for ; Thu, 11 Aug 2022 08:36:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org AF76D8140F Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp1.osuosl.org (Postfix) with ESMTPS id AF76D8140F for ; Thu, 11 Aug 2022 08:36:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660207000; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FWJ1TtCFzQxMqrkhZVnYiwTdjQdpAimD5051fxwruHM=; b=P0l8IcjKj8SQpZidHVy96URGsxYpVpuwuGg3efOkPruzVdEJkvh/dt30rivhLmIBBPR0Ta bidv8FqZZhzkcVZfkt94DmCi7G89PrOHhh+JjYErzwiW5KDsqUa8P0ZzPbw5la7k2m3gTt Twl624xjVs3jRCaYir0Ft38ZDz0MigA= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-3-l32NEk7zOOq0LjkqK24VNQ-1; Thu, 11 Aug 2022 04:36:39 -0400 X-MC-Unique: l32NEk7zOOq0LjkqK24VNQ-1 Received: by mail-qt1-f199.google.com with SMTP id hf13-20020a05622a608d00b003214b6b3777so12754307qtb.13 for ; Thu, 11 Aug 2022 01:36:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=FWJ1TtCFzQxMqrkhZVnYiwTdjQdpAimD5051fxwruHM=; b=H8kFjq0sWjbEGLF+1BJIN3bdFMUvC4kcDzNiLxeGkUb2SGBcR6ovehAU1Baejj0BD3 rohpwdL5FKbDRdMYf6KtY0C1p4TLkZMX0IIb9SkFbfSMEe0aQyQv0rSlt1YcWo5Axl4E wCib+JPkmtU5rT9ngCoExsFVOJaSjZ9swWfWvm2UygPC9cqcEPKcHH47pmD2xR1VNjem XIvXpG9iL9gd1yRvlbZSW6IUUzO3J/1A9akQj1DBkqQLtBLe8vdKF4/8hAEYS1ufBpfJ VaT14g3dZeLFmfoNGvxJJbhrzNa4doSc5Ww1CvDOiM+JTBQkKSkWhCLhZ0AktRDoS8fb LGQQ== X-Gm-Message-State: ACgBeo0ZYunxSLLJV+8KxShZ2QL9TESwHydDGgPDvUMhzDthsHCisjYa c3iwQIdMKCgJEdkMmON1nyLy3BoVV9vt5BaxjohWbkwlIweHFnqMj6EoZ7CWAFzOpzRHd7kXX1J k2cGlyKHw8+qbZHCCZZmFOfh4DsvjauX5ODG2Q1qHkieaJSuH/+89pbAS4kqncpNzDwYXhzTpAH gyQOeBEfq9ZLG9XdtdTA== X-Received: by 2002:a05:620a:1903:b0:6b8:c90d:c586 with SMTP id bj3-20020a05620a190300b006b8c90dc586mr24032796qkb.751.1660206998181; Thu, 11 Aug 2022 01:36:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR6HmlG9mm3nf92dLCuVNjWrcJaBVeQSRP85eCW0n/1qzGsVdE31m7ThSf9P9hFhBWfg3fK4iQ== X-Received: by 2002:a05:620a:1903:b0:6b8:c90d:c586 with SMTP id bj3-20020a05620a190300b006b8c90dc586mr24032785qkb.751.1660206997914; Thu, 11 Aug 2022 01:36:37 -0700 (PDT) Received: from step1.redhat.com (host-79-46-200-178.retail.telecomitalia.it. [79.46.200.178]) by smtp.gmail.com with ESMTPSA id ga25-20020a05622a591900b0034361fb2f75sm1343083qtb.22.2022.08.11.01.36.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 01:36:36 -0700 (PDT) From: Stefano Garzarella To: virtualization@lists.linux-foundation.org Subject: [PATCH v3 0/4] vdpa_sim_blk: add support for flush, discard, and write-zeroes Date: Thu, 11 Aug 2022 10:36:28 +0200 Message-Id: <20220811083632.77525-1-sgarzare@redhat.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: linux-kernel@vger.kernel.org, "Michael S. Tsirkin" X-BeenThere: virtualization@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux virtualization List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: virtualization-bounces@lists.linux-foundation.org Sender: "Virtualization" The first 2 patches are in preparation and generalize parts later used by the following patches that add handling of flush, discard, and write-zeroes requests. v3: - fixed clang issue reported by kernel test robot - used le*_to_cpu() to access virtio_blk_discard_write_zeroes fields v2: https://lore.kernel.org/virtualization/20220810094347.20449-1-sgarzare@redhat.com/ v1: https://lore.kernel.org/virtualization/20220428151242.213824-1-sgarzare@redhat.com/ Tree available here: https://gitlab.com/sgarzarella/linux.git vdpa-sim-blk-flush-discard-wz Thanks, Stefano Stefano Garzarella (4): vdpa_sim_blk: check if sector is 0 for commands other than read or write vdpa_sim_blk: make vdpasim_blk_check_range usable by other requests vdpa_sim_blk: add support for VIRTIO_BLK_T_FLUSH vdpa_sim_blk: add support for discard and write-zeroes drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 127 +++++++++++++++++++++++---- 1 file changed, 111 insertions(+), 16 deletions(-) -- 2.37.1 _______________________________________________ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization