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

Re: [PATCH] libxl: Add missing libxl__virtio_devtype to device_type_tbl array


  • To: Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 27 Jul 2023 16:33:14 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UQ8VFHLzAI05SKWB7ehWmpZpzVH9greL9ap0tjkiyso=; b=WDof8tYgRmdu4ESWkl5GI6WYIc8L2J83XLmtvZpMN6EHYF0KX6jeYoV9I3ZN5H8zo//b/28YMORLNhuKSx8uBeYtOaDFEi7YZTD75ifTQb2KZQFHLzJK4c7yrIury2fVbvjaihsAy7emxpWgaHMQBHmsVjZTI08a6gG9p0zi9TxAPhhfPwvvM4M+Ttytofwz069snB3Lay6CSl6hGytcGoy4vXx5qhA6WMl+8fU3+D9NkKM50sObrUsR2Ffjawmee+Olih+nBIArTqTED+2t/k446bSP8N3ZtUonp2G53So0kkWYTZ3E1ZuKmG8vj4zDJzFhjSD2HEvYGypWBCo/cA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fA2As1BK5Jiu1bned2TySv5n1Z8aGRfZoCO5L76l418vruHirOPzVv2+yp1S95vbxyw92FzknwQydjhpMIQPoQWSVq1M9Z2e4keCS1CchXG5Eo76Ob/pnQOnMkL7Wq2VZ6c6zxVE+FpThnEL8hJfHUdY8o60RKfoOiiXEQOQF4YVse7QdSzstCg4IzgkHF7FcRNGXFUA4X0m1MEDslzMq9P4M83tvY8fs8ZY9CLEZ9o/MVIqoWdQ7HRwyiknPqdmGtY/2mAeNNW1LshTbUlTVIpO2L5FJaz4QpnCct8ZqtsxfcqWdFoVmDjSewb5wm1Sn2zRlm+VNF1CPvnIs41/qw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Wei Liu <wl@xxxxxxx>, Oleksandr Tyshchenko <olekstysh@xxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Viresh Kumar <viresh.kumar@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 27 Jul 2023 14:33:53 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 26.07.2023 17:13, Oleksandr Tyshchenko wrote:
> On 26.07.23 17:50, Jan Beulich wrote:
>> On 26.07.2023 16:14, Oleksandr Tyshchenko wrote:
>>> From: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>
>>>
>>> Without it being present it won't be possible to use some
>>> libxl__device_type's callbacks for virtio devices as the common code
>>> can only invoke these callbacks (by dereferencing a pointer) for valid
>>> libxl__device_type's elements when iterating over device_type_tbl[].
>>>
>>> Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>
>>> ---
>>>   tools/libs/light/libxl_create.c | 1 +
>>>   1 file changed, 1 insertion(+)
>>>
>>> diff --git a/tools/libs/light/libxl_create.c 
>>> b/tools/libs/light/libxl_create.c
>>> index 393c535579..c91059d713 100644
>>> --- a/tools/libs/light/libxl_create.c
>>> +++ b/tools/libs/light/libxl_create.c
>>> @@ -1887,6 +1887,7 @@ const libxl__device_type *device_type_tbl[] = {
>>>       &libxl__dtdev_devtype,
>>>       &libxl__vdispl_devtype,
>>>       &libxl__vsnd_devtype,
>>> +    &libxl__virtio_devtype,
>>>       NULL
>>>   };
>>
>>  From description and nature of the change this looks like a Fixes:
>> tag would be warranted.
> 
> Looks like, yes. Thanks.
> 
> I guess, this should point to the commit that introduced 
> libxl__virtio_devtype
> 
> Fixes: 43ba5202e2ee ('libxl: add support for generic virtio device')

In light of Anthony's feedback I'm now thinking that no Fixes: tag
should be here, as is being clarified by the addition to the
description (which I guess can be folded in while committing).

Jan



 


Rackspace

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