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:
YuanXin-Intel
2024-06-11 18:06:54 -04:00
committed by acrnsi-robot
parent 512c98fd79
commit e4b1584577
10 changed files with 36 additions and 19 deletions

View File

@@ -14,6 +14,7 @@
#include <asm/lapic.h>
#include <asm/guest/assign.h>
#include <asm/guest/ept.h>
#include <asm/guest/vm.h>
#include <asm/mmu.h>
#include <hypercall.h>
#include <errno.h>
@@ -69,11 +70,6 @@ bool is_hypercall_from_ring0(void)
return ret;
}
inline static bool is_severity_pass(uint16_t target_vmid)
{
return SEVERITY_SERVICE_VM >= get_vm_severity(target_vmid);
}
/**
* @brief offline vcpu from Service VM
*