public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: Document next_segment() behavior
@ 2026-03-27  9:50 Chrinovic M
  0 siblings, 0 replies; only message in thread
From: Chrinovic M @ 2026-03-27  9:50 UTC (permalink / raw)
  To: kvm; +Cc: pbonzini, linux-kernel, Chrinovic M

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 <chrinovicmu@gmail.com>
---
 virt/kvm/kvm_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 9093251beb39..03ddfafe005c 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -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)
-- 
2.39.5


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-03-27  9:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-27  9:50 [PATCH] KVM: Document next_segment() behavior Chrinovic M

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox