From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH for-4.5] libxl: add missing action in DEFINE_DEVICE_ADD Date: Wed, 12 Nov 2014 10:01:24 +0000 Message-ID: <1415786484.25176.45.camel@citrix.com> References: <1415713603-14611-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1415713603-14611-1-git-send-email-wei.liu2@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: George Dunlap , Ian Jackson , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-11-11 at 13:46 +0000, Wei Liu wrote: > Signed-off-by: Wei Liu > Cc: Ian Campbell > Cc: Ian Jackson > Cc: George Dunlap > Cc: Konrad Wilk > --- > This is a simple enough bug fix I think it should just go in. Probably, but can you explain in the commit log what the symptoms of not doing it are, IOW why it is required. > --- > 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); \