Bug 5950 - Add patch series that support for CSV2 guest live migration
Summary: Add patch series that support for CSV2 guest live migration
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-07-20 15:08 UTC by wojiaohanliyang
Modified: 2023-07-20 15:08 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-07-20 15:08:58 UTC
Description of problem:

The register states of CSV2 guest are protected by encrypted VMSA. When live migrate a CSV2 guest, we need invoke SEND_UPDATE_VMSA to prepare for transfer VMSA at the source side, and invoke RECEIVE_UPDATE_VMSA to restore VMSA at the receipt side.

GHCB registers are important component to support communication between KVM and CSV2 guest. The GHCB register supports two modes:
    1. msr negotiation, or
    2. shared memory page.
When migrate a CSV2 guest, the GHCB register states also should be migrated.

The VCPU mode is crucial for the operation of a VM, KVM will track VCPU mode in auxiliary register values (see struct kvm_vcpu_arch) and determine the guest context. In order to support CSV2 guest run under correct VCPU mode, the 
 auxiliary register values should be migrated when migrating CSV2 guest.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info: