Skip to content

Commit 189fd1b

Browse files
mdrothsean-jc
authored andcommitted
KVM: TDX: Document alignment requirements for KVM_TDX_INIT_MEM_REGION
Since it was never possible to use a non-PAGE_SIZE-aligned @source_addr, go ahead and document this as a requirement. This is in preparation for enforcing page-aligned @source_addr for all architectures in guest_memfd. Reviewed-by: Vishal Annapurve <vannapurve@google.com> Tested-by: Kai Huang <kai.huang@intel.com> Signed-off-by: Michael Roth <michael.roth@amd.com> Reviewed-by: Yan Zhao <yan.y.zhao@intel.com> Link: https://patch.msgid.link/20260108214622.1084057-6-michael.roth@amd.com Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent dcbcc23 commit 189fd1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Documentation/virt/kvm/x86/intel-tdx.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ KVM_TDX_INIT_MEM_REGION
156156
:Returns: 0 on success, <0 on error
157157

158158
Initialize @nr_pages TDX guest private memory starting from @gpa with userspace
159-
provided data from @source_addr.
159+
provided data from @source_addr. @source_addr must be PAGE_SIZE-aligned.
160160

161161
Note, before calling this sub command, memory attribute of the range
162162
[gpa, gpa + nr_pages] needs to be private. Userspace can use

0 commit comments

Comments
 (0)