Skip to contentSkip to conversation

KVM: Document next_segment() behavior

PATCH New Chrinovic M 1 participant 1 message Mar 27 KVM

lore
Share & tools
lore
#0 lore raw

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.

---
 virt/kvm/kvm_main.c | 1 +
 1 file changed, 1 insertion(+)
virt/kvm/kvm_main.c +1 -0
index 9093251beb39..03ddfafe005c 100644
@@ -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