Re: [PATCH RESEND v2 15/17] KVM: selftests: Add dirty ring buffer test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2019/12/21 上午10:04, Peter Xu wrote:
Add the initial dirty ring buffer test.

The current test implements the userspace dirty ring collection, by
only reaping the dirty ring when the ring is full.

So it's still running asynchronously like this:


I guess you meant "synchronously" here.

Thanks



             vcpu                             main thread

   1. vcpu dirties pages
   2. vcpu gets dirty ring full
      (userspace exit)

                                        3. main thread waits until full
                                           (so hardware buffers flushed)
                                        4. main thread collects
                                        5. main thread continues vcpu

   6. vcpu continues, goes back to 1





[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux