All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-4.5] libxl: add missing action in DEFINE_DEVICE_ADD
@ 2014-11-11 13:46 Wei Liu
  2014-11-12 10:01 ` Ian Campbell
  0 siblings, 1 reply; 10+ messages in thread
From: Wei Liu @ 2014-11-11 13:46 UTC (permalink / raw)
  To: xen-devel; +Cc: George Dunlap, Ian Jackson, Wei Liu, Ian Campbell

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: George Dunlap <george.dunlap@eu.citrix.com>
Cc: Konrad Wilk <konrad.wilk@oracle.com>
---
This is a simple enough bug fix I think it should just go in.
---
 tools/libxl/libxl.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c
index f7961f6..de23fec 100644
--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -4164,6 +4164,7 @@ DEFINE_DEVICE_REMOVE(vtpm, destroy, 1)
                                                                         \
         GCNEW(aodev);                                                   \
         libxl__prepare_ao_device(ao, aodev);                            \
+        aodev->action = LIBXL__DEVICE_ACTION_ADD;                       \
         aodev->callback = device_addrm_aocomplete;                      \
         aodev->update_json = true;                                      \
         libxl__device_##type##_add(egc, domid, type, aodev);            \
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [PATCH for-4.5] libxl: add missing action in DEFINE_DEVICE_ADD
@ 2014-11-12 10:39 Wei Liu
  2014-11-12 10:55 ` Wei Liu
  2014-11-12 10:56 ` Ian Campbell
  0 siblings, 2 replies; 10+ messages in thread
From: Wei Liu @ 2014-11-12 10:39 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson, Wei Liu, Ian Campbell

... otherwise when device add operation fails, the error message looks
like "libxl: error: libxl.c:1897:device_addrm_aocomplete: unable to (null)
device", which is not very helpful.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
---
 tools/libxl/libxl.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c
index f7961f6..de23fec 100644
--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -4164,6 +4164,7 @@ DEFINE_DEVICE_REMOVE(vtpm, destroy, 1)
                                                                         \
         GCNEW(aodev);                                                   \
         libxl__prepare_ao_device(ao, aodev);                            \
+        aodev->action = LIBXL__DEVICE_ACTION_ADD;                       \
         aodev->callback = device_addrm_aocomplete;                      \
         aodev->update_json = true;                                      \
         libxl__device_##type##_add(egc, domid, type, aodev);            \
-- 
1.7.10.4

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

end of thread, other threads:[~2014-11-14 10:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-11 13:46 [PATCH for-4.5] libxl: add missing action in DEFINE_DEVICE_ADD Wei Liu
2014-11-12 10:01 ` Ian Campbell
2014-11-12 10:36   ` Wei Liu
  -- strict thread matches above, loose matches on Subject: below --
2014-11-12 10:39 Wei Liu
2014-11-12 10:55 ` Wei Liu
2014-11-12 10:56 ` Ian Campbell
2014-11-12 15:16   ` Konrad Rzeszutek Wilk
2014-11-14 10:57     ` Ian Campbell
2014-11-14 10:35   ` Ian Campbell
2014-11-14 10:40     ` Ian Campbell

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.