]> Gentwo Git Trees - linux/.git/commit
KVM: SEV: Set RESET GHCB MSR value during sev_es_init_vmcb()
authorSean Christopherson <seanjc@google.com>
Tue, 19 Aug 2025 23:48:31 +0000 (16:48 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 21 Aug 2025 15:45:04 +0000 (08:45 -0700)
commitbaf6ed177290db5873f318626970fa7fd4060579
tree02271776e3a5084d5253572cef61fb84e97648a2
parent3d4e882e3439593b406fa226bcdd48c92d2222a6
KVM: SEV: Set RESET GHCB MSR value during sev_es_init_vmcb()

Set the RESET value for the GHCB "MSR" during sev_es_init_vmcb() instead
of sev_es_vcpu_reset() to allow for dropping sev_es_vcpu_reset() entirely.

Note, the call to sev_init_vmcb() from sev_migrate_from() also kinda sorta
emulates a RESET, but sev_migrate_from() immediately overwrites ghcb_gpa
with the source's current value, so whether or not stuffing the GHCB
version is correct/desirable is moot.

No functional change intended.

Reviewed-by: Nikunj A Dadhania <nikunj@amd.com>
Link: https://lore.kernel.org/r/20250819234833.3080255-7-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/sev.c