Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ocaml/xapi/xapi_vm_snapshot.ml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,15 @@ let compare_snapid_chunks s1 s2 =
let checkpoint ~__context ~vm ~new_name =
Xapi_vmss.show_task_in_xencenter ~__context ~vm ;
let power_state = Db.VM.get_power_state ~__context ~self:vm in
let vtpms = Db.VM.get_VTPMs ~__context ~self:vm in
let snapshot_info = ref [] in
( match (power_state, vtpms) with
| `Running, _ :: _ ->
let message = "VM.checkpoint of running VM with VTPM" in
Helpers.maybe_raise_vtpm_unimplemented __FUNCTION__ message
| _ ->
()
) ;
(* live-suspend the VM if the VM is running *)
( if power_state = `Running then
try
Expand Down
2 changes: 1 addition & 1 deletion quality-gate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ structural-equality () {
}

vtpm-unimplemented () {
N=6
N=7
VTPM=$(git grep -r --count 'maybe_raise_vtpm_unimplemented' -- **/*.ml | cut -d ':' -f 2 | paste -sd+ - | bc)
if [ "$VTPM" -eq "$N" ]; then
echo "OK found $VTPM usages of vtpm unimplemented errors"
Expand Down