Expand description
Common TDCALL handling for issuing tdcalls and functionality using tdcalls.
Structs§
- Tdcall
Input - Input to a tdcall. This is not defined in the TDX specification, but a contract between callers of this module and this module’s handling of tdcalls.
- Tdcall
Output - Output from a tdcall. This is not defined in the TDX specification, but a contract between callers of this module and this module’s handling of tdcalls.
- TdgPage
Attr RdResult - The result returned from
tdcall_page_attr_rd
.
Enums§
- Accept
Pages Attributes - The page attributes to accept pages with.
- Accept
Pages Error - The error returned by
accept_pages
.
Traits§
- Tdcall
- Trait to perform tdcalls used by this module.
Functions§
- accept_
pages - Accept pages from
range
usingtdcall_accept_pages
. - set_
page_ attributes - Set page attributes from
range
usingtdcall_page_attr_wr
. - tdcall_
accept_ pages - Issue a TDG.MEM.PAGE.ACCEPT call.
- tdcall_
io_ in - Perform a tdcall based io port read.
- tdcall_
io_ out - Perform a tdcall based io port write.
- tdcall_
map_ gpa - Issue a map gpa call to change page visibility for accepted pages via a TDG.VP.VMCALL.
- tdcall_
page_ attr_ rd - Issue a TDG.MEM.PAGE.ATTR.RD call.
- tdcall_
page_ attr_ wr - Issue a TDG.MEM.PAGE.ATTR.WR call.
- tdcall_
rdmsr - Perform a tdcall based MSR read. This is done by issuing a TDG.VP.VMCALL.
- tdcall_
vp_ invgla - Issue a TDG.VP.INVGLA call.
- tdcall_
vp_ rd - Issue a TDG.VP.RD call.
- tdcall_
vp_ wr - Issue a TDG.VP.WR call.
- tdcall_
wrmsr - Perform a tdcall based MSR write. This is done by issuing a TDG.VP.VMCALL.