Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2884414imw; Wed, 6 Jul 2022 13:25:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t2vdpwXp13h+AmPLyikKPedR1YcMyEdyQcq0ZDjWSYGqyuROHhF3M8cAoibonOREwgL5ui X-Received: by 2002:a17:90b:1094:b0:1ef:ab92:2af2 with SMTP id gj20-20020a17090b109400b001efab922af2mr509815pjb.227.1657139155792; Wed, 06 Jul 2022 13:25:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657139155; cv=none; d=google.com; s=arc-20160816; b=wbdneMoNj8pOiXYwCbgxIbFDgvDWBXVtWdK9TeNn/HXRvGykS7kpMghfaAoYsQGT6o aCGiq9+5Js4b7BSqKvozimdR1DDGM+r5iAL1wKf9WHIgzFoNQhOOMp8R1jkENpQQKDrS v8cGgw18UxJKB8DVq+Z0OBtsdudTaqp2B6KdYCncIG57TkaPXBRQ0CF4akRftUTsxUca Dd/z09ERY63dzZi6R1Fdrrdv9u5FQeUDli6bQHV/QTOiEozY0D54jB+Z1A+mD0F1s40w xhhrU/hdE9jAKRY3S/Vzh/m4o13qxlXasFxktAvV9dTNP7+/fUnJjl6JDXpLPmsVgM2c u1fQ== 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:dkim-signature; bh=T/Uniy8LBcxVwi6NUSTS6A3GCA+91o6vI7rMz3Wtdlk=; b=C8ZniAczdCO2jtzeik8ozsLjqp07FvVmPcyw7fLyjD8Y6SP0zXiqZpN2IJXCrOQXsV McQKksrkk5wSoeeUpVYAV0xnMsprDWeQ7lq+W2mJkDH2g4p1BrM9e+SyvfWO+0n4TS0T LPLDgnVQHkrLuYOFr2f/kbYDStMsSREuU0KPh6MWWJKku+qSAnIpXNKM8vRQRMr4P3gE Dfr201fwx5dLIkTrLo51h1LiFGi/mLjDUiZR27risRJusI0lT5F6Rl5idhUMhNGbGZWn nVDwZ4gSq0HppQtz4p2e5avj2kFuUfsi0HnlESmjYQ4naYpfL0KdZ8QZ7ixbYZ6J5qFL QAjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qiUwOsPC; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j188-20020a636ec5000000b0040d512e3b31si55244866pgc.351.2022.07.06.13.25.43; Wed, 06 Jul 2022 13:25:55 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qiUwOsPC; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233809AbiGFTvZ (ORCPT + 99 others); Wed, 6 Jul 2022 15:51:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230029AbiGFTvY (ORCPT ); Wed, 6 Jul 2022 15:51:24 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74C19165BD; Wed, 6 Jul 2022 12:51:22 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id z41so20609634ede.1; Wed, 06 Jul 2022 12:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=T/Uniy8LBcxVwi6NUSTS6A3GCA+91o6vI7rMz3Wtdlk=; b=qiUwOsPCNmCmsMJzHRsMCaqHx/A29XFx+rEtXjpqLg05bj73vgI77R8nubnEYJ+G4/ p3lABAQJJTZVJuLPfbcf0/Fbe8CGrKSC202O5G+CGOx6Ltsc0jTW4ZBsabqe1nhSvicM hGITTa5Eqvo/4HZ2OLE8sSJ1r0Z5cDjhIo9poy31FT4uT+YeMzQBou6F7hhhgFNb0vJB gmaOFBXvzYhqf5RoSr/SXJ6AaRWj15Xso85XVvRCE/8azbqlsFTr9Nc43wazo2H6U4Up 0lZgKwKvQDF3FBwGEZ7WpsN1gQthA4oR2esJEp+LJQ6WbXe6sXLmZpHrG7GEeW8fjJtk O26g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=T/Uniy8LBcxVwi6NUSTS6A3GCA+91o6vI7rMz3Wtdlk=; b=ZIGmxIEubLkKXLb+eTYSKjKHL8M6MXjG83IwLUdAk1BK0emtnWC+cBMGbOHCMOwl8a MUYEd+ylgoHgdPn7M6mcXJXSQfllOfC2XNi5mbaH1r4WMwlerOT4g745ufaPFzo/ESZS gocvOz/h5QCFMN6fBQfN6BIfRUdPndDsUEKfxic1TZvfIbgg61C8uSiOpkj+x3X4rtAX cy1IPtpTXlsInbLaYZivsaWPUMpZhBN6Ru5iQ+Vyim1D3xOsqBF1OxGHS7E9RbCHZ9yz FvbbKP+oDB6pCnemy8MCUOONkD6R3R0BPNVD7f+3c+TxIKnTWWQ8oBrlihTcB7jNXH9c gplQ== X-Gm-Message-State: AJIora9p6HsBzRNihhfsAtqAlFqrvxNVEM1eGUPwiVFz+xiBJpQPZcSv SLS8Fvp9YmToju6loElkYkw= X-Received: by 2002:a05:6402:42cb:b0:43a:5df2:bb5d with SMTP id i11-20020a05640242cb00b0043a5df2bb5dmr23876112edc.36.1657137080986; Wed, 06 Jul 2022 12:51:20 -0700 (PDT) Received: from anparri.mshome.net (host-79-49-199-193.retail.telecomitalia.it. [79.49.199.193]) by smtp.gmail.com with ESMTPSA id kz11-20020a17090777cb00b0072af18329c4sm1968127ejc.225.2022.07.06.12.51.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 12:51:20 -0700 (PDT) From: "Andrea Parri (Microsoft)" To: Christoph Hellwig , Marek Szyprowski , Robin Murphy , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Michael Kelley , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Peter Anvin Cc: linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, iommu@lists.linux.dev, linux-hyperv@vger.kernel.org, x86@kernel.org, "Andrea Parri (Microsoft)" Subject: [RFC PATCH 0/2] dma_direct_{alloc,free}() for Hyper-V IVMs Date: Wed, 6 Jul 2022 21:50:25 +0200 Message-Id: <20220706195027.76026-1-parri.andrea@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Through swiotlb_unencrypted_base. P.S. I'm on vacation for the next couple of weeks starting next Monday; Dexuan/Michael should be able to address review feedback in that period. Andrea Parri (Microsoft) (2): swiotlb,dma-direct: Move swiotlb_unencrypted_base to direct.c dma-direct: Fix dma_direct_{alloc,free}() for Hyperv-V IVMs arch/x86/kernel/cpu/mshyperv.c | 6 +++--- include/linux/dma-direct.h | 2 ++ include/linux/swiotlb.h | 2 -- kernel/dma/direct.c | 38 +++++++++++++++++++++++++++++++++- kernel/dma/swiotlb.c | 12 +++++------ 5 files changed, 47 insertions(+), 13 deletions(-) -- 2.25.1