Description of problem: Both hygon2 and hygon3 CPUs are limited to support the number of CSV guests. This is a bit unfriendly because vendors might want to deploy many CSV kata containers or many CSV VMs on a bare-metal machine. We introduce asid reuse capability so that the vendor could deploy a group of CSV kata containers or CSV VMs with the same ASID, this will support running a large number of CSV kata containers or CSV VMs on a bare-metal machine. The asid reuse capability will introduce a little performance degradation because hypervisor need more TLB flush for guests with in the same group(i.e. use the same ASID). We don't need to apply asid reuse capability on hygon4 CPU because it support up to 500 ASIDs. [Reference: https://bugzilla.openanolis.cn/show_bug.cgi?id=7791] Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2976