Received: from mail-qv1-f47.google.com (mail-qv1-f47.google.com [209.85.219.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64EF63594D for ; Sat, 1 Mar 2025 00:32:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740789124; cv=none; b=YPlPnlgdmsesjY4ifvoRI2YafxPa4rK9EWmr46DW3ObSK4N442HVgwib+ykmlKgjWLMaMDBId2cb8SZ5nbzjHFP4gtI/1EqIws1i0wGznaF+4s6sUlUFV5UjRAxI1U9KG7c548Kkhvl9UGVGekSbqHDXBUZRuIDpkKlZQRQToQ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740789124; c=relaxed/simple; bh=IJ/uAZ1nD5RItLsU4XWErABvAF+S58BRfovN898A/9A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PQK3SlIOp6uov7MxQ1fcSF1fLJhPfu7nLf7RaVtcO3OE7pNrvYyfGrYlFQNAX7+h+sL1oPv2aROySOUaHw9A5j9wTLKGjCiuASpsp4ao0bVu2K1xjAvR/zMJwSobfcjqDYFrlLemeZL+yXhUYhk06R7t+DR4FS6l1t5wafNnOa4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=mFC1B1ap; arc=none smtp.client-ip=209.85.219.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="mFC1B1ap" Received: by mail-qv1-f47.google.com with SMTP id 6a1803df08f44-6e895f3365aso20692446d6.0 for ; Fri, 28 Feb 2025 16:32:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1740789122; x=1741393922; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=UGmZpux3eW+jxhKZP1ofv0c4XveJW25IwmZp9EBvmdU=; b=mFC1B1apIrNCT3CEaWOaZfF897Bwkk91NcFrXzphWUUjDCnqun+uvkpQFsbIpfhh7x T37YvUVFipOnx7mADpt9lRYYd0wDcKsNYbbT8BArnl9PDN1xFPcA5iDUPdqZW72H2Wb8 IZdspFVXT2eCxubp/t3zh/EfQHx0oI32EDDn8piS2H99QusRurSm2irfuQzIqLq1r56h qpWyoTRv4WgwMnEnZ4l3k8iV9z49jZLsXw7hnxhX2O4npR74xVsnUnCOBnCHxnMh2uNC m0CgQ8RsrrlPJwLH0B3Lz2gMZayQxGS5PnuZH0GX4KErifVzQGyhlUp9OXDj88E93NDD 9rrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740789122; x=1741393922; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UGmZpux3eW+jxhKZP1ofv0c4XveJW25IwmZp9EBvmdU=; b=xFjRQv0H6Z6caS4x78URKM2gvFPzHfX+5zWPz1jN3zPhVjToUJpvN2wjxgrStJqLJg LNSCQLPP1GVuTkjF1xADkKU+uuzvXr9Ur7rNImy49rPfDBbO6msTIe5FfC1CvPk/OWNN 0gIxcSx2t5KEUalPkYx8TaMXqXJ6gAjKYsFb3biYB6lQHoqfkbmUq7Hk4ajGi/4DHNxB mRv0nI6CFHnwCrIFFfsl5Fy2IdSYPFBpQWwbJoANM6iiHRkhO27K3XsN6SC7PWeNMefg BW/QgaA21YbyKFhWJ14fFlxMaKxrhGcWL/1Y7rv+G4bbSG5VSruu9k/xOG23hSS1p8rb XN5A== X-Forwarded-Encrypted: i=1; AJvYcCXS4oHZu8fFI8h7xvcOabYIPq/G4GncdjXnUmEhsz70Y1uk9L7LiqzpQ6OwU6Q+m7izcjE=@vger.kernel.org X-Gm-Message-State: AOJu0YzgoI003+Mdv4DR0ZFTE5RNuFXat8NMa3O+KRNEmV+VZRIY4ROO kcIN4nX4ztQ4i7YDYqr/JuNqP4ZhE3paqj2qlpNj7ABXAb4EgGL2Rb2HeE7hVFs= X-Gm-Gg: ASbGncvk6fu1zSCiYe0nW0rnBg2hsJDP1f61G1vhByGJaXpUHwg2SvwGKFnFDVxfpr0 Lj7eMIgkN61ubrs4fGhDh2/PFBekxqqzFgOa9Noz48+HcbaDL+11ae+AwLQHp8dIRBZS9gT1EOY 9FIU/7V8Rmm7+35ufHRDci8lePPPGLv6irASVknWEyIzcdRIbCQV2A+yBOG+nQLscfxH+ztCGUr BFRUbXmaKZJefQV0iIM+jlnnyDraUq6hWI+ujAJydGFnYNXC25dG51vI00G0iy/Hq+0zSJsqWkQ hOwTyMN2gDfrFtzCSjFlBeDzNM1QVV3cRG/ZaNR6NO16WkSiOgbJARljM7sZCpX/5N8HXP0g2aL xtPTVFuOM0P4Yp+rM1w== X-Google-Smtp-Source: AGHT+IGisC/6wMYSFfGCwksz3Hqk310E6+QHChS9Lt2rzSb1IaRmOie8VRdlWltqdIKsz9jGOQcrlw== X-Received: by 2002:a05:6214:2586:b0:6e6:617c:abb6 with SMTP id 6a1803df08f44-6e8a0cd3b06mr68816196d6.6.1740789122305; Fri, 28 Feb 2025 16:32:02 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-68-128-5.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.128.5]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6e897652066sm27657806d6.30.2025.02.28.16.32.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2025 16:32:01 -0800 (PST) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1toAls-00000000VPg-3Ini; Fri, 28 Feb 2025 20:32:00 -0400 Date: Fri, 28 Feb 2025 20:32:00 -0400 From: Jason Gunthorpe To: Alexey Kardashevskiy Cc: Xu Yilun , x86@kernel.org, kvm@vger.kernel.org, linux-crypto@vger.kernel.org, linux-pci@vger.kernel.org, linux-arch@vger.kernel.org, Sean Christopherson , Paolo Bonzini , Tom Lendacky , Ashish Kalra , Joerg Roedel , Suravee Suthikulpanit , Robin Murphy , Kevin Tian , Bjorn Helgaas , Dan Williams , Christoph Hellwig , Nikunj A Dadhania , Michael Roth , Vasant Hegde , Joao Martins , Nicolin Chen , Lu Baolu , Steve Sistare , Lukas Wunner , Jonathan Cameron , Suzuki K Poulose , Dionna Glaze , Yi Liu , iommu@lists.linux.dev, linux-coco@lists.linux.dev, Zhi Wang , "Aneesh Kumar K . V" Subject: Re: [RFC PATCH v2 14/22] iommufd: Add TIO calls Message-ID: <20250301003200.GQ5011@ziepe.ca> References: <20250218111017.491719-1-aik@amd.com> <20250218111017.491719-15-aik@amd.com> <2fe6b3c6-3eed-424d-87f0-34c4e7e1c906@amd.com> <20250226131202.GH5011@ziepe.ca> <433217be-55e3-477b-bc10-cf81f02ab21e@amd.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <433217be-55e3-477b-bc10-cf81f02ab21e@amd.com> On Thu, Feb 27, 2025 at 11:33:31AM +1100, Alexey Kardashevskiy wrote: > > > On 27/2/25 00:12, Jason Gunthorpe wrote: > > On Wed, Feb 26, 2025 at 06:49:18PM +0800, Xu Yilun wrote: > > > > > E.g. I don't think VFIO driver would expect its MMIO access suddenly > > > failed without knowing what happened. > > > > What do people expect to happen here anyhow? Do you still intend to > > mmap any of the MMIO into the hypervisor? No, right? It is all locked > > down? > > This patchset expects it to be mmap'able as this is how MMIO gets mapped in > the NPT and SEV-SNP still works with that (and updates the RMPs on top), the > host os is not expected to access these though. TDX will handle this somehow > different. Thanks, I'm expecting you'll wrap that in a FD, since iommufd will not be accessing MMIO through mmaps. Jason