@@ -7196,6 +7196,10 @@ The valid value for 'flags' is:
71967196 u64 leaf;
71977197 u64 r11, r12, r13, r14;
71987198 } get_tdvmcall_info;
7199+ struct {
7200+ u64 ret;
7201+ u64 vector;
7202+ } setup_event_notify;
71997203 };
72007204 } tdx;
72017205
@@ -7210,21 +7214,24 @@ number from register R11. The remaining field of the union provide the
72107214inputs and outputs of the TDVMCALL. Currently the following values of
72117215``nr `` are defined:
72127216
7213- * ``TDVMCALL_GET_QUOTE ``: the guest has requested to generate a TD-Quote
7214- signed by a service hosting TD-Quoting Enclave operating on the host.
7215- Parameters and return value are in the ``get_quote `` field of the union.
7216- The ``gpa `` field and ``size `` specify the guest physical address
7217- (without the shared bit set) and the size of a shared-memory buffer, in
7218- which the TDX guest passes a TD Report. The ``ret `` field represents
7219- the return value of the GetQuote request. When the request has been
7220- queued successfully, the TDX guest can poll the status field in the
7221- shared-memory area to check whether the Quote generation is completed or
7222- not. When completed, the generated Quote is returned via the same buffer.
7223-
7224- * ``TDVMCALL_GET_TD_VM_CALL_INFO ``: the guest has requested the support
7225- status of TDVMCALLs. The output values for the given leaf should be
7226- placed in fields from ``r11 `` to ``r14 `` of the ``get_tdvmcall_info ``
7227- field of the union.
7217+ * ``TDVMCALL_GET_QUOTE ``: the guest has requested to generate a TD-Quote
7218+ signed by a service hosting TD-Quoting Enclave operating on the host.
7219+ Parameters and return value are in the ``get_quote `` field of the union.
7220+ The ``gpa `` field and ``size `` specify the guest physical address
7221+ (without the shared bit set) and the size of a shared-memory buffer, in
7222+ which the TDX guest passes a TD Report. The ``ret `` field represents
7223+ the return value of the GetQuote request. When the request has been
7224+ queued successfully, the TDX guest can poll the status field in the
7225+ shared-memory area to check whether the Quote generation is completed or
7226+ not. When completed, the generated Quote is returned via the same buffer.
7227+
7228+ * ``TDVMCALL_GET_TD_VM_CALL_INFO ``: the guest has requested the support
7229+ status of TDVMCALLs. The output values for the given leaf should be
7230+ placed in fields from ``r11 `` to ``r14 `` of the ``get_tdvmcall_info ``
7231+ field of the union.
7232+
7233+ * ``TDVMCALL_SETUP_EVENT_NOTIFY_INTERRUPT ``: the guest has requested to
7234+ set up a notification interrupt for vector ``vector ``.
72287235
72297236KVM may add support for more values in the future that may cause a userspace
72307237exit, even without calls to ``KVM_ENABLE_CAP `` or similar. In this case,
0 commit comments