From: marc.zyngier@arm.com (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: A question about vtimer interrupt when guest_exit
Date: Thu, 13 Apr 2017 08:32:35 +0100 [thread overview]
Message-ID: <1ae65d92-d69a-5420-7b40-4e3f67984a4d@arm.com> (raw)
In-Reply-To: <B99C36949BCC8541A564076B659DD970671E7965@nkgeml514-mbs.china.huawei.com>
On 13/04/17 07:14, Wangxuefeng (E) wrote:
>
>
> Hi Marc,
>
> I have a question about the vtimer ppi report when guest exit.
>
>
>
> 1. The flow: vtimer PPI assert->guest_exit->disable the
> vtimer->msr daifclear, #0x2
>
>
>
> 2. When disable the vtimer, the nCNTVIRQ will be cleared, then the
> clear request will be sent to GICD, GICD send clear request to GICC then
> clear the irq to CPU. So the clear request indeed be sent to CPU need
> some cycles(for example: N cycles),
>
> while the cpu execute from ?disable vtimer? to ?clear the mask of irq?
> need M cycles, how the software make sure the interrupt won?t be taken
> by CPU before it indeed get the clear request? Or the ARM architecture
> make sure M<N.
The architecture doesn't guarantee anything like that. If your GIC is
too slow to retire the pending interrupt by the time we unmask
interrupts at the CPU level, you'll get a (harmless) warning that we've
taken a spurious timer interrupt. This isn't a big deal, just the
indication that the HW is a bit imbalanced (fast CPU, slow GIC).
We may revise the way we handle the timer interrupt@some point,
taking the interrupt and keeping it active while injected into the guest.
Thanks,
M.
--
Jazz is not dead. It just smells funny...
parent reply other threads:[~2017-04-13 7:32 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <B99C36949BCC8541A564076B659DD970671E7965@nkgeml514-mbs.china.huawei.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1ae65d92-d69a-5420-7b40-4e3f67984a4d@arm.com \
--to=marc.zyngier@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox