From: Paolo Bonzini <pbonzini@redhat.com>
To: Vincent JARDIN <vincent.jardin@6wind.com>
Cc: Henning Schild <henning.schild@siemens.com>,
Olivier MATZ <olivier.matz@6wind.com>,
kvm@vger.kernel.org, Markus Armbruster <armbru@redhat.com>,
qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org,
"thomas.monjalon@6wind.com" <thomas.monjalon@6wind.com>,
David Marchand <david.marchand@6wind.com>
Subject: Re: [Qemu-devel] Why I advise against using ivshmem
Date: Fri, 13 Jun 2014 16:10:21 +0200 [thread overview]
Message-ID: <539B064D.2050501@redhat.com> (raw)
In-Reply-To: <539AFF7C.7090702@6wind.com>
Il 13/06/2014 15:41, Vincent JARDIN ha scritto:
>> Fine, however Red Hat would also need a way to test ivshmem code, with
>> proper quality assurance (that also benefits upstream, of course). With
>> ivshmem this is not possible without the out-of-tree packages.
>
> You did not reply to my question: how to get the list of things that
> are/will be disabled by Redhat?
I don't know exactly what the answer is, and this is probably not the
right list to discuss it. I guess there are partnership programs with
Red Hat that I don't know the details of, but these are more for
management folks and not really for developers.
ivshmem in particular was disabled even in RHEL7 beta, so you could have
found out about this in December and opened a bug in Bugzilla about it.
> I guess we can combine both. What's about something like:
> tests/virtio-net-test.c # qtest_add_func( is a nop)
> but for ivshmem
> test/ivshmem-test.c
> ?
>
> would it have any values?
The first things to do are:
1) try to understand if there is any value in a simplified shared memory
device with no interrupts (and those no eventfd or uio dependencies, not
even optionally). You are not using them because DPDK only does polling
and basically reserves a core for the NIC code. If so, this would be a
very simple device, just a 100 or so lines of code. We could get this
in upstream, and it would be likely enabled in RHEL too.
2) if not, get the server and uio driver merged into the QEMU tree, and
document the protocol in docs/specs/ivshmem_device_spec.txt. It doesn't
matter if the code comes from the Nahanni repository or from your own
implementation. Also start fixing bugs such as the ones that Markus
reported (removing all exit() invocations).
Writing testcases using the qtest framework would also be useful, but
first of all it is important to make ivshmem easier to use.
> If not, what do you use at Redhat to test Qemu?
We do integration testing using autotest/virt-test (QEMU and KVM
developers for upstream use it too) and also some manual functional tests.
Contributing ivshmem tests to the virt-test would also be helpful in
demonstrating your interest in maintaining ivshmem. The repository and
documentation is at https://github.com/autotest/virt-test/ (a bit
Fedora-centric).
> I do repeat this use case that you had removed because vhost-user does
> not solve it yet:
>
>>> - ivshmem -> framework to be generic to have shared memory for many
>>> use cases (HPC, in-memory-database, a network too like memnic).
Right, ivshmem is better for guest-to-guest. vhost-user is not
restricted to networking, but it is indeed more focused on
guest-to-host. ivshmem is usable for guest-to-host, but I would prefer
still some "hybrid" that uses vhost-like messages to pass the shared
memory fds to the external program.
Paolo
next prev parent reply other threads:[~2014-06-13 14:10 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-10 16:48 [Qemu-devel] Using virtio for inter-VM communication Henning Schild
2014-06-10 22:15 ` Vincent JARDIN
2014-06-12 6:48 ` Markus Armbruster
2014-06-12 7:44 ` Henning Schild
2014-06-12 9:31 ` Vincent JARDIN
2014-06-12 12:55 ` Markus Armbruster
2014-06-12 14:40 ` [Qemu-devel] Why I advise against using ivshmem (was: Using virtio for inter-VM communication) Markus Armbruster
2014-06-12 16:02 ` [Qemu-devel] Why I advise against using ivshmem Vincent JARDIN
2014-06-12 16:54 ` Paolo Bonzini
2014-06-13 8:46 ` Markus Armbruster
2014-06-13 9:26 ` Vincent JARDIN
2014-06-13 9:31 ` Jobin Raju George
2014-06-13 9:48 ` Olivier MATZ
2014-06-13 10:09 ` Paolo Bonzini
2014-06-13 13:41 ` Vincent JARDIN
2014-06-13 14:10 ` Paolo Bonzini [this message]
2014-06-14 18:01 ` Vincent JARDIN
2014-06-17 2:54 ` Stefan Hajnoczi
2014-06-17 9:03 ` David Marchand
2014-06-17 9:44 ` Paolo Bonzini
2014-06-18 10:48 ` Stefan Hajnoczi
2014-06-18 14:57 ` David Marchand
2014-06-18 15:10 ` Paolo Bonzini
2014-06-21 9:34 ` Stefan Hajnoczi
2014-06-26 20:02 ` Cam Macdonell
2014-06-18 15:01 ` Andreas Färber
2014-06-19 8:25 ` David Marchand
2014-06-30 11:10 ` Markus Armbruster
2014-06-18 10:51 ` Stefan Hajnoczi
2014-06-18 14:58 ` David Marchand
2014-06-18 14:22 ` Claudio Fontana
2014-06-13 9:29 ` Jobin Raju George
2014-06-12 2:27 ` [Qemu-devel] Using virtio for inter-VM communication Rusty Russell
2014-06-12 5:32 ` Jan Kiszka
2014-06-13 0:47 ` Rusty Russell
2014-06-13 6:23 ` Jan Kiszka
2014-06-13 8:45 ` Paolo Bonzini
2014-06-15 6:20 ` Jan Kiszka
2014-06-17 5:24 ` Paolo Bonzini
2014-06-17 5:57 ` Jan Kiszka
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=539B064D.2050501@redhat.com \
--to=pbonzini@redhat.com \
--cc=armbru@redhat.com \
--cc=david.marchand@6wind.com \
--cc=henning.schild@siemens.com \
--cc=kvm@vger.kernel.org \
--cc=olivier.matz@6wind.com \
--cc=qemu-devel@nongnu.org \
--cc=thomas.monjalon@6wind.com \
--cc=vincent.jardin@6wind.com \
--cc=virtualization@lists.linux-foundation.org \
/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).