From: Yongji Xie <xyjxie@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org, alex.williamson@redhat.com
Cc: nikunj@linux.vnet.ibm.com, zhong@linux.vnet.ibm.com,
aik@ozlabs.ru, paulus@samba.org, mpe@ellerman.id.au,
warrier@linux.vnet.ibm.com,
Yongji Xie <xyjxie@linux.vnet.ibm.com>
Subject: [Qemu-devel] [RFC PATCH 0/3] vfio/pci: Add support for mmapping sub-page MMIO BARs and MSI-X table
Date: Fri, 11 Dec 2015 17:05:15 +0800 [thread overview]
Message-ID: <1449824719-3407-1-git-send-email-xyjxie@linux.vnet.ibm.com> (raw)
This patch set adds support for two VFIO-PCI ioctl flags:
VFIO_DEVICE_FLAGS_PCI_PAGE_ALIGNED and VFIO_DEVICE_FLAGS_PCI_MSIX_MMAP.
Note that the kernel bits of this two flags are not in upstream and
posted as <Allow to mmap sub-page MMIO BARs and MSI-X table on
PPC64 platform>.
VFIO_DEVICE_FLAGS_PCI_PAGE_ALIGNED indicates that platform support
all PCI MMIO BARs to be page aligned which means any BARs' mmio
page would not be shared with other BARs. So it's allowed to mmap
sub-page(size < PAGE_SIZE) MMIO BARs in QEMU.
VFIO_DEVICE_FLAGS_PCI_MSIX_MMAP indicates that it's safe to mmap MSI-X
table in QEMU.
Besides supporting for these two mmapping cases, we also fix some issues
which would block KVM to create memory slot for these mmapped sub-page
MMIO BARs and mmapped MSI-X table.
Posted kernel patches link:
- https://www.mail-archive.com/kvm@vger.kernel.org/msg124031.html
Yongji Xie (3):
linux-headers: Update VFIO headers from linux-next tag ToBeFilled
vfio/pci: Add support for mmapped sub-page MMIO BARs
vfio/pci: Add support for mmapping MSI-X table
hw/vfio/pci.c | 65 ++++++++++++++++++++++++++++++++++++++++----
linux-headers/linux/vfio.h | 4 +++
2 files changed, 64 insertions(+), 5 deletions(-)
--
1.7.9.5
next reply other threads:[~2015-12-11 9:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-11 9:05 Yongji Xie [this message]
2015-12-11 9:05 ` [Qemu-devel] [RFC PATCH 1/3] linux-headers: Update VFIO headers from linux-next tag ToBeFilled Yongji Xie
2015-12-11 9:05 ` [Qemu-devel] [RFC PATCH 2/3] vfio/pci: Add support for mmapped sub-page MMIO BARs Yongji Xie
2015-12-11 9:05 ` [Qemu-devel] [RFC PATCH 3/3] vfio/pci: Add support for mmapping MSI-X table Yongji Xie
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=1449824719-3407-1-git-send-email-xyjxie@linux.vnet.ibm.com \
--to=xyjxie@linux.vnet.ibm.com \
--cc=aik@ozlabs.ru \
--cc=alex.williamson@redhat.com \
--cc=mpe@ellerman.id.au \
--cc=nikunj@linux.vnet.ibm.com \
--cc=paulus@samba.org \
--cc=qemu-devel@nongnu.org \
--cc=warrier@linux.vnet.ibm.com \
--cc=zhong@linux.vnet.ibm.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).