Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KVM: SVM: CSV: Explicitly enable LBR Virtualization after succeed to … #362

Merged

Commits on Aug 13, 2024

  1. KVM: SVM: CSV: Explicitly enable LBR Virtualization after succeed to …

    …RECEIVE_UPDATE_VMSA
    
    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
    CSV2 guest to work properly after migrated to target machine, we should
    explicitly to enable LBR Virtualization after succeed to
    RECEIVE_UPDATE_VMSA for each vCPUs.
    
    Fixes: b7e4be0a224f ("KVM: SEV-ES: Delegate LBR virtualization to the processor")
    Signed-off-by: hanliyang <[email protected]>
    hanliyang authored and Avenger-285714 committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    3adb4d0 View commit details
    Browse the repository at this point in the history