We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Given Linux kernel mainline does not support yet. I am wording if it is possible to partition two VMs using MPAM in hypervisor even if virtual machine OS did not take care of MPAMx_EL1 (I suppose the PARTID is 0 then). And in this scenario, CPU and vCPU are 1-to-1 mapping thus there is no VM switch on the physical CPU. The SOC consists of couple ARMv9 cores in one cluster.
Here is the idea:
#1. Enable EL2 MPAM register access in EL3 firmware (ATF for instance);
#2. Hypervisor enables virtual PARTID by MPAMHCR_EL2.EL1_VPMEN and MPAMHCR_EL2.EL0_VPMEN;
#3. On the cores VM0 running, Hypervisor configures MPAMVPM0_EL2 to map virtual partid 0 to 0. On the cores VM1 running, map virtual partid0 to 1.
Will it work? Thanks.
B.R
Jerry