XenevaOS
Loading...
Searching...
No Matches
cc_platform.h
Go to the documentation of this file.
1/*
2 * DCL cc_platform.h -- confidential-computing queries answer "off".
3 *
4 * drm_cache.c asks cc_platform_has() whether the guest memory is encrypted;
5 * Xeneva runs no SEV/TDX, so the query is always false and the plain memcpy
6 * cache path stays selected.
7 */
8#ifndef _LINUX_CC_PLATFORM_H
9#define _LINUX_CC_PLATFORM_H
10
11/*
12 * <stdbool.h> and not <linux/types.h>, which is this tree's aggregator: this
13 * header is a leaf whose only need is `bool` and `false`, and pulling the
14 * aggregator in to name them drags the whole kernel surface behind a header
15 * that answers one question. mainline includes types.h here because mainline's
16 * types.h is not an aggregator.
17 */
18#include <stdbool.h>
19
27
28static inline bool cc_platform_has(enum cc_attr attr)
29{
30 (void)attr;
31 return false;
32}
33
34#endif /* _LINUX_CC_PLATFORM_H */
cc_attr
Definition cc_platform.h:20
@ CC_ATTR_guest_MEM_ENCRYPT
Definition cc_platform.h:22
@ CC_ATTR_MEM_RW
Definition cc_platform.h:25
@ CC_ATTR_MEM_ENCRYPT
Definition cc_platform.h:21
@ CC_ATTR_MEM_PKEYS
Definition cc_platform.h:24
@ CC_ATTR_MEM_PKEY
Definition cc_platform.h:23