Skip to content

Commit ed2f049

Browse files
anlshsean-jc
authored andcommitted
KVM: Clarify meaning of hva_to_pfn()'s 'atomic' parameter
The current description can be read as "atomic -> allowed to sleep," when in fact the intended statement is "atomic -> NOT allowed to sleep." Make that clearer in the docstring. Signed-off-by: Anish Moorthy <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent fec50db commit ed2f049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virt/kvm/kvm_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2963,7 +2963,7 @@ static int hva_to_pfn_remapped(struct vm_area_struct *vma,
29632963
/*
29642964
* Pin guest page in memory and return its pfn.
29652965
* @addr: host virtual address which maps memory to the guest
2966-
* @atomic: whether this function can sleep
2966+
* @atomic: whether this function is forbidden from sleeping
29672967
* @interruptible: whether the process can be interrupted by non-fatal signals
29682968
* @async: whether this function need to wait IO complete if the
29692969
* host page is not in the memory

0 commit comments

Comments
 (0)