From: Yehuda Yitschak <yehuday@marvell.com>
To: Alex Williamson <alex.williamson@redhat.com>
Cc: Shadi Ammouri <shadi@marvell.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Yuval Caduri <cyuval@marvell.com>,
Eric Auger <eric.auger@linaro.org>
Subject: Re: [Qemu-devel] Assigning an eth port to a guest VM
Date: Wed, 17 Jun 2015 17:16:33 +0000 [thread overview]
Message-ID: <1434561393271.4638@marvell.com> (raw)
In-Reply-To: <1434465801.4927.465.camel@redhat.com>
> >
> > Eric, Alex, Thank you very much for all your answers and details.
> > From your answers it sounds like I need to extended vfio's resource query mechanism to enable flagging
> > certain resources as NO_MAP and then make VFIO in QEMU act accordingly.
> > That looks like the easier part. The more complex part in my view is to manage the trap to vfio-platform driver and emulate the access.
> >
> > In any way, I will take some time to process all this into a solution and fill in some gaps in my knowledge.
>
> TBH, I don't see any need to extend VFIO based on your needs so far.
> VFIO already has the ability to describe whether a region supports mmap.
> If it doesn't support mmap, QEMU has no choice but to use an I/O memory
> region and translate VM accesses into reads and writes. vfio-pci
> already makes extensive use of this capability today. I/O port regions
> don't support mmap on x86, so those regions never expose an mmap capable
> flag. We also require page alignment for mmap, so regions that are not
> page aligned don't expose mmap for MMIO regions. PCI config space also
> does not support mmap because of the emulation and virtualization we do
> in that space. So not supporting mmap is really not uncommon. You
> might want to look at my slides from KVM Forum 2013 [1] which shows how
> VFIO can really be thought of as a conduit for decomposing a device
> through a file descriptor. QEMU then recomposes it back into a device
> through the QEMU driver model. Since platform devices have no standard
> like PCI to provide self discovery, there are device specific drivers on
> both ends with vfio-platform. Thanks,
Ok...it looks like i need dig in some more into the code :)
This is very helpful.
Thanks
Yehuda
>
> Alex
>
> [1] http://www.linux-kvm.org/images/e/ed/Kvm-forum-2013-VFIO-VGA.pdf
next prev parent reply other threads:[~2015-06-17 17:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-15 11:01 [Qemu-devel] Assigning an eth port to a guest VM Yehuda Yitschak
2015-06-15 13:42 ` Eric Auger
2015-06-15 16:52 ` Yehuda Yitschak
2015-06-15 16:59 ` Eric Auger
2015-06-15 17:15 ` Alex Williamson
2015-06-15 17:45 ` Yehuda Yitschak
2015-06-15 17:55 ` Eric Auger
2015-06-15 18:31 ` Alex Williamson
2015-06-16 11:21 ` Yehuda Yitschak
2015-06-16 14:43 ` Alex Williamson
2015-06-17 17:16 ` Yehuda Yitschak [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-06-15 6:35 Yehuda Yitschak
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=1434561393271.4638@marvell.com \
--to=yehuday@marvell.com \
--cc=alex.williamson@redhat.com \
--cc=cyuval@marvell.com \
--cc=eric.auger@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=shadi@marvell.com \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).