Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KVM: SVM: CSV: Explicitly enable LBR Virtualization after succeed to …
…RECEIVE_ENCRYPT_CONTEXT hygon inclusion category: feature CVE: NA --------------------------- Before the commit b7e4be0a224f ("KVM: SEV-ES: Delegate LBR virtualization to the processor"), the LBR Virtualization is enabled during init VMCB: init_vmcb() -> sev_init_vmcb() -> sev_es_init_vmcb() While the commit b7e4be0a224f ("KVM: SEV-ES: Delegate LBR virtualization to the processor") enable LBR Virtualization after succeed to LAUNCH_UPDATE_VMSA for each vCPUs. The process to enable LBR Virtualization will not be executed in common code path. To ensure the CSV3 guest to work properly after migrate to target machine, we should explicitly to enable LBR Virtualization after succeed to RECEIVE_ENCRYPT_CONTEXT for each vCPUs. Fixes: b7e4be0a224f ("KVM: SEV-ES: Delegate LBR virtualization to the processor") Signed-off-by: hanliyang <[email protected]>
- Loading branch information