OSDN Git Service

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)
commitbaa1e5ca172ce7bf9554070139482dd7ea919528
tree82cbc543f8d4e4aafedec223aba8dfb949e27065
parentfa13843d1565d4c5b3aeb9be3343b313416bef46
KVM: SEV-ES: Set guest_state_protected after VMSA update

The refactoring in commit bb18a6777465 ("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: bb18a6777465 ("KVM: SEV: Acquire vcpu mutex when updating VMSA")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c