[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] remove list callback from device framework



From: Oleksandr Grytsov <oleksandr_grytsov@xxxxxxxx>

We have generic functiont to get/free device list:

libxl__device_list and libxl__device_list_free

As some devices have different from their name entry
in XS (disk -> vbd), getting list function
takes XS entry as paramater. This doesn't allow
to call libxl__device_list from generic context.
As result there is .list callback which  call
device specific getting list function (libxl_device_disk_list).

The patch adds new field .entry in libxl_device_type.
This field keeps XS entry for the device. Generic
libxl__device_list use this value internally and
getting list can be called from generic context
without .list callback.

Oleksandr Grytsov (1):
  libxl: remove list callback from device framework

 tools/libxl/libxl_checkpoint_device.c |  4 ++--
 tools/libxl/libxl_colo_save.c         |  2 +-
 tools/libxl/libxl_device.c            |  4 ++--
 tools/libxl/libxl_disk.c              | 24 ++++--------------------
 tools/libxl/libxl_domain.c            |  4 ++--
 tools/libxl/libxl_internal.h          | 30 ++++++++++++++++++++++++------
 tools/libxl/libxl_nic.c               |  6 +++---
 tools/libxl/libxl_pci.c               |  2 +-
 tools/libxl/libxl_vdispl.c            | 23 ++---------------------
 tools/libxl/libxl_vtpm.c              | 23 +++--------------------
 10 files changed, 44 insertions(+), 78 deletions(-)

-- 
2.7.4


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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.