mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
linux-headers: update to current kvm/next
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
||||
/* bits.h: Macros for dealing with bitmasks. */
|
||||
|
||||
#ifndef _LINUX_BITS_H
|
||||
#define _LINUX_BITS_H
|
||||
|
||||
#define __GENMASK(h, l) \
|
||||
(((~_UL(0)) - (_UL(1) << (l)) + 1) & \
|
||||
(~_UL(0) >> (__BITS_PER_LONG - 1 - (h))))
|
||||
|
||||
#define __GENMASK_ULL(h, l) \
|
||||
(((~_ULL(0)) - (_ULL(1) << (l)) + 1) & \
|
||||
(~_ULL(0) >> (__BITS_PER_LONG_LONG - 1 - (h))))
|
||||
|
||||
#endif /* _LINUX_BITS_H */
|
||||
+5
-684
File diff suppressed because it is too large
Load Diff
@@ -28,6 +28,9 @@ enum {
|
||||
SEV_PEK_CERT_IMPORT,
|
||||
SEV_GET_ID, /* This command is deprecated, use SEV_GET_ID2 */
|
||||
SEV_GET_ID2,
|
||||
SNP_PLATFORM_STATUS,
|
||||
SNP_COMMIT,
|
||||
SNP_SET_CONFIG,
|
||||
|
||||
SEV_MAX,
|
||||
};
|
||||
@@ -69,6 +72,12 @@ typedef enum {
|
||||
SEV_RET_RESOURCE_LIMIT,
|
||||
SEV_RET_SECURE_DATA_INVALID,
|
||||
SEV_RET_INVALID_KEY = 0x27,
|
||||
SEV_RET_INVALID_PAGE_SIZE,
|
||||
SEV_RET_INVALID_PAGE_STATE,
|
||||
SEV_RET_INVALID_MDATA_ENTRY,
|
||||
SEV_RET_INVALID_PAGE_OWNER,
|
||||
SEV_RET_INVALID_PAGE_AEAD_OFLOW,
|
||||
SEV_RET_RMP_INIT_REQUIRED,
|
||||
SEV_RET_MAX,
|
||||
} sev_ret_code;
|
||||
|
||||
@@ -155,6 +164,56 @@ struct sev_user_data_get_id2 {
|
||||
__u32 length; /* In/Out */
|
||||
} __attribute__((packed));
|
||||
|
||||
/**
|
||||
* struct sev_user_data_snp_status - SNP status
|
||||
*
|
||||
* @api_major: API major version
|
||||
* @api_minor: API minor version
|
||||
* @state: current platform state
|
||||
* @is_rmp_initialized: whether RMP is initialized or not
|
||||
* @rsvd: reserved
|
||||
* @build_id: firmware build id for the API version
|
||||
* @mask_chip_id: whether chip id is present in attestation reports or not
|
||||
* @mask_chip_key: whether attestation reports are signed or not
|
||||
* @vlek_en: VLEK (Version Loaded Endorsement Key) hashstick is loaded
|
||||
* @rsvd1: reserved
|
||||
* @guest_count: the number of guest currently managed by the firmware
|
||||
* @current_tcb_version: current TCB version
|
||||
* @reported_tcb_version: reported TCB version
|
||||
*/
|
||||
struct sev_user_data_snp_status {
|
||||
__u8 api_major; /* Out */
|
||||
__u8 api_minor; /* Out */
|
||||
__u8 state; /* Out */
|
||||
__u8 is_rmp_initialized:1; /* Out */
|
||||
__u8 rsvd:7;
|
||||
__u32 build_id; /* Out */
|
||||
__u32 mask_chip_id:1; /* Out */
|
||||
__u32 mask_chip_key:1; /* Out */
|
||||
__u32 vlek_en:1; /* Out */
|
||||
__u32 rsvd1:29;
|
||||
__u32 guest_count; /* Out */
|
||||
__u64 current_tcb_version; /* Out */
|
||||
__u64 reported_tcb_version; /* Out */
|
||||
} __attribute__((packed));
|
||||
|
||||
/**
|
||||
* struct sev_user_data_snp_config - system wide configuration value for SNP.
|
||||
*
|
||||
* @reported_tcb: the TCB version to report in the guest attestation report.
|
||||
* @mask_chip_id: whether chip id is present in attestation reports or not
|
||||
* @mask_chip_key: whether attestation reports are signed or not
|
||||
* @rsvd: reserved
|
||||
* @rsvd1: reserved
|
||||
*/
|
||||
struct sev_user_data_snp_config {
|
||||
__u64 reported_tcb ; /* In */
|
||||
__u32 mask_chip_id:1; /* In */
|
||||
__u32 mask_chip_key:1; /* In */
|
||||
__u32 rsvd:30; /* In */
|
||||
__u8 rsvd1[52];
|
||||
} __attribute__((packed));
|
||||
|
||||
/**
|
||||
* struct sev_issue_cmd - SEV ioctl parameters
|
||||
*
|
||||
|
||||
@@ -227,4 +227,11 @@
|
||||
*/
|
||||
#define VHOST_VDPA_GET_VRING_DESC_GROUP _IOWR(VHOST_VIRTIO, 0x7F, \
|
||||
struct vhost_vring_state)
|
||||
|
||||
/* Get the queue size of a specific virtqueue.
|
||||
* userspace set the vring index in vhost_vring_state.index
|
||||
* kernel set the queue size in vhost_vring_state.num
|
||||
*/
|
||||
#define VHOST_VDPA_GET_VRING_SIZE _IOWR(VHOST_VIRTIO, 0x80, \
|
||||
struct vhost_vring_state)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user