Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp76851pxv; Tue, 29 Jun 2021 23:59:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRISMCHNYc9QBUsQWojpwq8tcw9TUCpINFbbBwHKMA4qmUyYmtULu6yfQRA31eoseZOgYH X-Received: by 2002:a05:6402:312d:: with SMTP id dd13mr45796849edb.140.1625036348991; Tue, 29 Jun 2021 23:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625036348; cv=none; d=google.com; s=arc-20160816; b=lZ6OjDz7TKDJNpUGxgTJcYrsdQ5vv9cwV7CqqaF5zsWmHJlvUKxNn0lVfBEH4AC8Ss gP3SqdP7mNXRa8WSyqYm3j2BFezJJUg0IvrLDxRIxwACQ0SuVNEWBw1w9tvlH7DuBHPL Uahmn0rV/Mn35Q0KPgheMQ3uCmVwdGYWPPydPRVfl6229giG9jd0RBbHih1ag6l3dwnX 3wN6Em5HMTFvTfd8k8itv+JW3MyRuegEbro2Tb99u/EqaHhEWrs/ykjzKXh45ENKLvBO T8EHN5H3fioqkIT1Oy3Fk8PTOQ0D0vEQ+dZbAQMbP4aBwCrbjAF59wh1MkDj8GYbJ5DA zZkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7hjCe6790yJYG2knci/u7lshTqKfgMUWNj9c/qQQmOI=; b=uyjE3cfILMKL9r/eiyTDWux2M1J1MJslvtQJd7afHBawnbhUfohIiv0Q4SMX3CyuM8 3+iTUZNOKVXHlerfaulhp+5Ioy43RqD74eOTuxVwAyhdX9LSXrOMPSB4KzsGXgcDcMDO BlzsyyeJttBckZldufByG7Zay2s3vSEQ/q0XA6YQ2eH3kVdXSBDy86uOzG/FLTAVwHw3 PyQz+COiLdeXwg19x81RvfShwg6uzjXSGkLjFGUwp248+z5hpBdZ1e9Jzndp4TkRgPby D6WVdEBW9oRfytm7Eqn67g0ZnfdNFRrqk19DPfpfK5CNR385TTAx4eb0F9xyMRjFGEhG i7fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=msqZuJMe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a9si19180693ejj.647.2021.06.29.23.58.45; Tue, 29 Jun 2021 23:59:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=msqZuJMe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232621AbhF3HAH (ORCPT + 99 others); Wed, 30 Jun 2021 03:00:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232445AbhF3HAH (ORCPT ); Wed, 30 Jun 2021 03:00:07 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1EF3C061766; Tue, 29 Jun 2021 23:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=7hjCe6790yJYG2knci/u7lshTqKfgMUWNj9c/qQQmOI=; b=msqZuJMeBAI1Ng4YKMnTEPn4me ZUo+C+FnoFV8z/5bZoOnp+CkdeyyLQV2+Ohs+D5B7OcVQhY4BJVc5puoZVPPEFoteqh/AsSe8PoND QfH9zFiPJv41TALoDbOZkP/NwW/W9zFeZiEs4t9U+IzXEuU1LXjvWqfFlu9eghIBRbiWzMQHTqVev V/LcMCU3NMCcYXJ96J+luawTeg9igB77ulhin/ZRPQt9Osh6dJmDGgxIcF7/5+foNRdc/AFkNzmSC fDZ3o5udhRXWu/5GqiIYdAUJlURi62LvWS/L2fhf3Jh0j3RjkA/XiXikszGS3ZXwUz+gbaQGjU/4w fCjpyQ0A==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1lyU9N-0050qE-2A; Wed, 30 Jun 2021 06:56:50 +0000 Date: Wed, 30 Jun 2021 07:56:45 +0100 From: Christoph Hellwig To: "Tian, Kevin" Cc: Alex Williamson , Jason Gunthorpe , Jean-Philippe Brucker , "Jiang, Dave" , "Raj, Ashok" , "kvm@vger.kernel.org" , Jonathan Corbet , David Woodhouse , Jason Wang , LKML , Kirti Wankhede , "iommu@lists.linux-foundation.org" , Paolo Bonzini , Robin Murphy , David Gibson Subject: Re: [RFC] /dev/ioasid uAPI proposal Message-ID: References: <20210604122830.GK1002214@nvidia.com> <20210604092620.16aaf5db.alex.williamson@redhat.com> <815fd392-0870-f410-cbac-859070df1b83@redhat.com> <20210604155016.GR1002214@nvidia.com> <30e5c597-b31c-56de-c75e-950c91947d8f@redhat.com> <20210604160336.GA414156@nvidia.com> <2c62b5c7-582a-c710-0436-4ac5e8fd8b39@redhat.com> <20210604172207.GT1002214@nvidia.com> <20210604152918.57d0d369.alex.williamson@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 07, 2021 at 03:25:32AM +0000, Tian, Kevin wrote: > > Possibly just a naming thing, but I feel it's better to just talk about > no-snoop or non-coherent in the uAPI. Per Intel SDM wbinvd is a > privileged instruction. A process on the host has no privilege to > execute it. Only when this process holds a VM, this instruction matters > as there are guest privilege levels. But having VFIO uAPI (which is > userspace oriented) to explicitly deal with a CPU instruction which > makes sense only in a virtualization context sounds a bit weird... More importantly the Intel instructions here are super weird. Pretty much every other architecture just has plan old cache writeback/invalidate/writeback+invalidate instructions without all these weird implications.