mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-02 02:24:33 +00:00
Change Service VM to supervisor role
1. Enable Service VM to power off or restart the whole platform even when RTVM is running. 2. Allow Service VM stop the RTVM using acrnctl tool with option "stop -f". 3. Add 'Service VM supervisor role enabled' option in ACRN configurator Tracked-On: #8618 Signed-off-by: YuanXin-Intel <xin.yuan@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Reviewed-by: Jian Jun Chen <jian.jun.chen@intel.com>
This commit is contained in:
committed by
acrnsi-robot
parent
512c98fd79
commit
e4b1584577
@@ -1048,9 +1048,8 @@ void pause_vm(struct acrn_vm *vm)
|
||||
uint16_t i;
|
||||
struct acrn_vcpu *vcpu = NULL;
|
||||
|
||||
/* For RTVM, we can only pause its vCPUs when it is powering off by itself */
|
||||
if (((!is_rt_vm(vm)) && (vm->state == VM_RUNNING)) ||
|
||||
((is_rt_vm(vm)) && (vm->state == VM_READY_TO_POWEROFF)) ||
|
||||
if (((is_severity_pass(vm->vm_id)) && (vm->state == VM_RUNNING)) ||
|
||||
(vm->state == VM_READY_TO_POWEROFF) ||
|
||||
(vm->state == VM_CREATED)) {
|
||||
foreach_vcpu(i, vm, vcpu) {
|
||||
zombie_vcpu(vcpu, VCPU_ZOMBIE);
|
||||
|
||||
Reference in New Issue
Block a user