Bug 6135 - Introduce ioctl interfaces to fix reboot failure of memory encrypted guest and support rebooting CSV2 guest
Summary: Introduce ioctl interfaces to fix reboot failure of memory encrypted guest an...
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 14:59 UTC by wojiaohanliyang
Modified: 2023-08-24 19:50 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 14:59:41 UTC
Description of problem:

Currently, when reboot a memory encrypted guest, it'is possible that the virtual machine may crash due to cache consistency issues. But KVM doesn't know whether the guest is rebooting, we introduce ioctl interfaces to support notifying KVM that the guest is rebooting so that flush the cache at appropriate time. KVM use guest_state_protected to indicate the VMSA is encrypted and should not update the related vCPU states anymore. In order to support rebooting a CSV2 guest, we use the ioctl interfaces dictated above to notify KVM that the vCPU states can be initailized during rebooting.

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-24 19:50:48 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2071