From: "Marc-André Lureau" <marcandre.lureau@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
drjones@redhat.com, cam@cs.ualberta.ca, stefanha@redhat.com
Subject: [Qemu-devel] [PATCH v2 00/45] ivshmem improvements (for 2.5)
Date: Tue, 28 Jul 2015 02:32:12 +0200 [thread overview]
Message-ID: <1438043577-28636-1-git-send-email-marcandre.lureau@redhat.com> (raw)
Hi,
This series is mostly about adding the client/server code from David
Marchand, code cleanups, and little improvements for ivshmem. Finally
there is some ivshmem tests (they work fine without kvm).
The first series didn't get much feedback. As suggested by Andrew
Jones, this second version adds support for hugepage shm, in qemu with
a hostmem backend and a fix in the server side (instead of relying on
bad/old glibc hack). It also adds irqfd usage for msix notification.
(the branch is on github: https://github.com/elmarco/qemu.git ivshmem)
David Marchand (3):
contrib: add ivshmem client and server
docs: update ivshmem device spec
ivshmem: add check on protocol version in QEMU
Marc-André Lureau (42):
char: add qemu_chr_free()
msix: add VMSTATE_MSIX_TEST
ivhsmem: read do not accept more than sizeof(long)
ivshmem: fix number of bytes to push to fifo
ivshmem: factor out the incoming fifo handling
ivshmem: remove unnecessary dup()
ivshmem: remove superflous ivshmem_attr field
ivshmem: remove useless doorbell field
ivshmem: more qdev conversion
ivshmem: remove last exit(1)
ivshmem: increase_dynamic_storage() improvements
ivshmem: remove useless ivshmem_update_irq() val argument
ivshmem: initialize max_peer to -1
ivshmem: remove max_peer field
ivshmem: improve debug messages
ivshmem: improve error
ivshmem: print error on invalid peer id
ivshmem: add a warning if eventfd value is 0
ivshmem: beautify a bit the code
ivshmem: use common return
ivshmem: use common is_power_of_2()
ivshmem: migrate with VMStateDescription
ivshmem: shmfd can be 0
ivshmem: check shm isn't already initialized
ivshmem: add device description
ivshmem: fix pci_ivshmem_exit()
ivshmem: replace 'guest' for 'peer' appropriately
ivshmem: error on too many eventfd received
ivshmem: reset mask on device reset
ivshmem-client: check the number of vectors
ivshmem-server: use a uint16 for client ID
ivshmem-server: fix hugetlbfs support
contrib: remove unnecessary strdup()
msix: implement pba write (but read-only)
qtest: add qtest_add_abrt_handler()
tests: add ivshmem qtest
ivshmem: do not keep shm_fd open
ivshmem: rename ivshmem_get_size/parse_mem_size
ivshmem: add hostmem backend
ivshmem: remove EventfdEntry.vector
ivshmem: rename MSI eventfd_table
ivshmem: use kvm irqfd for msi notifications
Makefile | 8 +
configure | 3 +
contrib/ivshmem-client/ivshmem-client.c | 444 ++++++++++++++++++
contrib/ivshmem-client/ivshmem-client.h | 213 +++++++++
contrib/ivshmem-client/main.c | 239 ++++++++++
contrib/ivshmem-server/ivshmem-server.c | 485 ++++++++++++++++++++
contrib/ivshmem-server/ivshmem-server.h | 166 +++++++
contrib/ivshmem-server/main.c | 263 +++++++++++
docs/specs/ivshmem_device_spec.txt | 127 ++++--
hw/misc/ivshmem.c | 769 ++++++++++++++++++++++----------
hw/pci/msix.c | 6 +
include/hw/misc/ivshmem.h | 25 ++
include/hw/pci/msix.h | 16 +-
include/sysemu/char.h | 10 +-
qemu-char.c | 9 +-
qemu-doc.texi | 10 +-
tests/Makefile | 3 +
tests/ivshmem-test.c | 486 ++++++++++++++++++++
tests/libqtest.c | 37 +-
tests/libqtest.h | 2 +
20 files changed, 3025 insertions(+), 296 deletions(-)
create mode 100644 contrib/ivshmem-client/ivshmem-client.c
create mode 100644 contrib/ivshmem-client/ivshmem-client.h
create mode 100644 contrib/ivshmem-client/main.c
create mode 100644 contrib/ivshmem-server/ivshmem-server.c
create mode 100644 contrib/ivshmem-server/ivshmem-server.h
create mode 100644 contrib/ivshmem-server/main.c
create mode 100644 include/hw/misc/ivshmem.h
create mode 100644 tests/ivshmem-test.c
--
2.4.3
next reply other threads:[~2015-07-28 0:33 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-28 0:32 Marc-André Lureau [this message]
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 01/45] char: add qemu_chr_free() Marc-André Lureau
2015-07-29 7:40 ` Paolo Bonzini
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 02/45] msix: add VMSTATE_MSIX_TEST Marc-André Lureau
2015-07-29 7:41 ` Paolo Bonzini
2015-07-29 8:28 ` Marc-André Lureau
2015-07-29 8:31 ` Paolo Bonzini
2015-07-29 10:14 ` Marc-André Lureau
2015-07-29 10:50 ` Paolo Bonzini
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 03/45] ivhsmem: read do not accept more than sizeof(long) Marc-André Lureau
2015-07-29 7:47 ` Paolo Bonzini
2015-07-29 8:26 ` Marc-André Lureau
2015-07-29 8:30 ` Paolo Bonzini
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 04/45] ivshmem: fix number of bytes to push to fifo Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 05/45] ivshmem: factor out the incoming fifo handling Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 06/45] ivshmem: remove unnecessary dup() Marc-André Lureau
2015-07-29 19:10 ` Eric Blake
2015-07-30 13:11 ` Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 07/45] ivshmem: remove superflous ivshmem_attr field Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 08/45] ivshmem: remove useless doorbell field Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 09/45] ivshmem: more qdev conversion Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 10/45] ivshmem: remove last exit(1) Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 11/45] ivshmem: increase_dynamic_storage() improvements Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 12/45] ivshmem: remove useless ivshmem_update_irq() val argument Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 13/45] ivshmem: initialize max_peer to -1 Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 14/45] ivshmem: remove max_peer field Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 15/45] ivshmem: improve debug messages Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 16/45] ivshmem: improve error Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 17/45] ivshmem: print error on invalid peer id Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 18/45] ivshmem: add a warning if eventfd value is 0 Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 19/45] ivshmem: beautify a bit the code Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 20/45] ivshmem: use common return Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 21/45] ivshmem: use common is_power_of_2() Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 22/45] ivshmem: migrate with VMStateDescription Marc-André Lureau
2015-08-26 11:27 ` Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 23/45] ivshmem: shmfd can be 0 Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 24/45] ivshmem: check shm isn't already initialized Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 25/45] ivshmem: add device description Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 26/45] ivshmem: fix pci_ivshmem_exit() Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 27/45] ivshmem: replace 'guest' for 'peer' appropriately Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 28/45] ivshmem: error on too many eventfd received Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 29/45] ivshmem: reset mask on device reset Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 30/45] contrib: add ivshmem client and server Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 31/45] ivshmem-client: check the number of vectors Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 32/45] ivshmem-server: use a uint16 for client ID Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 33/45] ivshmem-server: fix hugetlbfs support Marc-André Lureau
2015-07-28 7:33 ` Andrew Jones
2015-07-28 18:02 ` Marc-André Lureau
2015-07-29 6:30 ` Andrew Jones
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 34/45] docs: update ivshmem device spec Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 35/45] ivshmem: add check on protocol version in QEMU Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 36/45] contrib: remove unnecessary strdup() Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 37/45] msix: implement pba write (but read-only) Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 38/45] qtest: add qtest_add_abrt_handler() Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 39/45] tests: add ivshmem qtest Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 40/45] ivshmem: do not keep shm_fd open Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 41/45] ivshmem: rename ivshmem_get_size/parse_mem_size Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 42/45] ivshmem: add hostmem backend Marc-André Lureau
2015-07-28 7:47 ` Andrew Jones
2015-07-28 18:04 ` Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 43/45] ivshmem: remove EventfdEntry.vector Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 44/45] ivshmem: rename MSI eventfd_table Marc-André Lureau
2015-07-28 0:32 ` [Qemu-devel] [PATCH v2 45/45] ivshmem: use kvm irqfd for msi notifications Marc-André Lureau
2015-08-26 11:26 ` [Qemu-devel] [PATCH v2 00/45] ivshmem improvements (for 2.5) Marc-André Lureau
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=1438043577-28636-1-git-send-email-marcandre.lureau@redhat.com \
--to=marcandre.lureau@redhat.com \
--cc=cam@cs.ualberta.ca \
--cc=drjones@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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).