aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2021-11-09 21:50:58 +0000
committerPaolo Bonzini <[email protected]>2021-11-18 02:10:27 -0500
commita41fb26e61697382b2428ae63e039e97b0e6d164 (patch)
tree4e58e579acef8e0a7884feee36a78b9b33a4e85f /net/unix/af_unix.c
parent79b11142763791bdead8b6460052cbdde8e08e2f (diff)
KVM: SEV: Set sev_info.active after initial checks in sev_guest_init()
Set sev_info.active during SEV/SEV-ES activation before calling any code that can potentially consume sev_info.es_active, e.g. set "active" and "es_active" as a pair immediately after the initial sanity checks. KVM generally expects that es_active can be true if and only if active is true, e.g. sev_asid_new() deliberately avoids sev_es_guest() so that it doesn't get a false negative. This will allow WARNing in sev_es_guest() if the VM is tagged as SEV-ES but not SEV. Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions