Bug 6127 - Fix available asid range for Hygon CSV2 guest
Summary: Fix available asid range for Hygon CSV2 guest
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-08 11:20 UTC by wojiaohanliyang
Modified: 2023-08-08 13:19 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-08-08 11:20:18 UTC
Description of problem:

CPUID 0x8000001f_EDX tells the minimum ASID for CSV enable & CSV2 disabled guest and 0x8000001f_ECX tells the number of encrypted guests supported simultaneously. In order to support running CSV and CSV2 guests simultaneously, KVM assign ASIDs in range [1, CPUID_0x8000001f_EDX) to CSV2 guest, and assign ASIDs in range [CPUID_0x8000001f_EDX, CPUID_0x8000001f_ECX].
Actually, the ASIDs in range [CPUID_0x8000001f_EDX, CPUID_0x8000001f_ECX] are also available for CSV2 guests.


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-08-08 13:19:44 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2021