Bug 9278 - Hygon: Fix smm_test/state_test fail caused by 0xC0010130 emulation
Summary: Hygon: Fix smm_test/state_test fail caused by 0xC0010130 emulation
Status: NEW
Alias: None
Product: ANCK 6.6 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: 2024-06-04 16:21 UTC by wojiaohanliyang
Modified: 2024-06-04 16:32 UTC (History)
3 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 2024-06-04 16:21:15 UTC
Description of problem:

state_test/smm_test selftests are failing on HYGON with:
"KVM_GET_MSRS failed, r: 86 (failed on MSR c0010130)"

In order to support live migration for Hygon CSV2 guest, the commit 54378dcde7a5 ("anolis: KVM: SVM: Export MSR_AMD64_SEV_ES_GHCB to userspace for CSV2 guest") support to emulate KVM_AMD64_SEV_ES_GHCB. But it doesn't handling the return code well if the virtual machine is not a CSV2 guest.

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 2024-06-04 16:32:47 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3316