All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/8] xen_disk: legacy code removal and cleanup
@ 2018-05-04 19:25 Paul Durrant
  2018-05-04 19:26 ` [PATCH v3 1/8] xen_backend: add grant table helpers Paul Durrant
                   ` (14 more replies)
  0 siblings, 15 replies; 39+ messages in thread
From: Paul Durrant @ 2018-05-04 19:25 UTC (permalink / raw)
  To: xen-devel, qemu-block, qemu-devel
  Cc: Paul Durrant, Anthony Perard, Gerd Hoffmann, Greg Kurz,
	Jason Wang, Kevin Wolf, Max Reitz, Paolo Bonzini,
	Stefano Stabellini

The grant copy operation was added to libxengnttab in Xen 4.8.0 (released
nearly 18 months ago) but the xen_disk PV backend QEMU is still carrying
a significant amount of code purely to remain compatible with older
versions of Xen.

As can be inferred from the diff stats below, removing this support for
older versions of Xen from QEMU reduces the size of the xen_disk source by
around 320 lines (~25%).
 
This versionseries maintains compatibility with older Xen, and OS
not supporting the grant copy operation, by adding an emulation of it
into the xen_backend code. Thus xen_disk can be simplified without
regressing support for any environment. This series also performs
general cleanup of the code by introducing and consistently using
helper functions for calling into libxenttab.

Paul Durrant (8):
  xen_backend: add grant table helpers
  xen_disk: remove open-coded use of libxengnttab
  xen: remove other open-coded use of libxengnttab
  xen_backend: add an emulation of grant copy
  xen_disk: remove use of grant map/unmap
  xen_backend: make the xen_feature_grant_copy flag private
  xen_disk: use a single entry iovec
  xen_disk: be consistent with use of xendev and blkdev->xendev

 hw/9pfs/xen-9p-backend.c     |  32 ++-
 hw/block/xen_disk.c          | 614 +++++++------------------------------------
 hw/char/xen_console.c        |   9 +-
 hw/net/xen_nic.c             |  34 ++-
 hw/usb/xen-usb.c             |  37 ++-
 hw/xen/xen_backend.c         | 178 ++++++++++++-
 include/hw/xen/xen_backend.h |  34 ++-
 7 files changed, 351 insertions(+), 587 deletions(-)
---
Cc: Anthony Perard <anthony.perard@citrix.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Greg Kurz <groug@kaod.org>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Max Reitz <mreitz@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>

-- 
2.1.4

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

end of thread, other threads:[~2018-05-17 11:08 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-04 19:25 [Qemu-devel] [PATCH v3 0/8] xen_disk: legacy code removal and cleanup Paul Durrant
2018-05-04 19:26 ` [PATCH v3 1/8] xen_backend: add grant table helpers Paul Durrant
2018-05-04 19:26 ` [Qemu-devel] " Paul Durrant
2018-05-16 13:50   ` Anthony PERARD
2018-05-16 13:50     ` Anthony PERARD
2018-05-16 14:00     ` [Qemu-devel] " Paul Durrant
2018-05-16 14:00       ` Paul Durrant
2018-05-04 19:26 ` [PATCH v3 2/8] xen_disk: remove open-coded use of libxengnttab Paul Durrant
2018-05-04 19:26 ` [Qemu-devel] " Paul Durrant
2018-05-16 14:02   ` Anthony PERARD
2018-05-16 14:02     ` Anthony PERARD
2018-05-04 19:26 ` [PATCH v3 3/8] xen: remove other " Paul Durrant
2018-05-04 19:26 ` [Qemu-devel] " Paul Durrant
2018-05-16 14:14   ` Anthony PERARD
2018-05-16 14:22     ` Paul Durrant
2018-05-16 14:22     ` [Qemu-devel] " Paul Durrant
2018-05-16 14:14   ` Anthony PERARD
2018-05-04 19:26 ` [Qemu-devel] [PATCH v3 4/8] xen_backend: add an emulation of grant copy Paul Durrant
2018-05-16 14:30   ` Anthony PERARD
2018-05-16 14:30     ` Anthony PERARD
2018-05-16 14:34     ` [Qemu-devel] " Paul Durrant
2018-05-16 14:34       ` Paul Durrant
2018-05-04 19:26 ` Paul Durrant
2018-05-04 19:26 ` [PATCH v3 5/8] xen_disk: remove use of grant map/unmap Paul Durrant
2018-05-04 19:26 ` [Qemu-devel] " Paul Durrant
2018-05-17 10:31   ` Anthony PERARD
2018-05-17 10:31   ` Anthony PERARD
2018-05-04 19:26 ` [Qemu-devel] [PATCH v3 6/8] xen_backend: make the xen_feature_grant_copy flag private Paul Durrant
2018-05-04 19:26   ` Paul Durrant
2018-05-17 10:31   ` [Qemu-devel] " Anthony PERARD
2018-05-17 10:31     ` Anthony PERARD
2018-05-04 19:26 ` [Qemu-devel] [PATCH v3 7/8] xen_disk: use a single entry iovec Paul Durrant
2018-05-17 10:59   ` Anthony PERARD
2018-05-17 10:59   ` [Qemu-devel] " Anthony PERARD
2018-05-04 19:26 ` Paul Durrant
2018-05-04 19:26 ` [Qemu-devel] [PATCH v3 8/8] xen_disk: be consistent with use of xendev and blkdev->xendev Paul Durrant
2018-05-17 11:07   ` Anthony PERARD
2018-05-17 11:07   ` [Qemu-devel] " Anthony PERARD
2018-05-04 19:26 ` Paul Durrant

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.