[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: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>
  • Date: Thu, 27 Jul 2023 14:47:59 +0000
  • Accept-language: en-US, ru-RU
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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=cQXDzWhTz+hKtLvoWOOEmrmFD5eb4dULzLkuLmrNXSQ=; b=YhwrNGI1MJrV4g35JMANEYdkexAcf/sx0C5xEpcQUpYJ5HxbhUfUTaP5g9jj5OZuVxx4SLXs8F2ZwykivFwJpDgZOqFIJWDm+XsuSVxbvvsNnQ38DQCFFPH6jwEuq2OglaJPZkopCd39GuaDyTZT1i2z4+CxTdiU0vf4MqQNwB6rY4zckR7TAsKbXklvNkpf7SBEKwsEHcjEmE9yZnVXKLlkh+5UiHZHSRLaSkr/4oJ1G+e6WEYk/rrsHjdcmMjgtqtTjswHQnv8vXF4iroHuu7z1kQh6c9TnpvAVstb/sVXUM5yTlvdNGvn2RD6AsD9UuvH1IOatmlfPGuuwoiEOQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PVEVq4Kuq/lYLZfMli05m/TOZ+N8XkcP3xLFtDXHdnxgUkfH27mlm6ZgnzRSC7iamLBm+YpV1OjS6oyaPSqLGcwG/DeHxoFFOrEyszLULBZ+ch0pAYL/pW5JOnVvg5EqqfIsnu3D1M+g5XiLgQgWJkZ1n4lxmP30n2vx2aHvSoET0DBtAfTsagdiwigiD/bKKzvw+Sj8B3d9yT6STGqzrJkQk4xQWqtRFpndDEZBS1U/ua1ySI7qTRVfOMRYUs8PVxlIuQAnYAZ6gq16+4A1mc2ScpqynOJrREZ86Ux5WSDm/4H73z9Hhawfrhd4zc01SyjZdx5gv3Y6haUELizZGg==
  • 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:48:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHZv8uYlQiykVHkhkC1aQss9HQu9q/MIX0AgAAGYQCAAYcXAIAABB+A
  • Thread-topic: [PATCH] libxl: Add missing libxl__virtio_devtype to device_type_tbl array


On 27.07.23 17:33, Jan Beulich wrote:

Hello Jan

> 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 

I was about to send V2 with the addition + Fixes tag and noticed your reply.

Basically, I agree to not append Fixes tag, there is nothing broken 
within current code base regarding that, an addition clarifies the state 
and describes what/how may be broken.

I should have mentioned that from the very beginning.


(which I guess can be folded in while committing).

It would be really good.




> 
> Jan

 


Rackspace

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