Home
last modified time | relevance | path

Searched refs:kvm_tdx (Results 1 – 2 of 2) sorted by relevance

/linux/arch/x86/kvm/vmx/
H A Dtdx.c80 static __always_inline struct kvm_tdx *to_kvm_tdx(struct kvm *kvm) in to_kvm_tdx()
82 return container_of(kvm, struct kvm_tdx, kvm); in to_kvm_tdx()
266 static inline void tdx_hkid_free(struct kvm_tdx *kvm_tdx) in tdx_hkid_free() argument
268 tdx_guest_keyid_free(kvm_tdx->hkid); in tdx_hkid_free()
269 kvm_tdx->hkid = -1; in tdx_hkid_free()
271 misc_cg_uncharge(MISC_CG_RES_TDX, kvm_tdx->misc_cg, 1); in tdx_hkid_free()
272 put_misc_cg(kvm_tdx->misc_cg); in tdx_hkid_free()
273 kvm_tdx->misc_cg = NULL; in tdx_hkid_free()
276 static inline bool is_hkid_assigned(struct kvm_tdx *kvm_tdx) in is_hkid_assigned() argument
278 return kvm_tdx->hkid > 0; in is_hkid_assigned()
[all …]
H A Dtdx.h24 struct kvm_tdx { struct
83 static __always_inline u64 td_tdcs_exec_read64(struct kvm_tdx *kvm_tdx, u32 field) in td_tdcs_exec_read64() argument
87 err = tdh_mng_rd(&kvm_tdx->td, TDCS_EXEC(field), &data); in td_tdcs_exec_read64()
195 struct kvm_tdx { struct