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

Re: [PATCH v4 04/23] libxl: add/recover 'rdm_policy' to/from PCI backend in xenstore


  • To: Paul Durrant <paul@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
  • Date: Tue, 1 Dec 2020 13:13:36 +0000
  • Accept-language: en-US
  • 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-SenderADCheck; bh=sSZK4GsuDxjXeeDPQJFPwK6N7RDuYzRGJ4q4fzKFPlY=; b=CmGGcKtO2saonGHhbsYfRA1cGVjsWtOHBq3hyzpDHYepcM4x50pTX7nn59Y1c1vYFvOxXNa8DYeU0mI5onVUZL+cvrV7nmNO657m9eBiY4mkhX9T6s1/Ink/ejGNYgUi4+R7ZofMMlxVEPlW6PwtmYgOqujyYtSxiVfnn9oAerMMKFoK7B6miSvnD9oxo82IQ5WYtfgDOY4hszST3hOt62b2qRLz9kVA1+stfi/SQwlcp8BnKZqjYjNePs3td6E4lzRXHvo4jLr+eXoTn+Hn9sooppOr50pQZ0z18iO1JKZrY5xKhoPADr2Nvm1avj7WHkYUuB2gocS8TP/kNPYMpQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X5MHKD+9dD1r6wYhB7+5bhQrFOM+sx1KJC6lQved12nvoez5yGt0pZawB5ggH8VVbN8vz36jiFtMnh/1Fm7D1YqhRdBCRyaISbO32D3bdU+MtlvWJ33H9X/ZHUzgV4E+kmg90FSUcMRccsoBqCeIWjAuSGkPVy44y2wZMPokLAQar4wPdohmt93TguXq4Gy6naqBv3hRqbwVI2sErUqmsCxiL5FCtQIn8NosPSXMcRPVE/HI5QgZqMprufKABXUXOwss7g3v9tuqFq0DhLdI6guvzfDqus8hw2B0xvVb+FSRpvBDfgSxqivN6V4YiGp6wC1q7WQimZytaG5weENKFw==
  • Authentication-results: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=epam.com;
  • Cc: Paul Durrant <pdurrant@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Tue, 01 Dec 2020 13:13:46 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHWx+PHjW13DPVvRE2wVjnAvNUDaw==
  • Thread-topic: [PATCH v4 04/23] libxl: add/recover 'rdm_policy' to/from PCI backend in xenstore

Hi, Paul!

On 11/24/20 10:01 AM, Paul Durrant wrote:
> From: Paul Durrant <pdurrant@xxxxxxxxxx>
>
> Other parameters, such as 'msitranslate' and 'permissive' are dealt with
> but 'rdm_policy' appears to be have been completely missed.
>
> Signed-off-by: Paul Durrant <pdurrant@xxxxxxxxxx>

Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>

Thank you,

Oleksandr

> ---
> Cc: Ian Jackson <iwj@xxxxxxxxxxxxxx>
> Cc: Wei Liu <wl@xxxxxxx>
> ---
>   tools/libs/light/libxl_pci.c | 9 ++++++---
>   1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/tools/libs/light/libxl_pci.c b/tools/libs/light/libxl_pci.c
> index da01c77ba2..50c96cbfa6 100644
> --- a/tools/libs/light/libxl_pci.c
> +++ b/tools/libs/light/libxl_pci.c
> @@ -61,9 +61,9 @@ static void libxl_create_pci_backend_device(libxl__gc *gc,
>           flexarray_append_pair(back, GCSPRINTF("vdevfn-%d", num), 
> GCSPRINTF("%x", pci->vdevfn));
>       flexarray_append(back, GCSPRINTF("opts-%d", num));
>       flexarray_append(back,
> -              GCSPRINTF("msitranslate=%d,power_mgmt=%d,permissive=%d",
> -                             pci->msitranslate, pci->power_mgmt,
> -                             pci->permissive));
> +              
> GCSPRINTF("msitranslate=%d,power_mgmt=%d,permissive=%d,rdm_policy=%s",
> +                        pci->msitranslate, pci->power_mgmt,
> +                        pci->permissive, 
> libxl_rdm_reserve_policy_to_string(pci->rdm_policy)));
>       flexarray_append_pair(back, GCSPRINTF("state-%d", num), GCSPRINTF("%d", 
> XenbusStateInitialising));
>   }
>   
> @@ -2374,6 +2374,9 @@ static int libxl__device_pci_from_xs_be(libxl__gc *gc,
>               } else if (!strcmp(p, "permissive")) {
>                   p = strtok_r(NULL, ",=", &saveptr);
>                   pci->permissive = atoi(p);
> +            } else if (!strcmp(p, "rdm_policy")) {
> +                p = strtok_r(NULL, ",=", &saveptr);
> +                libxl_rdm_reserve_policy_from_string(p, &pci->rdm_policy);
>               }
>           } while ((p = strtok_r(NULL, ",=", &saveptr)) != NULL);
>       }

 


Rackspace

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