diff options
author | Anish Moorthy <amoorthy@google.com> | 2024-02-16 02:53:52 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-04-10 00:00:48 +0300 |
commit | ed2f049fc1445116317c97abb1f2870fb9a14d83 (patch) | |
tree | e66737b9b787e83ca7c980feaab56ef40dce86c6 /virt | |
parent | fec50db7033ea478773b159e0e2efb135270e3b7 (diff) | |
download | linux-ed2f049fc1445116317c97abb1f2870fb9a14d83.tar.xz |
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 <amoorthy@google.com>
Link: https://lore.kernel.org/r/20240215235405.368539-2-amoorthy@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index fb49c2a60200..b1054d6a14ab 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -2963,7 +2963,7 @@ out: /* * Pin guest page in memory and return its pfn. * @addr: host virtual address which maps memory to the guest - * @atomic: whether this function can sleep + * @atomic: whether this function is forbidden from sleeping * @interruptible: whether the process can be interrupted by non-fatal signals * @async: whether this function need to wait IO complete if the * host page is not in the memory |