LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Li Fei1 <fei1.li@intel.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: linux-kernel@vger.kernel.org, yu1.wang@intel.com,
	shuox.liu@gmail.com, fei1.li@intel.com
Subject: Re: [PATCH v2 1/3] virt: acrn: Introduce interfaces for MMIO device passthrough
Date: Thu, 26 Aug 2021 09:38:38 +0800	[thread overview]
Message-ID: <20210826013838.GA7915@louislifei-OptiPlex-7050> (raw)
In-Reply-To: <YSarcddFb5wNQ+LK@kroah.com>

On Wed, Aug 25, 2021 at 10:43:29PM +0200, Greg KH wrote:
> On Wed, Aug 25, 2021 at 05:01:40PM +0800, Fei Li wrote:
> > From: Shuo Liu <shuo.a.liu@intel.com>
> > 
> > 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 <shuo.a.liu@intel.com>
> > Signed-off-by: Fei Li <fei1.li@intel.com>
> 
> Where is the userspace code that uses this new api?

Hi Greg

An ACRN userspace application (like QEMU) would uses these new apis in
https://github.com/projectacrn/acrn-hypervisor/blob/master/devicemodel/core/vmmapi.c#L562
and
https://github.com/projectacrn/acrn-hypervisor/blob/master/devicemodel/core/vmmapi.c#L568

thanks.

> 
> thanks,
> 
> greg k-h

  reply	other threads:[~2021-08-26  1:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-25  9:01 [PATCH v2 0/3] Introduce some interfaces for ACRN hypervisor Fei Li
2021-08-25  9:01 ` [PATCH v2 1/3] virt: acrn: Introduce interfaces for MMIO device passthrough Fei Li
2021-08-25 20:43   ` Greg KH
2021-08-26  1:38     ` Li Fei1 [this message]
2021-08-27  8:45       ` Greg KH
2021-08-31  6:10         ` Li Fei1
2021-08-25  9:01 ` [PATCH v2 2/3] virt: acrn: Introduce interfaces for virtual device creating/destroying Fei Li
2021-08-27  8:47   ` Greg KH
2021-08-31  6:32     ` Li Fei1
2021-08-25  9:01 ` [PATCH v2 3/3] virt: acrn: Introduce interface to fetch platform info from the hypervisor Fei Li
2021-08-27  8:49   ` Greg KH
2021-08-31  6:43     ` Li Fei1

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210826013838.GA7915@louislifei-OptiPlex-7050 \
    --to=fei1.li@intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shuox.liu@gmail.com \
    --cc=yu1.wang@intel.com \
    --subject='Re: [PATCH v2 1/3] virt: acrn: Introduce interfaces for MMIO device passthrough' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).