virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/02][RESEND] virtio: Virtio platform driver
@ 2011-06-21 10:26 Magnus Damm
  0 siblings, 0 replies; 10+ messages in thread
From: Magnus Damm @ 2011-06-21 10:26 UTC (permalink / raw)
  To: linux-kernel; +Cc: vapier, mst, linux-sh, Magnus Damm, virtualization

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(-)

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-06-28  5:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20110621102605.1382.90232.sendpatchset@t400s>
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-22  2:09 ` [PATCH 00/02][RESEND] virtio: Virtio " Rusty Russell
     [not found] ` <20110621102623.1382.71841.sendpatchset@t400s>
2011-06-21 18:27   ` [PATCH 02/02] virtio: Add virtio " Mike Frysinger
     [not found]   ` <BANLkTi=tut=Y4fc4tkT8wt_q1azJOYaDoQ@mail.gmail.com>
2011-06-23  2:26     ` Magnus Damm
2011-06-23  8:54   ` Bhushan Bharat-R65777
     [not found]   ` <B8D6CA50DACE9E4AAADE9A4D56FBAAE6166661@039-SN1MPN1-004.039d.mgd.msft.net>
2011-06-24  1:14     ` Magnus Damm
     [not found]     ` <BANLkTi=QhwBAv5GtrTpitVhx+yDZPnRN+g@mail.gmail.com>
2011-06-24  4:08       ` Bhushan Bharat-R65777
     [not found] ` <87oc1q8vnj.fsf@rustcorp.com.au>
2011-06-28  5:14   ` [PATCH 00/02][RESEND] virtio: Virtio " Magnus Damm
2011-06-21 10:26 Magnus Damm

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).