> From: Khan Zhao <[email protected]> > > Add vhost_log_test, which exercises used-ring dirty logging through the > existing vhost_test module. It sets a log base with VHOST_SET_LOG_BASE, > enables VHOST_VRING_F_LOG on the ring, submits descriptors and checks > the resulting bitmap from userspace. No new kernel interface is needed. > > The test covers: > > - every bit in a byte, repeated sets, and neighbouring bytes being left > untouched, including the last byte of a page followed by a PROT_NONE > guard page > - a used ring write that spans two log pages, with both bits in the > same bitmap byte and in adjacent bytes > - a log page that has not been faulted in yet, read-only, PROT_NONE > [ ... ] > A --bench mode reports ns per descriptor with logging disabled and > enabled. vhost_log_test.rst describes how to build and run the test. > > Assisted-by: Claude:claude-opus-5-5 > Signed-off-by: Khan Zhao <[email protected]>
Sashiko has reviewed this patch and found no issues. -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=2
