]> www.infradead.org Git - nvme.git/commit
KVM: SNP: Fix LBR Virtualization for SNP guest
authorRavi Bangoria <ravi.bangoria@amd.com>
Wed, 5 Jun 2024 11:48:10 +0000 (11:48 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Jun 2024 11:50:50 +0000 (07:50 -0400)
commitf99b052256f16224687e5947772f0942bff73fc1
tree32ad1669fb76e6d89e26152080bc9ee402bf1589
parentab978c62e72d6b2d41842210e0cc435d9ed0dadb
KVM: SNP: Fix LBR Virtualization for SNP guest

SEV-ES and thus SNP guest mandates LBR Virtualization to be _always_ ON.
Although commit b7e4be0a224f ("KVM: SEV-ES: Delegate LBR virtualization
to the processor") did the correct change for SEV-ES guests, it missed
the SNP. Fix it.

Reported-by: Srikanth Aithal <sraithal@amd.com>
Fixes: b7e4be0a224f ("KVM: SEV-ES: Delegate LBR virtualization to the processor")
Signed-off-by: Ravi Bangoria <ravi.bangoria@amd.com>
Message-ID: <20240605114810.1304-1-ravi.bangoria@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c