mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH RFC 0/5] virtio pci: virtio 1.0 support
@ 2014-12-15 21:33 Michael S. Tsirkin
  2014-12-15 21:33 ` [PATCH RFC 1/5] pci: add pci_iomap_range Michael S. Tsirkin
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Michael S. Tsirkin @ 2014-12-15 21:33 UTC (permalink / raw)
  To: linux-kernel; +Cc: Rusty Russell, virtualization, linux-sh, cornelia.huck

This is on top of 3.19 master + my bugfix patches, and adds virtio 1.0 support
to virtio pci.
This is 3.20 material I think.

Would like to get feedback on s390 change as it's untested.

Michael S Tsirkin (2):
  pci: add pci_iomap_range
  s390: add pci_iomap_range

Michael S. Tsirkin (2):
  virtio_pci: modern driver
  virtio_pci: macros for PCI layout offsets.

Rusty Russell (1):
  virtio-pci: define layout for virtio 1.0

 arch/s390/include/asm/pci_io.h     |   1 +
 drivers/virtio/virtio_pci_common.h |  29 +-
 include/asm-generic/pci_iomap.h    |  10 +
 include/uapi/linux/virtio_pci.h    |  92 +++++
 tools/virtio/linux/virtio_config.h |  45 +++
 arch/s390/pci/pci.c                |  34 +-
 drivers/virtio/virtio_pci_common.c |  13 +-
 drivers/virtio/virtio_pci_modern.c | 684 +++++++++++++++++++++++++++++++++++++
 lib/pci_iomap.c                    |  35 +-
 tools/virtio/virtio_test.c         |   1 +
 drivers/virtio/Makefile            |   2 +-
 11 files changed, 929 insertions(+), 17 deletions(-)
 create mode 100644 drivers/virtio/virtio_pci_modern.c

-- 
MST


^ permalink raw reply	[flat|nested] 10+ messages in thread
* [PATCH RFC 0/5] virtio_pci: modern driver
@ 2014-12-11 19:37 Michael S. Tsirkin
  2014-12-11 19:37 ` [PATCH RFC 4/5] " Michael S. Tsirkin
  0 siblings, 1 reply; 10+ messages in thread
From: Michael S. Tsirkin @ 2014-12-11 19:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: Rusty Russell, virtualization, cornelia.huck

Based on Rusty's patches.
Coding style and funny jokes are his.
Bugs and a star wars reference (should be easy to spot) are mine.
Untested, but useful as basis for beginning the qemu work.

TODO:
= 	simplify probing: use a common probe function, probe with modern driver
	first, if that fails - probe with legacy driver.
BUGS:   ATM legacy driver can win and drive a transitional device
        Until this is fixed, to test, disable transitional mode in device

More ideas (optional):
=	allow disabling legacy driver
=	support shared IRQ for config, read ISR
=	allocate VQ ring in chunks, good for large rings
=	use less meory for small VQ ring in chunks, good for large rings

General TODOs:
=	add config generation support
=	move alloc_virtqueue_pages to virtio core, reuse in e.g. ccw

Michael S Tsirkin (1):
  pci: add pci_iomap_range

Michael S. Tsirkin (2):
  virtio_pci: add VIRTIO_PCI_NO_LEGACY
  virtio_pci: modern driver

Rusty Russell (2):
  virtio-pci: define layout for virtio 1.0
  virtio_pci: macros for PCI layout offsets.

 drivers/virtio/virtio_pci_common.h |  23 +-
 include/asm-generic/pci_iomap.h    |   5 +
 include/uapi/linux/virtio_pci.h    | 106 ++++++-
 drivers/virtio/virtio_pci_modern.c | 621 +++++++++++++++++++++++++++++++++++++
 lib/pci_iomap.c                    |  46 ++-
 drivers/virtio/Makefile            |   2 +-
 6 files changed, 788 insertions(+), 15 deletions(-)
 create mode 100644 drivers/virtio/virtio_pci_modern.c

-- 
MST


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

end of thread, other threads:[~2014-12-19 15:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-15 21:33 [PATCH RFC 0/5] virtio pci: virtio 1.0 support Michael S. Tsirkin
2014-12-15 21:33 ` [PATCH RFC 1/5] pci: add pci_iomap_range Michael S. Tsirkin
2014-12-15 21:33 ` [PATCH RFC 2/5] s390: " Michael S. Tsirkin
2014-12-19 14:13   ` Sebastian Ott
2014-12-19 14:28     ` Michael S. Tsirkin
2014-12-19 15:13       ` Sebastian Ott
2014-12-15 21:33 ` [PATCH RFC 3/5] virtio-pci: define layout for virtio 1.0 Michael S. Tsirkin
2014-12-15 21:33 ` [PATCH RFC 4/5] virtio_pci: modern driver Michael S. Tsirkin
2014-12-15 21:33 ` [PATCH RFC 5/5] virtio_pci: macros for PCI layout offsets Michael S. Tsirkin
  -- strict thread matches above, loose matches on Subject: below --
2014-12-11 19:37 [PATCH RFC 0/5] virtio_pci: modern driver Michael S. Tsirkin
2014-12-11 19:37 ` [PATCH RFC 4/5] " Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome