mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
libxl: add missing action in DEFINE_DEVICE_ADD
... 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> Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
f804eee318
commit
902dfd33da
1 file changed
+1
@@ -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); \
|
||||
|
||||