From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) (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 59C6D35942 for ; Sat, 1 Mar 2025 00:32:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740789124; cv=none; b=i1Qz/Q1afBfi4LevwCM6xqMHEKa3p1NJaDPNpQCI9CrhA4VsBkSDyzqVBUhENya6PKFbW60j+CSv4v0kF3r+bv5r7zdYSFBeQDT/cWs+ipgsWkxL1j4THExOMD4cANsXTiOEL+xLWS/hlJO4mhxYECfH6MyvBN7gQ/k4pFXBgBQ= 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.54 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-f54.google.com with SMTP id 6a1803df08f44-6dd1962a75bso21964496d6.3 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=H9VJkvaPy/PKKb6ERHhUVdsOHBMYKiHTN/pNaHZWsh0DRin7rumsTj3zk5WMEqihni nI1rvuYN6NRrbiOnX2xl/wAn1rjFHo/Xl/GBdUJNTyswq4Ug5yOZoF4PKdK7trlPLU4t WVxUihFbilWwZlTRB97ba/IKMe5hk7FnIz7X0BzbHvak7vhEfIp4cSiUO4LGHWaabuyy 2BGYYfw2qr9ChnyPyTxuYVDvLwnbCHYGv1SesLxlko19Db/8knxwjm/4MrhfkkMuJO1m OoudT3CQ1ovUmN+2B3wu7EVweGXPaU7J7EQuJAUoDbgksPL57+2Rp+iVf2HcHBTcL9sC Bdvg== X-Forwarded-Encrypted: i=1; AJvYcCXdFrvnA4zGGwZYAOrxRMadwa5IoAlViOlZdXS1pPCDz4Yph/NdIV7GPzeVgkcht4HDHBlBki0V8MWY@vger.kernel.org X-Gm-Message-State: AOJu0YztQQyfXcVlIEZp0ApowujX+2LFKv713JUO44sgLggBOFPK/WwX n0vAm+Lgx8X8oNm0vNvpOJuIoBFeYYuSvsuvyKSxbDOjw6y92X78RrKaxFMEL50= X-Gm-Gg: ASbGncuyrGPc5anlKZq8f9j2RmEtJIT0etocY7PTSY9z1HsP6Feb3jmUzEo2b7SePFh nBkLMbDA995RuN0KRyvRrRLEdTIVh7BjEoqKlElpsMh5aASlZWhCZL3xky6qLxe1mayfWG3quHE StEO5txyhXGaiklugmx+rL/KNyY0Vy69WgPeIcdA9h3PFSQfojpNu3jtxZ91uDu11hz0DXg6Y/J YXPrk+R5kRb7jkLkWU0cF5I6nUgIwH1pDRrYuVdVWEmmUxir98R6qBeftu5VMPhKjLScvPrS+uh qJ0X4tpdEiRV1Spd2gXveo+oXYidAa24JU+r3E7I8LUrmviA6ZpNmbL5kw40Up5WRDe8KDiM5yx 8+HhovbXP7exzzaaePA== 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: linux-arch@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