/** * uvio_uvdev_info - Information of supported functions * @supp_uvio_cmds - supported IOCTLs by this device * @supp_uv_cmds - supported UVCs corresponding to the IOCTL * * UVIO request to get information about supported request types by this * uvdevice and the Ultravisor. Everything is output. Bits are in LSB0 * ordering. If the bit is set in both, @supp_uvio_cmds and @supp_uv_cmds, the * uvdevice and the Ultravisor support that call. * * Note that bit 0 (UVIO_IOCTL_UVDEV_INFO_NR) is always zero for `supp_uv_cmds` * as there is no corresponding UV-call.
*/ struct uvio_uvdev_info { /* * If bit `n` is set, this device supports the IOCTL with nr `n`.
*/
__u64 supp_uvio_cmds; /* * If bit `n` is set, the Ultravisor(UV) supports the UV-call * corresponding to the IOCTL with nr `n` in the calling context (host * or guest). The value is only valid if the corresponding bit in * @supp_uvio_cmds is set as well.
*/
__u64 supp_uv_cmds;
};
/* * The following max values define an upper length for the IOCTL in/out buffers. * However, they do not represent the maximum the Ultravisor allows which is * often way smaller. By allowing larger buffer sizes we hopefully do not need * to update the code with every machine update. It is therefore possible for * userspace to request more memory than actually used by kernel/UV.
*/ #define UVIO_ATT_ARCB_MAX_LEN 0x100000 #define UVIO_ATT_MEASUREMENT_MAX_LEN 0x8000 #define UVIO_ATT_ADDITIONAL_MAX_LEN 0x8000 #define UVIO_ADD_SECRET_MAX_LEN 0x100000 #define UVIO_LIST_SECRETS_LEN 0x1000 #define UVIO_RETR_SECRET_MAX_LEN 0x2000
enum UVIO_IOCTL_NR {
UVIO_IOCTL_UVDEV_INFO_NR = 0x00,
UVIO_IOCTL_ATT_NR,
UVIO_IOCTL_ADD_SECRET_NR,
UVIO_IOCTL_LIST_SECRETS_NR,
UVIO_IOCTL_LOCK_SECRETS_NR,
UVIO_IOCTL_RETR_SECRET_NR, /* must be the last entry */
UVIO_IOCTL_NUM_IOCTLS
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.