OSDN Git Service

Merge tag 'hyperv-next-signed-20230902' of git://git.kernel.org/pub/scm/linux/kernel...
[tomoyo/tomoyo-test1.git] / arch / x86 / include / asm / hyperv-tlfs.h
index cea95dc..2ff26f5 100644 (file)
 enum hv_isolation_type {
        HV_ISOLATION_TYPE_NONE  = 0,
        HV_ISOLATION_TYPE_VBS   = 1,
-       HV_ISOLATION_TYPE_SNP   = 2
+       HV_ISOLATION_TYPE_SNP   = 2,
+       HV_ISOLATION_TYPE_TDX   = 3
 };
 
 /* Hyper-V specific model specific registers (MSRs) */
@@ -301,6 +302,13 @@ enum hv_isolation_type {
 #define HV_X64_MSR_TIME_REF_COUNT      HV_REGISTER_TIME_REF_COUNT
 #define HV_X64_MSR_REFERENCE_TSC       HV_REGISTER_REFERENCE_TSC
 
+/*
+ * Registers are only accessible via HVCALL_GET_VP_REGISTERS hvcall and
+ * there is not associated MSR address.
+ */
+#define        HV_X64_REGISTER_VSM_VP_STATUS   0x000D0003
+#define        HV_X64_VTL_MASK                 GENMASK(3, 0)
+
 /* Hyper-V memory host visibility */
 enum hv_mem_host_visibility {
        VMBUS_PAGE_NOT_VISIBLE          = 0,