[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to simulate a device which generates an interrupt every 8.3 ms
From: |
Peter Maydell |
Subject: |
Re: How to simulate a device which generates an interrupt every 8.3 ms |
Date: |
Thu, 10 Dec 2020 11:07:17 +0000 |
On Thu, 10 Dec 2020 at 05:28, Weiss, Howard <Howard.Weiss2@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