From patchwork Sun Jan 29 02:50:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Longpeng(Mike)" X-Patchwork-Id: 4674 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1587775wrn; Sat, 28 Jan 2023 19:01:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXvmeONihCadh2/4BTgCEI99EXE4QPjUFjHILd1Z59bnvOWhlYO0LRr6ya9WAqBG8pVwl9lo X-Received: by 2002:a17:907:1c0b:b0:7c0:f213:4485 with SMTP id nc11-20020a1709071c0b00b007c0f2134485mr66094725ejc.73.1674961300030; Sat, 28 Jan 2023 19:01:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674961300; cv=none; d=google.com; s=arc-20160816; b=eR2xX9jyXbbIwrkgQpX55TZYXXXPZt06U3y9pP1BHQ5/b/TPudi3i42Hb0PjZp17FD XivEgcuhk1TLvUFJ4+P4TuMUik91S4uzHfd3AjNbdKPiKDo1ZAbhlakfRe1jmo5GrqZY seWA8G3If7F+mob8pOG7Wdnr5MtdRvhX7M1SV2lacXA/menAG5V8nXIZ68en7MOeI4TF OVjNbyJQPojDL5Fa/Iy9IOF/ED8tGe4uznT8Jvs8cg/KpCezsnah0Xc9kbbQq7arF99l wMjlxokgAt5XLZqL14v4uU8+NviQ2SlivgpJQRDQn/CagUyD0uKGLsUvbSJze+v/6R3q UfDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=W6eKKmX82/MsGXl9NEcZI8hmb/+SdzgkqVggUgEtxyo=; b=G2tWn+Ab5mgfU0izgDi2xCnJPS0U+iah1yM7RJXgYpKoJYbxbS+vkf4f+GeOXATzOc yPHq0lOQUsZQ2DNT5ov5vCt/nPDPJ8UvRsxwlZ7or42wL+N+hYjk5bTYa4vXBmRtiKGg qlcgOVyE/SZvfESGvMXYAOl8bWnYnTgCJA9LSLxtpfCU94oXWBhZ17C/FdrF0CCVkye9 nUs5qreLS6rBEm427+0SDiKG/jm5is9U44weEYGHnAxKZE+b0QeTCXPMpiLpWsgxwg9M YD4jy9xH6LRUxRhmvHyiOW2GuhsrC0KRI3gXVv+txpQkLaY91LuhRkZs4w/jwWHzS0Sb JwIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 16-20020a17090602d000b007adb388df38si11345614ejk.706.2023.01.28.19.01.16; Sat, 28 Jan 2023 19:01:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231717AbjA2Cun (ORCPT + 99 others); Sat, 28 Jan 2023 21:50:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229790AbjA2Cul (ORCPT ); Sat, 28 Jan 2023 21:50:41 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55FCE1B571 for ; Sat, 28 Jan 2023 18:50:40 -0800 (PST) Received: from kwepemi100025.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4P4G3j2mxBzJrJm; Sun, 29 Jan 2023 10:49:05 +0800 (CST) Received: from DESKTOP-27KDQMV.china.huawei.com (10.174.148.223) by kwepemi100025.china.huawei.com (7.221.188.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Sun, 29 Jan 2023 10:50:37 +0800 From: "Longpeng(Mike)" To: , CC: , , , , , , , , Longpeng Subject: [PATCH v3 0/2] vdpasim: support doorbell mapping Date: Sun, 29 Jan 2023 10:50:32 +0800 Message-ID: <20230129025034.2000-1-longpeng2@huawei.com> X-Mailer: git-send-email 2.25.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.148.223] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi100025.china.huawei.com (7.221.188.158) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756324220501905159?= X-GMAIL-MSGID: =?utf-8?q?1756324220501905159?= From: Longpeng This patchset supports doorbell mapping for vdpasim devices. v2: https://lore.kernel.org/lkml/CACGkMEtdT5fG=ffbpQadkGmzHf6Ax-+L50LsriYqJaW++natMg@mail.gmail.com/T/ Changes v2->v3: - add a new callback named get_vq_notification_pgprot to vdpa_config_ops [Jason] - remove the new added module parameter 'parameter' [Jason] - opencode the schedule/cancel_delayed() [Jason] Changes v1->v2: - support both kick mode and passthrough mode. [Jason] - poll the notify register first. [Jason, Michael] Longpeng (2): vdpa: support specify the pgprot of vq notification area vdpasim: support doorbell mapping drivers/vdpa/vdpa_sim/vdpa_sim.c | 65 ++++++++++++++++++++++++++++++++ drivers/vdpa/vdpa_sim/vdpa_sim.h | 3 ++ drivers/vhost/vdpa.c | 4 +- include/linux/vdpa.h | 9 +++++ 4 files changed, 80 insertions(+), 1 deletion(-)