KVM: Document next_segment() behavior
PATCH 1/1 KVM: Document next_segment() behavior
Add a brief comment describing how next_segment() computes the number of bytes available in the current page when handling guest memory accesses.
No functional change.
Signed-off-by Chrinovic M <[email protected]>
--- virt/kvm/kvm_main.c | 1 + 1 file changed, 1 insertion(+)
virt/kvm/kvm_main.c +1 -0
@@ -3176,6 +3176,7 @@ void kvm_vcpu_unmap(struct kvm_vcpu *vcpu, struct kvm_host_map *map) }EXPORT_SYMBOL_FOR_KVM_INTERNAL (kvm_vcpu_unmap); +/* Compute bytes available in current page for the guest memory op */ static int next_segment (unsigned long len,int offset) {if (len >PAGE_SIZE - offset)
Signature · 1 line
2.39.5