opnsense-src/sys/compat/linuxkpi/common/include/linux/cc_platform.h
Emmanuel Vadot 03704b89e7 linuxkpi: cc_platform: Add CC_ATTR_GUEST_MEM_ENCRYPT
Add this attribute which is a no-op for us but in linux represent that
the guest memory encryption is active.
drm ttm started to check this flag in > 6.1.92

Sponsored by:	Beckhoff Automation GmbH & Co. KG
2025-02-11 09:27:48 +01:00

21 lines
352 B
C

/* Public domain. */
#ifndef _LINUXKPI_LINUX_CC_PLATFORM_H_
#define _LINUXKPI_LINUX_CC_PLATFORM_H_
#include <linux/types.h>
#include <linux/stddef.h>
enum cc_attr {
CC_ATTR_MEM_ENCRYPT,
CC_ATTR_GUEST_MEM_ENCRYPT,
};
static inline bool
cc_platform_has(enum cc_attr attr __unused)
{
return (false);
}
#endif /* _LINUXKPI_LINUX_CC_PLATFORM_H_ */