Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp750935pxb; Wed, 25 Aug 2021 14:14:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyd2DbA2jLNq0mUk4HbfZ+lSlJKgr+IUFX5MBfklvAUFrYMwTpjmwkUHY3+4pEQtY3WfkUn X-Received: by 2002:a92:c0ce:: with SMTP id t14mr258162ilf.72.1629926097102; Wed, 25 Aug 2021 14:14:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629926097; cv=none; d=google.com; s=arc-20160816; b=DCdvUYasL2diU/3C/f9gdVD6kuoip4o8xMgv9kz/tl+mWDV7ORNNY9d4l2irCCosc2 A/FbTTKcMdGfqP9MHkBNQFssYV19scxFV4yEsqNBkLIjUskCVzNBMBF6mlzS8WPaUujM nmTJg0/bveMYGL3MTP7OCk57x5U1zWqoewFQukr75Gwd+QYrUi+B1dKBuH2utFWfWUPa MB3mnEPK1l4ZM2mRO1dg9BNLyjN+uOuTjHiYOVBIISbY8rU8+xm1YFoHXkvOYYowtrwk rmAn/zj9pCxOf/95nXVbPqJlSLcvrgJtp8ROzAmNk1MkMP9nHrHnvhC6MooXt/Fbc/FR +5eg== 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=Lle9EtzdDuuvHkr0LLwQT9EVGOpNCaGD9wj5yYah/wc=; b=w73L41Jx/C4EVZYW+5BzxTDUcN0sy/0Q+f4hXmSbATsRFj0jaZwBLDUBe6XW64/dZR QAhS7bXWxGDKgwWRBStWDmUmmzZX5g+FprjUE1FJsN3EVp6sX7kiYwvHI2zrqbEAPliH O7VSq2ZVHwWn6/hZvbmx0glD+4ZqVOIKad751L4MRe1pNfV9O2Pe7Ab5ariv3z9HRpgj PUrEa6lLvefByv8sX+trz+VAFqsXzopXyNBwg+K7d8fbdBHtuh9g5lswUFy5ObiuLue3 1otINUjiqfGcc3cWo1J9c6MYBXW7KGt9pCvqB2nZzBaXlhX40GDj62EpQLDLnmEuw8Q4 e38g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kZXHdOM1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p8si966280ilh.18.2021.08.25.14.14.45; Wed, 25 Aug 2021 14:14:57 -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=@linuxfoundation.org header.s=korg header.b=kZXHdOM1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242644AbhHYUoW (ORCPT + 99 others); Wed, 25 Aug 2021 16:44:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:54512 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231873AbhHYUoV (ORCPT ); Wed, 25 Aug 2021 16:44:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 12EAF61058; Wed, 25 Aug 2021 20:43:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1629924215; bh=4oNPo3l/vty6k+TfUufw3+1KoqSnq8T8Db/CsKsDc9Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kZXHdOM1rueTqtqsBmROnb/V6wlREMaANn9uDYUnxNB+sgtXMsNDa1YfQHowJNK72 IBfW7xJLIMvkEsqdnCfpQNV5x2H365mPeKcnkkyh5SW6/Iid2NIOJYqHg7xEPLxX51 4rE2BSEpntAARCupS80J5UNXJ5T5IsInD4P/PKfc= Date: Wed, 25 Aug 2021 22:43:29 +0200 From: Greg KH To: Fei Li Cc: linux-kernel@vger.kernel.org, yu1.wang@intel.com, shuox.liu@gmail.com Subject: Re: [PATCH v2 1/3] virt: acrn: Introduce interfaces for MMIO device passthrough Message-ID: References: <20210825090142.4418-1-fei1.li@intel.com> <20210825090142.4418-2-fei1.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210825090142.4418-2-fei1.li@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 25, 2021 at 05:01:40PM +0800, Fei Li wrote: > From: Shuo Liu > > MMIO device passthrough enables an OS in a virtual machine to directly > access a MMIO device in the host. It promises almost the native > performance, which is required in performance-critical scenarios of > ACRN. > > HSM provides the following ioctls: > - Assign - ACRN_IOCTL_ASSIGN_MMIODEV > Pass data struct acrn_mmiodev from userspace to the hypervisor, and > inform the hypervisor to assign a MMIO device to a User VM. > > - De-assign - ACRN_IOCTL_DEASSIGN_PCIDEV > Pass data struct acrn_mmiodev from userspace to the hypervisor, and > inform the hypervisor to de-assign a MMIO device from a User VM. > > Signed-off-by: Shuo Liu > Signed-off-by: Fei Li Where is the userspace code that uses this new api? thanks, greg k-h