debuggers.hg

changeset 22763:76ad4bb4c583

libxl: write PCI frontend xenstore nodes to the frontend directory.

They accidentally got moved to the backend directory by 22680:03718b569d97.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Ian Campbell <ian.campbell@citrix.com>
date Tue Jan 11 18:15:18 2011 +0000 (2011-01-11)
parents 3c78729b6f06
children ee3a97548604
files tools/libxl/libxl_pci.c
line diff
     1.1 --- a/tools/libxl/libxl_pci.c	Tue Jan 11 18:13:44 2011 +0000
     1.2 +++ b/tools/libxl/libxl_pci.c	Tue Jan 11 18:15:18 2011 +0000
     1.3 @@ -261,9 +261,11 @@ static int libxl_create_pci_backend(libx
     1.4          flexarray_append(back, libxl__sprintf(gc, "msitranslate=%d,power_mgmt=%d", pcidev->msitranslate, pcidev->power_mgmt));
     1.5          flexarray_vappend(back, libxl__sprintf(gc, "state-%d", i), libxl__sprintf(gc, "%d", 1), NULL);
     1.6      }
     1.7 -    flexarray_vappend(back, "num_devs", libxl__sprintf(gc, "%d", num),
     1.8 -                    "backend-id", libxl__sprintf(gc, "%d", 0),
     1.9 -                    "state", libxl__sprintf(gc, "%d", 1), NULL);
    1.10 +    flexarray_vappend(back, "num_devs", libxl__sprintf(gc, "%d", num));
    1.11 +
    1.12 +    flexarray_vappend(front,
    1.13 +                      "backend-id", libxl__sprintf(gc, "%d", 0),
    1.14 +                      "state", libxl__sprintf(gc, "%d", 1), NULL);
    1.15  
    1.16      libxl__device_generic_add(ctx, &device,
    1.17                               libxl__xs_kvs_of_flexarray(gc, back, back->count),