Skip to content

Commit 83991b5

Browse files
authored
Merge pull request #263 from psafont/CA-272180
CA: 272180: Make xenopsd report the request that makes a shutdown to fail
2 parents edcc4f6 + 702345f commit 83991b5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

xen/xenops_interface.ml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ module Errors = struct
101101
| Invalid_vcpus of int
102102
| Bad_power_state of (power_state * power_state)
103103
| Failed_to_acknowledge_shutdown_request
104+
| Failed_to_acknowledge_suspend_request
104105
| Failed_to_shutdown of (string * float)
106+
| Failed_to_suspend of (string * float)
105107
| Device_is_connected
106108
| Device_not_connected
107109
| Device_detach_rejected of (string * string * string)
@@ -213,7 +215,7 @@ module Vgpu = struct
213215

214216
type id = string * string [@@deriving rpcty]
215217

216-
let pci_default = Pci.{domain= 0; bus= 0; dev= 0; fn= 0}
218+
let pci_default = Pci.{domain= 0; bus= 0; dev= 0; fn= 0}
217219
type t =
218220
{ id: id [@default "", ""]
219221
; position: int [@default 0]
@@ -478,7 +480,7 @@ module XenopsAPI (R : RPC) = struct
478480
let get_diagnostics =
479481
let result_p = Param.mk Rpc.Types.string in
480482
declare "get_diagnostics"
481-
["Get diagnostics information from the backend"]
483+
["Get diagnostics information from the backend"]
482484
(debug_info_p @-> unit_p @-> returning result_p err)
483485

484486
module TASK = struct

xen/xenops_types.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module Nvram_uefi_variables = struct
4141
type onboot =
4242
| Persist
4343
| Reset
44-
[@@deriving rpcty, sexp]
44+
[@@deriving rpcty, sexp]
4545

4646
type t = {
4747
on_boot: onboot [@default Persist];
@@ -87,7 +87,7 @@ module Vm = struct
8787
vnc_ip: string option [@default None];
8888
pci_emulations: string list [@default []];
8989
pci_passthrough: bool [@default false];
90-
boot_order: string [@default ""];
90+
boot_order: string [@default ""];
9191
qemu_disk_cmdline: bool [@default false];
9292
qemu_stubdom: bool [@default false];
9393
firmware: firmware_type [@default default_firmware];

0 commit comments

Comments
 (0)