Skip to content

Commit b5ae2cf

Browse files
committed
REQ-627 CA-333495 add PCI.dequarantine
Quarantine domains require Xapi to dequarantine a PCI device in order to set up its drivers. This commit adds an interface for such a call. Signed-off-by: Christian Lindig <[email protected]>
1 parent 06dcf51 commit b5ae2cf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

xen/xenops_interface.ml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,8 +754,8 @@ module XenopsAPI (R : RPC) = struct
754754
open TypeCombinators
755755

756756
let pci_t_p = Param.mk ~name:"pci" Pci.t
757-
758757
let pci_id_p = Param.mk ~name:"id" Pci.id
758+
let pci_addr_p = Param.mk ~name:"pci_addr" Pci.address
759759

760760
let add =
761761
declare "PCI.add" [] (debug_info_p @-> pci_t_p @-> returning pci_id_p err)
@@ -774,6 +774,10 @@ module XenopsAPI (R : RPC) = struct
774774
in
775775
declare "PCI.list" []
776776
(debug_info_p @-> VM.vm_id_p @-> returning stat_list_p err)
777+
778+
let dequarantine =
779+
declare "PCI.dequarantine" ["De-quarantine PCI device into dom0"]
780+
(debug_info_p @-> pci_addr_p @-> returning unit_p err)
777781
end
778782

779783
module VBD = struct

0 commit comments

Comments
 (0)