Bug 7791 - Support asid reuse on hygon2 and hygon3 CPUs
Summary: Support asid reuse on hygon2 and hygon3 CPUs
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: x86_64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-25 10:47 UTC by wojiaohanliyang
Modified: 2023-12-25 14:49 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wojiaohanliyang hygon_group 2023-12-25 10:47:57 UTC
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.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 小龙 admin 2023-12-25 14:49:39 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2541