aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <[email protected]>2024-01-24 15:03:17 +0200
committerPaolo Bonzini <[email protected]>2024-01-31 16:21:01 -0500
commita9ef277488cfc1b7da88235dc11c338a14f34835 (patch)
tree629050ac4d48201b4010cc75f3543cb5ab8b2776 /net/unix/sysctl_net_unix.c
parentd52734d00b8e86604a66b4cdfa9e8bb541daca2d (diff)
x86/kvm: Fix SEV check in sev_map_percpu_data()
The function sev_map_percpu_data() checks if it is running on an SEV platform by checking the CC_ATTR_GUEST_MEM_ENCRYPT attribute. However, this attribute is also defined for TDX. To avoid false positives, add a cc_vendor check. Signed-off-by: Kirill A. Shutemov <[email protected]> Fixes: 4d96f9109109 ("x86/sev: Replace occurrences of sev_active() with cc_platform_has()") Suggested-by: Borislav Petkov (AMD) <[email protected]> Acked-by: David Rientjes <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions