summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2021-03-30 20:19:35 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2021-04-17 08:30:57 -0400
commit9fa1521daafb58d878d03d75f6863a11312fae22 (patch)
tree31e977ffdfd344f680a9dfd6c2e8f8a4e0d1e753 /tools/perf/scripts/python/exported-sql-viewer.py
parentc36b16d29f3af5f32fc1b2a3401bf48f71cabee1 (diff)
downloadlinux-9fa1521daafb58d878d03d75f6863a11312fae22.tar.gz
linux-9fa1521daafb58d878d03d75f6863a11312fae22.zip
KVM: SVM: Do not set sev->es_active until KVM_SEV_ES_INIT completes
Set sev->es_active only after the guts of KVM_SEV_ES_INIT succeeds. If the command fails, e.g. because SEV is already active or there are no available ASIDs, then es_active will be left set even though the VM is not fully SEV-ES capable. Refactor the code so that "es_active" is passed on the stack instead of being prematurely shoved into sev_info, both to avoid having to unwind sev_info and so that it's more obvious what actually consumes es_active in sev_guest_init() and its helpers. Fixes: ad73109ae7ec ("KVM: SVM: Provide support to launch and run an SEV-ES guest") Cc: stable@vger.kernel.org Cc: Brijesh Singh <brijesh.singh@amd.com> Cc: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20210331031936.2495277-3-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions