xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: xen-devel@lists.xen.org
Cc: Juergen Gross <jgross@suse.com>,
	wei.liu2@citrix.com, ian.jackson@eu.citrix.com
Subject: [PATCH v2 0/4] libxl: add framework for device types
Date: Wed,  6 Jul 2016 16:55:30 +0200	[thread overview]
Message-ID: <1467816934-7183-1-git-send-email-jgross@suse.com> (raw)

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

             reply	other threads:[~2016-07-06 14:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-06 14:55 Juergen Gross [this message]
2016-07-06 14:55 ` [PATCH v2 1/4] libxl: add framework for device types 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

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=1467816934-7183-1-git-send-email-jgross@suse.com \
    --to=jgross@suse.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /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;
as well as URLs for NNTP newsgroup(s).