On Thu, 10 Dec 2020 at 05:28, Weiss, Howard <howard.wei...@hologic.com> wrote: > > Hi – > > > > I am writing a Windows 10 device driver which receives an interrupt from > hardware every 8.3 ms. I am simulating the hardware device in a linux > QEMU/KVM VM with Windows 10 installed. How do I program my simulated device > to generate an interrupt every 8.3 ms? Under windows, I would generate a high > resolution timer interrupt using the windows multi-media API. What is the > QEMU/KVM equivalent?
Use a QEMUTimer. You can set the expiry period in nanoseconds. Note that you should probably not expect QEMU's timing to be accurate to exactly 8.3ms. thanks -- PMM