xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] libxl: add framework for device types
@ 2016-07-06 14:55 Juergen Gross
  2016-07-06 14:55 ` [PATCH v2 1/4] " Juergen Gross
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Juergen Gross @ 2016-07-06 14:55 UTC (permalink / raw)
  To: xen-devel; +Cc: Juergen Gross, wei.liu2, ian.jackson

Instead of duplicate coding for each device type (vtpms, usbctrls, ...)
especially on domain creation introduce a framework for that purpose.

I especially found it annoying that e.g. the vtpm callback issued the
error message for a failed attach of nic devices.

Changes in V2:
- added new patch 4 to move more pvusb specific stuff into libxl_pvusb.c
- patch 1: add macro to fill struct libxl__device_type as suggested by
  Ian Jackson
- patch 1: make struct libxl__device_type variables const as requested by
  Ian Jackson

Juergen Gross (4):
  libxl: add framework for device types
  libxl: refactor domcreate_attach_pci() to use device type framework
  libxl: refactor domcreate_attach_dtdev() to use device type framework
  libxl: move DEFINE_DEVICE* macros to libxl_internal.h

 tools/libxl/libxl.c          | 146 +++++------------------
 tools/libxl/libxl_create.c   | 271 +++++++++++++------------------------------
 tools/libxl/libxl_device.c   |  36 ------
 tools/libxl/libxl_internal.h | 127 ++++++++++++++------
 tools/libxl/libxl_pci.c      |  32 +++++
 tools/libxl/libxl_pvusb.c    |  29 +++--
 6 files changed, 255 insertions(+), 386 deletions(-)

-- 
2.6.6


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

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

end of thread, other threads:[~2016-07-12 13:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-06 14:55 [PATCH v2 0/4] libxl: add framework for device types Juergen Gross
2016-07-06 14:55 ` [PATCH v2 1/4] " Juergen Gross
2016-07-08 17:52   ` Ian Jackson
2016-07-06 14:55 ` [PATCH v2 2/4] libxl: refactor domcreate_attach_pci() to use device type framework Juergen Gross
2016-07-08 17:52   ` Ian Jackson
2016-07-06 14:55 ` [PATCH v2 3/4] libxl: refactor domcreate_attach_dtdev() " Juergen Gross
2016-07-08 17:53   ` Ian Jackson
2016-07-06 14:55 ` [PATCH v2 4/4] libxl: move DEFINE_DEVICE* macros to libxl_internal.h Juergen Gross
2016-07-08 17:53   ` Ian Jackson
2016-07-08 17:54 ` [PATCH v2 0/4] libxl: add framework for device types Ian Jackson
2016-07-11 10:47   ` Wei Liu
2016-07-12 13:40   ` Wei Liu

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