File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1205,18 +1205,18 @@ 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 = " /sys/bus/pci/devices/" ^ string_of_address host in
12091209 let devfn =
12101210 match guest_addr with None -> None | Some g -> Some (g.dev, g.fn)
12111211 in
12121212 let irq =
1213- sysfs_pci_dev ^ Pci. string_of_address host ^ " /irq"
1213+ sysfs_pci_dev ^ " /irq"
12141214 |> Unixext. string_of_file
12151215 |> String. trim
12161216 |> int_of_string
12171217 in
12181218 let addresses =
1219- sysfs_pci_dev ^ string_of_address host ^ " /resource"
1219+ sysfs_pci_dev ^ " /resource"
12201220 |> Unixext. string_of_file
12211221 |> String. split_on_char '\n'
12221222 in
You can’t perform that action at this time.
0 commit comments