Commit 9105092
committed
xenmgr: Re-work rebootVM as shutdown & start
Replace the use of `xl reboot` by `xl shutdown` and `xl start` to
implement the vm reboot DBus command. xl shutdown needs
on_reboot="destroy" in the xl.cfg file. This allows us to remove the
xenmgr <-> xl signal synchronization.
Xl.shutdown & RpcAgent shutdowns both wait for the VM to shutdown,
except the `xl shutdown -c` hypercall version which seems to terminate
right quick. The waitForState call is therefore not really implementing
a timeout out.
The corner case is if the VM has ACPI & no PV drivers, but is configured
not to react to the power button. In that case we can't do much. If
the VM then internally reboots, the xenmgr React code will reboot the VM
and the waitForState will eventually timeout.
writeXlConfig is removed as rebootVm -> restartVm -> _startVm
startVmInternal -> bootVm calls writeXlConfig.
Signed-off-by: Jason Andryuk <jandryuk@gmail.com>1 parent 8a80d93 commit 9105092
3 files changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
1021 | | - | |
| 1021 | + | |
1022 | 1022 | | |
1023 | 1023 | | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
1030 | 1030 | | |
1031 | 1031 | | |
1032 | 1032 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| |||
0 commit comments