From: Magnus Damm <magnus.damm@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: vapier@gentoo.org, linux-sh@vger.kernel.org,
rusty@rustcorp.com.au, virtualization@lists.linux-foundation.org,
horms@verge.net.au, mst@redhat.com,
Magnus Damm <magnus.damm@gmail.com>,
iws@ovro.caltech.edu
Subject: [PATCH 00/02][RESEND] virtio: Virtio platform driver
Date: Tue, 21 Jun 2011 10:26:05 +0000 [thread overview]
Message-ID: <20110621102605.1382.90232.sendpatchset@t400s> (raw)
virtio: Virtio platform driver
[PATCH 01/02] virtio: Break out lguest virtio code to virtio_lguest.c
[PATCH 02/02] virtio: Add virtio platform driver
These patches add a virtio platform driver to the Linux kernel. This
platform driver has the same role as the virtio_pci driver, but instead
of building on top of emulated PCI this driver is making use of the
platform bus together with driver specific callbacks.
The virtio platform driver can be seen as a reusable implementation of
the lguest virtio driver - in fact, most code is just taken directly
from lguest_device.c and reworked to fit the platform device driver
abstraction. The first patch breaks out code that can be shared between
lguest and the virtio platform driver.
This code has been used to implement a mailbox interface between the
two processor cores included in the sh7372 SoC. The sh7372 contains
one ARM Cortex-A8 and one SH4AL-DSP core, and in the prototype two
Linux kernels are running in parallel on the same chip. Virtio serves
as a communication link between the two cores.
These patches have not been updated since last time they were posted
20110310, but are known to apply and compile against linux-3.0-rc.
For a full source release, have a look at SH Core Linux 20110317:
http://www.spinics.net/lists/linux-sh/msg07188.html
The SH kernel patch shows how to make use of the virtio platform driver.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
arch/x86/lguest/Kconfig | 1
drivers/lguest/lguest_device.c | 209 ----------------------------
drivers/virtio/Kconfig | 13 +
drivers/virtio/Makefile | 2
drivers/virtio/virtio_lguest.c | 205 ++++++++++++++++++++++++++++
drivers/virtio/virtio_platform.c | 282 +++++++++++++++++++++++++++++++++++++++
include/linux/lguest.h | 1
include/linux/lguest_device.h | 46 ++++++
include/linux/virtio_platform.h | 12 +
9 files changed, 564 insertions(+), 207 deletions(-)
next reply other threads:[~2011-06-21 10:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-21 10:26 Magnus Damm [this message]
2011-06-21 10:26 ` [PATCH 01/02] virtio: Break out lguest virtio code to virtio_lguest.c Magnus Damm
2011-06-21 10:26 ` [PATCH 02/02] virtio: Add virtio platform driver Magnus Damm
2011-06-21 18:27 ` Mike Frysinger
2011-06-23 2:26 ` Magnus Damm
2011-06-23 8:54 ` Bhushan Bharat-R65777
2011-06-24 1:14 ` Magnus Damm
2011-06-24 4:08 ` Bhushan Bharat-R65777
2011-06-22 2:21 ` [PATCH 00/02][RESEND] virtio: Virtio " Rusty Russell
2011-06-28 5:14 ` Magnus Damm
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=20110621102605.1382.90232.sendpatchset@t400s \
--to=magnus.damm@gmail.com \
--cc=horms@verge.net.au \
--cc=iws@ovro.caltech.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=mst@redhat.com \
--cc=rusty@rustcorp.com.au \
--cc=vapier@gentoo.org \
--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).