hv: tee: Support the concept of companion VM
Add a configuration to support companion VM. Tracked-On: #6571 Signed-off-by: Jie Deng <jie.deng@intel.com> Reviewed-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
parent
71ae0fdabf
commit
c4d59c8f91
|
@ -156,6 +156,7 @@ struct acrn_vm_config {
|
|||
* We could add more guest flags in future;
|
||||
*/
|
||||
uint32_t vm_prio; /* The priority for VM vCPU scheduling */
|
||||
uint16_t companion_vm_id; /* The companion VM id for this VM */
|
||||
struct acrn_vm_mem_config memory; /* memory configuration of VM */
|
||||
struct epc_section epc; /* EPC memory configuration of VM */
|
||||
uint16_t pci_dev_num; /* indicate how many PCI devices in VM */
|
||||
|
|
|
@ -396,6 +396,11 @@ Refer SDM 17.19.2 for details, and use with caution.</xs:documentation>
|
|||
<xs:documentation>Specify the VM vCPU priority for scheduling.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="companion_vmid" type="xs:integer" default="65535">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Specify the companion VM id of this VM.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="os_config" type="OSConfigurations" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>General information for host kernel, boot
|
||||
|
|
|
@ -88,6 +88,7 @@
|
|||
<xsl:value-of select="$newline" />
|
||||
</xsl:if>
|
||||
<xsl:value-of select="acrn:initializer('vm_prio', priority)" />
|
||||
<xsl:value-of select="acrn:initializer('companion_vm_id', concat(companion_vmid, 'U'))" />
|
||||
<xsl:apply-templates select="guest_flags" />
|
||||
|
||||
<xsl:if test="acrn:is-rdt-enabled()">
|
||||
|
|
Loading…
Reference in New Issue