File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1205,18 +1205,20 @@ module PCI = struct
12051205
12061206 let _pci_add ~xc ~xs ~hvm domid {host; guest = _ , guest_addr ; qmp_add} =
12071207 let open Xenops_interface.Pci in
1208- let sysfs_pci_dev = " /sys/bus/pci/devices/" in
1208+ let sysfs_pci_dev =
1209+ Filename. concat " /sys/bus/pci/devices" (string_of_address host)
1210+ in
12091211 let devfn =
12101212 match guest_addr with None -> None | Some g -> Some (g.dev, g.fn)
12111213 in
12121214 let irq =
1213- sysfs_pci_dev ^ Pci. string_of_address host ^ " / irq"
1215+ Filename. concat sysfs_pci_dev " irq"
12141216 |> Unixext. string_of_file
12151217 |> String. trim
12161218 |> int_of_string
12171219 in
12181220 let addresses =
1219- sysfs_pci_dev ^ string_of_address host ^ " / resource"
1221+ Filename. concat sysfs_pci_dev " resource"
12201222 |> Unixext. string_of_file
12211223 |> String. split_on_char '\n'
12221224 in
You can’t perform that action at this time.
0 commit comments