+968
−0
File changed.
Preview size limit exceeded, changes collapsed.
+84
−0
+37
−5
Loading
Merge Pull Request from: @hanliyang Support live migration for CSV/CSV2 guest, and support rebooting CSV/CSV2 guest issue: https://gitee.com/open_euler/dashboard?issue_id=I98WBH In order to support migration for CSV(2) guest's memory pages, we provide the following patches to make use of CSV RING_BUFFER mode in the CSV firmware, in CSV RING_BUFFER mode, the firmware can process private memory pages in batch which will speedup the migration. crypto: ccp: Introduce init and free helpers to manage CSV RING_BUFFER queues crypto: ccp: Add support for enqueue command pointers in CSV RING_BUFFER mode crypto: ccp: Add support for dequeue status in CSV RING_BUFFER mode crypto: ccp: Add support to switch to CSV RING_BUFFER mode crypto: ccp: Add support for issue commands in CSV RING_BUFFER mode KVM: SVM: Add KVM_CSV_COMMAND_BATCH command for applying CSV RING_BUFFER mode KVM: SVM: Prepare memory pool to allocate buffers for KVM_CSV_COMMAND_BATCH KVM: SVM: Add SEND_UPDATE_DATA command helper to support KVM_CSV_COMMAND_BATCH KVM: SVM: Add RECEIVE_UPDATE_DATA command helper to support KVM_CSV_COMMAND_BATCH In order to support migrate CSV2 guest's CPU states, we need add support to migrate VMSA,GHCB and other important infos. We provide the following patches to support migrate VMSA, GHCB and other important infos. crypto: ccp: Fix definition of struct sev_data_send_update_vmsa KVM: SVM: Add KVM_SEV_SEND_UPDATE_VMSA command KVM: SVM: Add KVM_SEV_RECEIVE_UPDATE_VMSA command KVM: x86: Restore control registers in __set_sregs() to support CSV2 guest live migration KVM: SVM: Export MSR_AMD64_SEV_ES_GHCB to userspace for CSV2 guest In order to support to reboot CSV2 guest and prevent cache coherency issue, we provide the following patches to reset VMSA during rebooting and flush caches if necessary. KVM: x86: Introduce control_{pre,post}_system_reset ioctl interfaces KVM: SVM: Add support for rebooting CSV2 guest KVM: SVM: Force flush caches before reboot CSV guest Link:https://gitee.com/openeuler/kernel/pulls/5260 Reviewed-by:Kevin Zhu <zhukeqian1@huawei.com> Signed-off-by:
Zhang Peng <zhangpeng362@huawei.com>
File changed.
Preview size limit exceeded, changes collapsed.