diff options
author | 2022-04-21 03:14:06 +0000 | |
---|---|---|
committer | 2022-04-21 13:16:59 -0400 | |
commit | d45829b351ee6ec5f54dd55e6aca1f44fe239fe6 (patch) | |
tree | 45ec8b9159c81c734d5263ffbdeac9acd7f4ba8d /tools/perf/scripts/python/check-perf-trace.py | |
parent | KVM: SVM: Simplify and harden helper to flush SEV guest page(s) (diff) | |
download | linux-dev-d45829b351ee6ec5f54dd55e6aca1f44fe239fe6.tar.xz linux-dev-d45829b351ee6ec5f54dd55e6aca1f44fe239fe6.zip |
KVM: SVM: Flush when freeing encrypted pages even on SME_COHERENT CPUs
Use clflush_cache_range() to flush the confidential memory when
SME_COHERENT is supported in AMD CPU. Cache flush is still needed since
SME_COHERENT only support cache invalidation at CPU side. All confidential
cache lines are still incoherent with DMA devices.
Cc: stable@vger.kerel.org
Fixes: add5e2f04541 ("KVM: SVM: Add support for the SEV-ES VMSA")
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Mingwei Zhang <mizhang@google.com>
Message-Id: <20220421031407.2516575-3-mizhang@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions