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

Re: [PATCH v2 1/1] tools/libs/light: fix BAR memory address truncation


  • To: Anthony PERARD <anthony@xxxxxxxxxxxxxx>
  • From: "Chen, Jiqian" <Jiqian.Chen@xxxxxxx>
  • Date: Thu, 23 Oct 2025 02:25:29 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=KwI8Jl+ChhvKoKQaMS6NJrodNHxjYspB7aG2ObOZ+OQ=; b=NYhxY7dGq/RLvdkAPjKh9O2aJmxK9mhJ0AnPmkguNMhXI5KVuAEsj/NbDOebHwAo9HfQR0ivhDMK3npoFi7UsGHkuSt0zonGFZ3tfqla1pBc12uQhSBcBosfX36JU5NiKv9lT6B06osk72T+lns79mdZ/lt+Uknik8bzuLJpcyshl7YL9WsEo9HXSwmbUvhrCiKMTrVGgd0spxc+nUXwAFVo45WKJ46qS6OVhVgkOm+cODpuKINl9LoioLK+Y0pzIMKoXwYYf0gbGByv0Nl9fQIClSdxVFwpjQ29fcowLlSELl5JFJpQJ9GB+5cO3zlir1UroLfrl5w4UwbFYPOpZA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Xb55xaJy05uRO5uGPdBbDgHxsjj00Id94I/ByHaqS0vnzxF/CaUW51O2gxSGmIsYnkH/wn5Ryc4V3tmF0lwMPQiu4vjo8y5QjChsKIpAJdh3kyQeVf+CWhg8d/Jt23oLDQidR0SQ0J0mXyLMXN22Xqd27kFNDOYtsXauhWNIo6/WFVoW+HDVdUNBQfZozuomAu78WvWovsc1/I2X1Tg8pk1Rvya73yDz9SLDBpnp1pdQp17Bh8uy8bWJ68YgLeezND/+gsVUUmAzH/iRHLtrGzhjnfm7WDQeVI+QTxlrZgfugzpIYrKxDgYkHsCKMbZODJZOzpt81/X4HfXb+886qg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, "Chen, Jiqian" <Jiqian.Chen@xxxxxxx>
  • Delivery-date: Thu, 23 Oct 2025 02:25:55 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcPBVojxVVZQBbcUyvi85wGyhb8bTOXUEAgAE5GYA=
  • Thread-topic: [PATCH v2 1/1] tools/libs/light: fix BAR memory address truncation

On 2025/10/22 23:44, Anthony PERARD wrote:
> On Mon, Oct 13, 2025 at 03:45:33PM +0800, Jiqian Chen wrote:
>> diff --git a/tools/libs/light/libxl_pci.c b/tools/libs/light/libxl_pci.c
>> index 2ea2caeb6624..ae416a162360 100644
>> --- a/tools/libs/light/libxl_pci.c
>> +++ b/tools/libs/light/libxl_pci.c
>> @@ -2040,7 +2041,7 @@ static void pci_remove_detached(libxl__egc *egc,
>>                                                   size, 0);
>>                  if (rc < 0)
>>                      LOGED(ERROR, domid,
>> -                          "xc_domain_ioport_permission error 0x%x/0x%x",
>> +                          "xc_domain_ioport_permission error 
>> %#"PRIx64"/%#"PRIx64,
>>                            start,
>>                            size);
>>              } else {
>> @@ -2050,7 +2051,7 @@ static void pci_remove_detached(libxl__egc *egc,
>>                                                  0);
>>                  if (rc < 0)
>>                      LOGED(ERROR, domid,
>> -                          "xc_domain_iomem_permission error 0x%x/0x%x",
>> +                          "xc_domain_ioport_permission error 
>> %#"PRIx64"/%#"PRIx64,
> 
> Why does this message refer to "xc_domain_ioport_permission" now instead
> of "xc_domain_iomem_permission" ? (I'm guessing overzealous copy/past
> ;-) from the previous error message)
Sorry, will change.

> 
> Cheers,
> 

-- 
Best regards,
Jiqian Chen.


 


Rackspace

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