]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SEV-ES: Set guest_state_protected after VMSA update
authorPeter Gonda <pgonda@google.com>
Fri, 15 Oct 2021 17:32:22 +0000 (13:32 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 Oct 2021 18:07:17 +0000 (14:07 -0400)
commit96fe750c8d54e9e95efd165fa76b44e6b404365a
tree82cbc543f8d4e4aafedec223aba8dfb949e27065
parent2583d73cc35ac951ae52ca2d5f2159dc8ac0c1ec
KVM: SEV-ES: Set guest_state_protected after VMSA update

The refactoring in commit 44a1d8d5bff9 ("KVM: SEV: Acquire
vcpu mutex when updating VMSA") left behind the assignment to
svm->vcpu.arch.guest_state_protected; add it back.

Signed-off-by: Peter Gonda <pgonda@google.com>
[Delta between v2 and v3 of Peter's patch, which had already been
 committed; the commit message is my own. - Paolo]
Fixes: 44a1d8d5bff9 ("KVM: SEV: Acquire vcpu mutex when updating VMSA")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c