mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: "lkml" <linux-kernel@vger.kernel.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>,
	"Michael S. Tsirkin" <mst@redhat.com>
Subject: [PATCH 00/29] lguest virtio PCI 1.0 adaptation.
Date: Fri,  6 Feb 2015 15:51:43 +1030	[thread overview]
Message-ID: <1423200112-5354-1-git-send-email-rusty@rustcorp.com.au> (raw)

Hi all!

	I've just spent a week changing lguest from its own custom
virtio bus to PCI, and from legacy virtio to modern (1.0).  I did this
mainly to test the Linux implementation.

The first 11 patches set up the framework for routing more traps to
the Lguest launcher, so we can intercept ioport and MMIO instructions.

Patches 12-15 implement emulation of virtio over PCI devices, and then
16-19 convert the four devices we support.  20-23 remove the obsolete
lguest bus support.

24-27 change the guest to bang the emerg_wr register (via the pci config
space MMIO accessor window) to perform early boot messages.  It's slow
and ugly, but it works.

Finally, the last two patches remove the last of the old hypercall
notification mechanism.

Cheers!
Rusty.

Rusty Russell (29):
  lguest: have --rng read from /dev/urandom not /dev/random.
  lguest: add operations to get/set a register from the Launcher.
  lguest: write more information to userspace about pending traps.
  lguest: add infrastructure for userspace to deliver a trap to the
    guest.
  lguest: add infrastructure to check mappings.
  lguest: send trap 13 through to userspace.
  lguest: suppress PS/2 keyboard polling.
  lguest: don't disable iospace.
  lguest: add iomem region, where guest page faults get sent to
    userspace.
  lguest: disable ACPI explicitly.
  lguest: Override pcibios_enable_irq/pcibios_disable_irq to our stupid
    PIC
  lguest: add PCI emulation.
  lguest: implement virtio-PCI MMIO accesses.
  lguest: fix failure to find linux/virtio_types.h
  lguest: add a dummy PCI host bridge.
  lguest: Convert block device to virtio 1.0 PCI.
  lguest: Convert net device to virtio 1.0 PCI.
  lguest: Convert entropy device to virtio 1.0 PCI.
  lguest: Convert console device to virtio 1.0 PCI.
  lguest: define VIRTIO_CONFIG_NO_LEGACY in example launcher.
  lguest: remove support for lguest bus.
  lguest: remove support for lguest bus in demonstration launcher.
  lguest: remove lguest bus definitions from header.
  lguest: support emerg_wr in console device in example launcher.
  lguest: support backdoor window.
  lguest: always put console in PCI slot #1.
  lguest: use the PCI console device's emerg_wr for early boot messages.
  lguest: remove NOTIFY facility from demonstration launcher.
  lguest: remove NOTIFY call and eventfd facility.

 arch/x86/include/asm/lguest_hcall.h |    1 -
 arch/x86/lguest/boot.c              |  182 ++++-
 drivers/lguest/Makefile             |    3 -
 drivers/lguest/core.c               |   29 +-
 drivers/lguest/hypercalls.c         |    7 +-
 drivers/lguest/lg.h                 |   26 +-
 drivers/lguest/lguest_device.c      |  540 -------------
 drivers/lguest/lguest_user.c        |  221 ++----
 drivers/lguest/page_tables.c        |   75 +-
 drivers/lguest/x86/core.c           |  198 ++---
 include/linux/lguest_launcher.h     |   61 +-
 tools/lguest/Makefile               |    8 +-
 tools/lguest/lguest.c               | 1443 +++++++++++++++++++++++++++--------
 13 files changed, 1572 insertions(+), 1222 deletions(-)
 delete mode 100644 drivers/lguest/lguest_device.c

-- 
2.1.0


             reply	other threads:[~2015-02-06  5:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-06  5:21 Rusty Russell [this message]
2015-02-06  5:21 ` [PATCH 01/29] lguest: have --rng read from /dev/urandom not /dev/random Rusty Russell
2015-02-06  5:21 ` [PATCH 02/29] lguest: add operations to get/set a register from the Launcher Rusty Russell
2015-02-06  5:21 ` [PATCH 03/29] lguest: write more information to userspace about pending traps Rusty Russell
2015-02-06  5:21 ` [PATCH 04/29] lguest: add infrastructure for userspace to deliver a trap to the guest Rusty Russell
2015-02-06  5:21 ` [PATCH 05/29] lguest: add infrastructure to check mappings Rusty Russell
2015-02-06  5:21 ` [PATCH 06/29] lguest: send trap 13 through to userspace Rusty Russell
2015-02-06  5:21 ` [PATCH 07/29] lguest: suppress PS/2 keyboard polling Rusty Russell
2015-02-06  5:21 ` [PATCH 08/29] lguest: don't disable iospace Rusty Russell
2015-02-06  5:21 ` [PATCH 09/29] lguest: add iomem region, where guest page faults get sent to userspace Rusty Russell

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=1423200112-5354-1-git-send-email-rusty@rustcorp.com.au \
    --to=rusty@rustcorp.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@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

Powered by JetHome