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

Re: [PATCH v4 06/23] libxl: remove extraneous arguments to do_pci_remove() in libxl_pci.c


  • To: Paul Durrant <paul@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
  • Date: Tue, 1 Dec 2020 13:41:07 +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=x93Uu/FAUTn3WBeXtST/PfNW0jQRGU/1J8BCQm49iiA=; b=Pm96EyUkd3m2FYfQxHY15GqKYSwHPzZ+tSmA/SwP7Cgt882Qj+jvLGrRAfohM9GODMNEAZn0PoppehpSsadLg/E0UoOObOScIWO5CUbfhy3tucAailLpIM4p3OcZC5DlTwDI17R2dtIA7mpJt18hKK0d0VKw7FQbv1BdRDtp6YHCPOl7AMP2HeYhDZ+DXKILViKlXIqdEvIsPCMHwfJyZJLSCyJ8JwNj2A3iKrLhR76ztlH7JLmad3+TG4u6eSfWekBACinNUJfdQuTkxwc7z3rrQzPr0GTeBkAl9NyJtF+4j9F5/qbnJ5iA3PRRvH0SB1seCnft4I3w17z1OvYMPQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EZw6+RZPlBF3OrNaiyadUKKz6jAUbXJbPkFvILROusE9+hi7vDE0us5WU6XlYKkhzhu4f5amlqyVukjH3lmws2/lnj2hvrAH2W0nwcABbq4YCcw9P/5kiZI3DskJFsz6caNZzRAI3I6a+E08sAL+UKTSzj+IIE3aBqQf5iubNDvHPhtauEQTWGhsR7GXlvDyWC0EwLaykZTK00LCiHSPFBFGUOGvkdIFYPF29zwjELTR9mKCe97lbrSiSjU9gY3LiYpHzpGKFP/S82lPgcXFppMOFgBfG0a0vGw0nxJYwVA3Celzxh/HT9vIQ9G+dr9JOpaMymRQboV0mjazOVcVBQ==
  • 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:41:20 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHWx+eeThISOtcroUS+RdwYWSyffg==
  • Thread-topic: [PATCH v4 06/23] libxl: remove extraneous arguments to do_pci_remove() in libxl_pci.c

Hi, Paul!

On 11/24/20 10:01 AM, Paul Durrant wrote:
> From: Paul Durrant <pdurrant@xxxxxxxxxx>
>
> Both 'domid' and 'pci' are available in 'pci_remove_state' so there is no
> need to also pass them as separate arguments.
>
> 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, 4 insertions(+), 5 deletions(-)
>
> diff --git a/tools/libs/light/libxl_pci.c b/tools/libs/light/libxl_pci.c
> index de617e95eb..41e4b2b571 100644
> --- a/tools/libs/light/libxl_pci.c
> +++ b/tools/libs/light/libxl_pci.c
> @@ -1871,14 +1871,14 @@ static void pci_remove_stubdom_done(libxl__egc *egc,
>   static void pci_remove_done(libxl__egc *egc,
>       pci_remove_state *prs, int rc);
>   
> -static void do_pci_remove(libxl__egc *egc, uint32_t domid,
> -                          libxl_device_pci *pci, int force,
> -                          pci_remove_state *prs)
> +static void do_pci_remove(libxl__egc *egc, pci_remove_state *prs)
>   {
>       STATE_AO_GC(prs->aodev->ao);
>       libxl_ctx *ctx = libxl__gc_owner(gc);
>       libxl_device_pci *assigned;
> +    uint32_t domid = prs->domid;
>       libxl_domain_type type = libxl__domain_type(gc, domid);
> +    libxl_device_pci *pci = prs->pci;
>       int rc, num;
>       uint32_t domainid = domid;
>   
> @@ -2275,7 +2275,6 @@ static void device_pci_remove_common_next(libxl__egc 
> *egc,
>       EGC_GC;
>   
>       /* Convenience aliases */
> -    libxl_domid domid = prs->domid;
>       libxl_device_pci *const pci = prs->pci;
>       libxl__ao_device *const aodev = prs->aodev;
>       const unsigned int pfunc_mask = prs->pfunc_mask;
> @@ -2293,7 +2292,7 @@ static void device_pci_remove_common_next(libxl__egc 
> *egc,
>               } else {
>                   pci->vdevfn = orig_vdev;
>               }
> -            do_pci_remove(egc, domid, pci, prs->force, prs);
> +            do_pci_remove(egc, prs);
>               return;
>           }
>       }

 


Rackspace

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