From: "Marc-André Lureau" <mlureau@redhat.com>
To: Claudio Fontana <claudio.fontana@huawei.com>
Cc: drjones@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com,
pbonzini@redhat.com,
"marcandre lureau" <marcandre.lureau@redhat.com>,
cam@cs.ualberta.ca, "Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [PATCH v4 40/47] tests: add ivshmem qtest
Date: Tue, 29 Sep 2015 11:30:18 -0400 (EDT) [thread overview]
Message-ID: <214721760.19922624.1443540618779.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <560AA8C9.7000507@huawei.com>
----- Original Message -----
> On 24.09.2015 13:37, marcandre.lureau@redhat.com wrote:
> > From: Marc-André Lureau <marcandre.lureau@redhat.com>
> >
> > Adds 4 ivshmemtests:
> > - single qemu instance and basic IO
> > - pair of instances, check memory sharing
> > - pair of instances with server, and MSIX
> > - hot plug/unplug
> >
> > A temporary shm is created as well as a directory to place server
> > socket, both should be clear on exit and abort.
>
> Just one comment below, but in short, what about supporting TMPDIR?
I probably followed the trend in existing code.
Imho this should be a seperate commit for the whole tests/, do you volunteer? :)
> Also, have you considered SIGPIPE for your peers reading and writing to/from
> pipes?
> Is the default behavior the one you want?
>
What do you mean? if one ends disconnect I should test this case?
Imho this is a seperate test I didn't consider, it could be added in a different patch.
> Ciao,
>
> Claudio
>
>
> >
> > Cc: Cam Macdonell <cam@cs.ualberta.ca>
> > CC: Andreas Färber <afaerber@suse.de>
> > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> > ---
> > tests/Makefile | 3 +
> > tests/ivshmem-test.c | 481
> > +++++++++++++++++++++++++++++++++++++++++++++++++++
> > 2 files changed, 484 insertions(+)
> > create mode 100644 tests/ivshmem-test.c
> >
> > diff --git a/tests/Makefile b/tests/Makefile
> > index 4063639..7e6ac43 100644
> > --- a/tests/Makefile
> > +++ b/tests/Makefile
> > @@ -146,6 +146,8 @@ gcov-files-pci-y += hw/display/virtio-gpu-pci.c
> > gcov-files-pci-$(CONFIG_VIRTIO_VGA) += hw/display/virtio-vga.c
> > check-qtest-pci-y += tests/intel-hda-test$(EXESUF)
> > gcov-files-pci-y += hw/audio/intel-hda.c hw/audio/hda-codec.c
> > +check-qtest-pci-$(CONFIG_LINUX) += tests/ivshmem-test$(EXESUF)
> > +gcov-files-pci-y += hw/misc/ivshmem.c
> >
> > check-qtest-i386-y = tests/endianness-test$(EXESUF)
> > check-qtest-i386-y += tests/fdc-test$(EXESUF)
> > @@ -435,6 +437,7 @@ tests/vhost-user-test$(EXESUF): tests/vhost-user-test.o
> > qemu-char.o qemu-timer.o
> > tests/qemu-iotests/socket_scm_helper$(EXESUF):
> > tests/qemu-iotests/socket_scm_helper.o
> > tests/test-qemu-opts$(EXESUF): tests/test-qemu-opts.o $(test-util-obj-y)
> > tests/test-write-threshold$(EXESUF): tests/test-write-threshold.o
> > $(test-block-obj-y)
> > +tests/ivshmem-test$(EXESUF): tests/ivshmem-test.o
> > contrib/ivshmem-server/ivshmem-server.o $(libqos-pc-obj-y)
> >
> > ifeq ($(CONFIG_POSIX),y)
> > LIBS += -lutil
> > diff --git a/tests/ivshmem-test.c b/tests/ivshmem-test.c
> > new file mode 100644
> > index 0000000..097de15
> > --- /dev/null
> > +++ b/tests/ivshmem-test.c
> > @@ -0,0 +1,481 @@
> > +/*
> > + * QTest testcase for ivshmem
> > + *
> > + * Copyright (c) 2015 Red Hat, Inc.
> > + *
> > + * This work is licensed under the terms of the GNU GPL, version 2 or
> > later.
> > + * See the COPYING file in the top-level directory.
> > + */
> > +
> > +#include <errno.h>
> > +#include <fcntl.h>
> > +#include <glib.h>
> > +#include <glib/gstdio.h>
> > +#include <string.h>
> > +#include <sys/mman.h>
> > +#include <unistd.h>
> > +#include "contrib/ivshmem-server/ivshmem-server.h"
> > +#include "libqos/pci-pc.h"
> > +#include "libqtest.h"
> > +#include "qemu/osdep.h"
> > +#include <stdlib.h>
> > +
> > +#if GLIB_CHECK_VERSION(2, 32, 0)
> > +#define HAVE_THREAD_NEW
> > +#endif
> > +
> > +#define TMPSHMSIZE (1 << 20)
> > +static char *tmpshm;
> > +static void *tmpshmem;
> > +static char *tmpdir;
> > +static char *tmpserver;
> > +
> > +static void save_fn(QPCIDevice *dev, int devfn, void *data)
> > +{
> > + QPCIDevice **pdev = (QPCIDevice **) data;
> > +
> > + *pdev = dev;
> > +}
> > +
> > +static QPCIDevice *get_device(void)
> > +{
> > + QPCIDevice *dev;
> > + QPCIBus *pcibus;
> > +
> > + pcibus = qpci_init_pc();
> > + qpci_device_foreach(pcibus, 0x1af4, 0x1110, save_fn, &dev);
> > + g_assert(dev != NULL);
> > +
> > + return dev;
> > +}
> > +
> > +typedef struct _IVState {
> > + QTestState *qtest;
> > + void *reg_base, *mem_base;
> > + QPCIDevice *dev;
> > +} IVState;
> > +
> > +enum Reg {
> > + INTRMASK = 0,
> > + INTRSTATUS = 4,
> > + IVPOSITION = 8,
> > + DOORBELL = 12,
> > +};
> > +
> > +static const char* reg2str(enum Reg reg) {
> > + switch (reg) {
> > + case INTRMASK:
> > + return "IntrMask";
> > + case INTRSTATUS:
> > + return "IntrStatus";
> > + case IVPOSITION:
> > + return "IVPosition";
> > + case DOORBELL:
> > + return "DoorBell";
> > + default:
> > + return NULL;
> > + }
> > +}
> > +
> > +static inline unsigned in_reg(IVState *s, enum Reg reg)
> > +{
> > + const char *name = reg2str(reg);
> > + QTestState *qtest = global_qtest;
> > + unsigned res;
> > +
> > + global_qtest = s->qtest;
> > + res = qpci_io_readl(s->dev, s->reg_base + reg);
> > + g_test_message("*%s -> %x\n", name, res);
> > + global_qtest = qtest;
> > +
> > + return res;
> > +}
> > +
> > +static inline void out_reg(IVState *s, enum Reg reg, unsigned v)
> > +{
> > + const char *name = reg2str(reg);
> > + QTestState *qtest = global_qtest;
> > +
> > + global_qtest = s->qtest;
> > + g_test_message("%x -> *%s\n", v, name);
> > + qpci_io_writel(s->dev, s->reg_base + reg, v);
> > + global_qtest = qtest;
> > +}
> > +
> > +static void setup_vm_cmd(IVState *s, const char *cmd, bool msix)
> > +{
> > + uint64_t barsize;
> > +
> > + s->qtest = qtest_start(cmd);
> > +
> > + s->dev = get_device();
> > +
> > + /* FIXME: other bar order fails, mappings changes */
> > + s->mem_base = qpci_iomap(s->dev, 2, &barsize);
> > + g_assert_nonnull(s->mem_base);
> > + g_assert_cmpuint(barsize, ==, TMPSHMSIZE);
> > +
> > + if (msix) {
> > + qpci_msix_enable(s->dev);
> > + }
> > +
> > + s->reg_base = qpci_iomap(s->dev, 0, &barsize);
> > + g_assert_nonnull(s->reg_base);
> > + g_assert_cmpuint(barsize, ==, 256);
> > +
> > + qpci_device_enable(s->dev);
> > +}
> > +
> > +static void setup_vm(IVState *s)
> > +{
> > + char *cmd = g_strdup_printf("-device ivshmem,shm=%s,size=1M", tmpshm);
> > +
> > + setup_vm_cmd(s, cmd, false);
> > +
> > + g_free(cmd);
> > +}
> > +
> > +static void test_ivshmem_single(void)
> > +{
> > + IVState state, *s;
> > + uint32_t data[1024];
> > + int i;
> > +
> > + setup_vm(&state);
> > + s = &state;
> > +
> > + /* valid io */
> > + out_reg(s, INTRMASK, 0);
> > + in_reg(s, INTRSTATUS);
> > + in_reg(s, IVPOSITION);
> > +
> > + out_reg(s, INTRMASK, 0xffffffff);
> > + g_assert_cmpuint(in_reg(s, INTRMASK), ==, 0xffffffff);
> > + out_reg(s, INTRSTATUS, 1);
> > + /* XXX: intercept IRQ, not seen in resp */
> > + g_assert_cmpuint(in_reg(s, INTRSTATUS), ==, 1);
> > +
> > + /* invalid io */
> > + out_reg(s, IVPOSITION, 1);
> > + out_reg(s, DOORBELL, 8 << 16);
> > +
> > + for (i = 0; i < G_N_ELEMENTS(data); i++) {
> > + data[i] = i;
> > + }
> > + qtest_memwrite(s->qtest, (uintptr_t)s->mem_base, data, sizeof(data));
> > +
> > + for (i = 0; i < G_N_ELEMENTS(data); i++) {
> > + g_assert_cmpuint(((uint32_t *)tmpshmem)[i], ==, i);
> > + }
> > +
> > + memset(data, 0, sizeof(data));
> > +
> > + qtest_memread(s->qtest, (uintptr_t)s->mem_base, data, sizeof(data));
> > + for (i = 0; i < G_N_ELEMENTS(data); i++) {
> > + g_assert_cmpuint(data[i], ==, i);
> > + }
> > +
> > + qtest_quit(s->qtest);
> > +}
> > +
> > +static void test_ivshmem_pair(void)
> > +{
> > + IVState state1, state2, *s1, *s2;
> > + char *data;
> > + int i;
> > +
> > + setup_vm(&state1);
> > + s1 = &state1;
> > + setup_vm(&state2);
> > + s2 = &state2;
> > +
> > + data = g_malloc0(TMPSHMSIZE);
> > +
> > + /* host write, guest 1 & 2 read */
> > + memset(tmpshmem, 0x42, TMPSHMSIZE);
> > + qtest_memread(s1->qtest, (uintptr_t)s1->mem_base, data, TMPSHMSIZE);
> > + for (i = 0; i < TMPSHMSIZE; i++) {
> > + g_assert_cmpuint(data[i], ==, 0x42);
> > + }
> > + qtest_memread(s2->qtest, (uintptr_t)s2->mem_base, data, TMPSHMSIZE);
> > + for (i = 0; i < TMPSHMSIZE; i++) {
> > + g_assert_cmpuint(data[i], ==, 0x42);
> > + }
> > +
> > + /* guest 1 write, guest 2 read */
> > + memset(data, 0x43, TMPSHMSIZE);
> > + qtest_memwrite(s1->qtest, (uintptr_t)s1->mem_base, data, TMPSHMSIZE);
> > + memset(data, 0, TMPSHMSIZE);
> > + qtest_memread(s2->qtest, (uintptr_t)s2->mem_base, data, TMPSHMSIZE);
> > + for (i = 0; i < TMPSHMSIZE; i++) {
> > + g_assert_cmpuint(data[i], ==, 0x43);
> > + }
> > +
> > + /* guest 2 write, guest 1 read */
> > + memset(data, 0x44, TMPSHMSIZE);
> > + qtest_memwrite(s2->qtest, (uintptr_t)s2->mem_base, data, TMPSHMSIZE);
> > + memset(data, 0, TMPSHMSIZE);
> > + qtest_memread(s1->qtest, (uintptr_t)s2->mem_base, data, TMPSHMSIZE);
> > + for (i = 0; i < TMPSHMSIZE; i++) {
> > + g_assert_cmpuint(data[i], ==, 0x44);
> > + }
> > +
> > + qtest_quit(s1->qtest);
> > + qtest_quit(s2->qtest);
> > + g_free(data);
> > +}
> > +
> > +typedef struct ServerThread {
> > + GThread *thread;
> > + IvshmemServer *server;
> > + int pipe[2]; /* to handle quit */
> > +} ServerThread;
> > +
> > +static void *server_thread(void *data)
> > +{
> > + ServerThread *t = data;
> > + IvshmemServer *server = t->server;
> > +
> > + while (true) {
> > + fd_set fds;
> > + int maxfd, ret;
> > +
> > + FD_ZERO(&fds);
> > + FD_SET(t->pipe[0], &fds);
> > + maxfd = t->pipe[0] + 1;
> > +
> > + ivshmem_server_get_fds(server, &fds, &maxfd);
> > +
> > + ret = select(maxfd, &fds, NULL, NULL, NULL);
> > +
> > + if (ret < 0) {
> > + if (errno == EINTR) {
> > + continue;
> > + }
> > +
> > + g_critical("select error: %s\n", strerror(errno));
> > + break;
> > + }
> > + if (ret == 0) {
> > + continue;
> > + }
> > +
> > + if (FD_ISSET(t->pipe[0], &fds)) {
> > + break;
> > + }
> > +
> > + if (ivshmem_server_handle_fds(server, &fds, maxfd) < 0) {
> > + g_critical("ivshmem_server_handle_fds() failed\n");
> > + break;
> > + }
> > + }
> > +
> > + return NULL;
> > +}
> > +
> > +static void setup_vm_with_server(IVState *s, int nvectors)
> > +{
> > + char *cmd = g_strdup_printf("-chardev socket,id=chr0,path=%s,nowait "
> > + "-device
> > ivshmem,size=1M,chardev=chr0,vectors=%d",
> > + tmpserver, nvectors);
> > +
> > + setup_vm_cmd(s, cmd, true);
> > +
> > + g_free(cmd);
> > +}
> > +
> > +static GThread *thread_new(const gchar *name, GThreadFunc func, gpointer
> > data)
> > +{
> > + GThread *thread = NULL;
> > + GError *error = NULL;
> > +#ifdef HAVE_THREAD_NEW
> > + thread = g_thread_try_new(name, func, data, &error);
> > +#else
> > + thread = g_thread_create(func, data, TRUE, &error);
> > +#endif
> > + g_assert_no_error(error);
> > + return thread;
> > +}
> > +
> > +static void test_ivshmem_server(void)
> > +{
> > + IVState state1, state2, *s1, *s2;
> > + ServerThread thread;
> > + IvshmemServer server;
> > + int ret, vm1, vm2;
> > + int nvectors = 2;
> > +
> > + memset(tmpshmem, 0x42, TMPSHMSIZE);
> > + ret = ivshmem_server_init(&server, tmpserver, tmpshm,
> > + TMPSHMSIZE, nvectors,
> > + getenv("QTEST_LOG") != NULL);
> > + g_assert_cmpint(ret, ==, 0);
> > +
> > + ret = ivshmem_server_start(&server);
> > + g_assert_cmpint(ret, ==, 0);
> > +
> > + setup_vm_with_server(&state1, nvectors);
> > + s1 = &state1;
> > + setup_vm_with_server(&state2, nvectors);
> > + s2 = &state2;
> > +
> > + g_assert_cmpuint(in_reg(s1, IVPOSITION), ==, 0xffffffff);
> > + g_assert_cmpuint(in_reg(s2, IVPOSITION), ==, 0xffffffff);
> > +
> > + g_assert_cmpuint(qtest_readb(s1->qtest, (uintptr_t)s1->mem_base), ==,
> > 0x00);
> > +
> > + thread.server = &server;
> > + ret = pipe(thread.pipe);
> > + g_assert_cmpint(ret, ==, 0);
> > + thread.thread = thread_new("ivshmem-server", server_thread, &thread);
> > +
> > + /* waiting until mapping is done */
> > + while (true) {
> > + g_usleep(1000);
> > +
> > + if (qtest_readb(s1->qtest, (uintptr_t)s1->mem_base) == 0x42 &&
> > + qtest_readb(s2->qtest, (uintptr_t)s2->mem_base) == 0x42) {
> > + break;
> > + }
> > + }
> > +
> > + /* check got different VM ids */
> > + vm1 = in_reg(s1, IVPOSITION);
> > + vm2 = in_reg(s2, IVPOSITION);
> > + g_assert_cmpuint(vm1, !=, vm2);
> > +
> > + global_qtest = s1->qtest;
> > + ret = qpci_msix_table_size(s1->dev);
> > + g_assert_cmpuint(ret, ==, nvectors);
> > +
> > + /* ping vm2 -> vm1 */
> > + ret = qpci_msix_pending(s1->dev, 0);
> > + g_assert_cmpuint(ret, ==, 0);
> > + out_reg(s2, DOORBELL, vm1 << 16);
> > + g_usleep(10000);
> > + ret = qpci_msix_pending(s1->dev, 0);
> > + g_assert_cmpuint(ret, !=, 0);
> > +
> > + /* ping vm1 -> vm2 */
> > + global_qtest = s2->qtest;
> > + ret = qpci_msix_pending(s2->dev, 0);
> > + g_assert_cmpuint(ret, ==, 0);
> > + out_reg(s1, DOORBELL, vm2 << 16);
> > + g_usleep(10000);
> > + ret = qpci_msix_pending(s2->dev, 0);
> > + g_assert_cmpuint(ret, !=, 0);
> > +
> > + /* remove vm2 */
> > + qtest_quit(s2->qtest);
> > + /* XXX wait enough time for vm1 to be notified */
> > + g_usleep(1000);
> > +
> > + qtest_quit(s1->qtest);
> > +
> > + write(thread.pipe[1], "q", 1);
> > + g_thread_join(thread.thread);
> > +
> > + ivshmem_server_close(&server);
> > + close(thread.pipe[1]);
> > + close(thread.pipe[0]);
> > +}
> > +
> > +#define PCI_SLOT_HP 0x06
> > +
> > +static void test_ivshmem_hotplug(void)
> > +{
> > + gchar *opts;
> > +
> > + qtest_start("");
> > +
> > + opts = g_strdup_printf("'shm': '%s', 'size': '1M'", tmpshm);
> > +
> > + qpci_plug_device_test("ivshmem", "iv1", PCI_SLOT_HP, opts);
> > + qpci_unplug_acpi_device_test("iv1", PCI_SLOT_HP);
> > +
> > + qtest_end();
> > + g_free(opts);
> > +}
> > +
> > +static void cleanup(void)
> > +{
> > + if (tmpshmem) {
> > + munmap(tmpshmem, TMPSHMSIZE);
> > + tmpshmem = NULL;
> > + }
> > +
> > + if (tmpshm) {
> > + shm_unlink(tmpshm);
> > + g_free(tmpshm);
> > + tmpshm = NULL;
> > + }
> > +
> > + if (tmpserver) {
> > + g_unlink(tmpserver);
> > + g_free(tmpserver);
> > + tmpserver = NULL;
> > + }
> > +
> > + if (tmpdir) {
> > + g_rmdir(tmpdir);
> > + tmpdir = NULL;
> > + }
> > +}
> > +
> > +static void abrt_handler(void *data)
> > +{
> > + cleanup();
> > +}
> > +
> > +static gchar *mktempshm(int size, int *fd)
> > +{
> > + while (true) {
> > + gchar *name;
> > +
> > + name = g_strdup_printf("/qtest-%u-%u", getpid(), g_random_int());
> > + *fd = shm_open(name, O_CREAT|O_RDWR|O_EXCL,
> > + S_IRWXU|S_IRWXG|S_IRWXO);
> > + if (*fd > 0) {
> > + g_assert(ftruncate(*fd, size) == 0);
> > + return name;
> > + }
> > +
> > + g_free(name);
> > + }
> > +}
> > +
> > +int main(int argc, char **argv)
> > +{
> > + int ret, fd;
> > + static gchar dir[] = "/tmp/ivshmem-test.XXXXXX";
>
> It forces creation of files in /tmp though, what about respecting user's
> desires via TMPDIR?
> Granted, the amount of offenders in tests/ is large.
>
> > +
> > +#if !GLIB_CHECK_VERSION(2, 31, 0)
> > + if (!g_thread_supported()) {
> > + g_thread_init(NULL);
> > + }
> > +#endif
> > +
> > + g_test_init(&argc, &argv, NULL);
> > +
> > + qtest_add_abrt_handler(abrt_handler, NULL);
> > + /* shm */
> > + tmpshm = mktempshm(TMPSHMSIZE, &fd);
> > + tmpshmem = mmap(0, TMPSHMSIZE, PROT_READ|PROT_WRITE, MAP_SHARED, fd,
> > 0);
> > + g_assert(tmpshmem != MAP_FAILED);
> > + /* server */
> > + if (g_mkdtemp_full(dir, 0700) == NULL) {
> > + g_error("g_mkdtemp_full: %s", g_strerror(errno));
> > + }
> > + tmpdir = dir;
> > + tmpserver = g_strconcat(tmpdir, "/server", NULL);
> > +
> > + qtest_add_func("/ivshmem/single", test_ivshmem_single);
> > + qtest_add_func("/ivshmem/pair", test_ivshmem_pair);
> > + qtest_add_func("/ivshmem/server", test_ivshmem_server);
> > + qtest_add_func("/ivshmem/hotplug", test_ivshmem_hotplug);
> > +
> > + ret = g_test_run();
> > +
> > + cleanup();
> > + return ret;
> > +}
> >
>
>
>
>
next prev parent reply other threads:[~2015-09-29 15:30 UTC|newest]
Thread overview: 94+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-24 11:37 [Qemu-devel] [PATCH v4 00/47] ivshmem improvements marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 01/47] char: add qemu_chr_free() marcandre.lureau
2015-09-29 13:13 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 02/47] msix: add VMSTATE_MSIX_TEST marcandre.lureau
2015-09-29 13:14 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 03/47] ivhsmem: read do not accept more than sizeof(long) marcandre.lureau
2015-09-29 13:15 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 04/47] ivshmem: fix number of bytes to push to fifo marcandre.lureau
2015-09-29 12:40 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 05/47] ivshmem: factor out the incoming fifo handling marcandre.lureau
2015-09-29 12:41 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 06/47] ivshmem: remove unnecessary dup() marcandre.lureau
2015-09-29 12:41 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 07/47] ivshmem: remove superflous ivshmem_attr field marcandre.lureau
2015-09-29 12:42 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 08/47] ivshmem: remove useless doorbell field marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 09/47] ivshmem: more qdev conversion marcandre.lureau
2015-09-29 12:42 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 10/47] ivshmem: remove last exit(1) marcandre.lureau
2015-09-29 12:43 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 11/47] ivshmem: limit maximum number of peers to G_MAXUINT16 marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 12/47] ivshmem: simplify around increase_dynamic_storage() marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 13/47] ivshmem: allocate eventfds in resize_peers() marcandre.lureau
2015-09-29 12:44 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 14/47] ivshmem: remove useless ivshmem_update_irq() val argument marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 15/47] ivshmem: initialize max_peer to -1 marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 16/47] ivshmem: remove max_peer field marcandre.lureau
2015-09-29 12:44 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 17/47] ivshmem: improve debug messages marcandre.lureau
2015-09-29 13:00 ` Claudio Fontana
2015-09-29 13:12 ` Marc-André Lureau
2015-09-29 13:21 ` Claudio Fontana
2015-09-29 13:24 ` Marc-André Lureau
2015-09-29 13:36 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 18/47] ivshmem: improve error handling marcandre.lureau
2015-09-29 13:01 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 19/47] ivshmem: print error on invalid peer id marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 20/47] ivshmem: simplify a bit the code marcandre.lureau
2015-09-29 13:04 ` Claudio Fontana
2015-09-29 13:06 ` Marc-André Lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 21/47] ivshmem: use common return marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 22/47] ivshmem: use common is_power_of_2() marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 23/47] ivshmem: migrate with VMStateDescription marcandre.lureau
2015-09-29 13:28 ` Claudio Fontana
2015-09-29 13:39 ` Marc-André Lureau
2015-09-29 14:15 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 24/47] ivshmem: shmfd can be 0 marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 25/47] ivshmem: check shm isn't already initialized marcandre.lureau
2015-09-29 13:32 ` Claudio Fontana
2015-09-29 13:34 ` Marc-André Lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 26/47] ivshmem: add device description marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 27/47] ivshmem: fix pci_ivshmem_exit() marcandre.lureau
2015-09-29 13:38 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 28/47] ivshmem: replace 'guest' for 'peer' appropriately marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 29/47] ivshmem: error on too many eventfd received marcandre.lureau
2015-09-29 13:39 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 30/47] ivshmem: reset mask on device reset marcandre.lureau
2015-09-29 13:40 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 31/47] contrib: add ivshmem client and server marcandre.lureau
2015-09-30 8:37 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 32/47] ivshmem-client: check the number of vectors marcandre.lureau
2015-09-29 13:47 ` Claudio Fontana
2015-09-29 14:01 ` Marc-André Lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 33/47] ivshmem-server: use a uint16 for client ID marcandre.lureau
2015-09-29 13:51 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 34/47] ivshmem-server: fix hugetlbfs support marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 35/47] docs: update ivshmem device spec marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 36/47] ivshmem: add check on protocol version in QEMU marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 37/47] contrib: remove unnecessary strdup() marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 38/47] msix: implement pba write (but read-only) marcandre.lureau
2015-10-02 13:47 ` Paolo Bonzini
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 39/47] qtest: add qtest_add_abrt_handler() marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 40/47] tests: add ivshmem qtest marcandre.lureau
2015-09-29 15:05 ` Claudio Fontana
2015-09-29 15:30 ` Marc-André Lureau [this message]
2015-09-30 11:38 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 41/47] ivshmem: do not keep shm_fd open marcandre.lureau
2015-09-29 15:10 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 42/47] ivshmem: use strtosz() marcandre.lureau
2015-09-24 12:13 ` Marc-André Lureau
2015-09-24 12:33 ` Marc-André Lureau
2015-09-29 14:34 ` Claudio Fontana
2015-09-29 14:51 ` Marc-André Lureau
2015-09-30 8:39 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 43/47] ivshmem: add hostmem backend marcandre.lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 44/47] ivshmem: remove EventfdEntry.vector marcandre.lureau
2015-09-29 14:32 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 45/47] ivshmem: rename MSI eventfd_table marcandre.lureau
2015-09-29 15:11 ` Claudio Fontana
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 46/47] ivshmem: use kvm irqfd for msi notifications marcandre.lureau
2015-09-30 11:47 ` Claudio Fontana
2015-10-02 13:29 ` Marc-André Lureau
2015-09-24 11:37 ` [Qemu-devel] [PATCH v4 47/47] ivshmem: use little-endian int64_t for the protocol marcandre.lureau
2015-09-29 14:28 ` Claudio Fontana
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=214721760.19922624.1443540618779.JavaMail.zimbra@redhat.com \
--to=mlureau@redhat.com \
--cc=afaerber@suse.de \
--cc=cam@cs.ualberta.ca \
--cc=claudio.fontana@huawei.com \
--cc=drjones@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@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).