From: "Laszlo Ersek" <lersek@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
Igor Druzhinin <igor.druzhinin@citrix.com>,
devel@edk2.groups.io
Cc: jordan.l.justen@intel.com, ard.biesheuvel@arm.com,
anthony.perard@citrix.com, julien@xen.org,
Ray Ni <ray.ni@intel.com>
Subject: Re: [PATCH] OvmfPkg: End timer interrupt later to avoid stack overflow under load
Date: Wed, 17 Jun 2020 17:46:14 +0200 [thread overview]
Message-ID: <8f885a46-f72b-bf13-db55-28e6db8b5bff@redhat.com> (raw)
In-Reply-To: <1d4cd50f-9479-0361-2d23-edda83037243@redhat.com>
On 06/17/20 15:51, Paolo Bonzini wrote:
> On 16/06/20 20:42, Laszlo Ersek wrote:
>> (Hmmm... maybe the hypervisor *has* to queue the timer interrupts,
>> otherwise some of them would simply be lost, and the guest would lose
>> track of time.)
>
> Yes, there are various kinds of coalescing of interrupts that
> hypervisors perform to help the guest keep track of time. This is
> especially true of the PIT and RTC; newer OSes track time directly from
> the TSC, the HPET or the APIC timer so they tolerate lost ticks much better.
>
> That said, Igor's patch seems correct to me. In fact, I'd even move
> DisableInterrupts before gBS->RestoreTPL unless there's a good reason
> not to do so.
OK, thank you!
Igor, please confirm if you'd like to submit v2 with the update
suggested by Paolo, or if you prefer the current version. We're at the
beginning of the current development cycle, so I guess we can apply the
patch and see how it works in practice. If it ends up wreaking havoc on
some platforms, we can always revert the patch in time for the next
stable tag (edk2-stable202008).
Perhaps we should also file a TianoCore BZ for this issue, with a clear
problem statement, and the solution outline. The commit message is not
lacking, but I think a TianoCore BZ could be easier to find with a web
search, if users (not developers) want to comment after the patch is
merged. It's also easier to round up (possibly) important changes, for
stable tag content review, when there are BZs.
Thanks!
Laszlo
next prev parent reply other threads:[~2020-06-17 15:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-16 2:49 [PATCH] OvmfPkg: End timer interrupt later to avoid stack overflow under load Igor Druzhinin
2020-06-16 18:42 ` Laszlo Ersek
2020-06-17 3:16 ` Igor Druzhinin
2020-06-17 12:44 ` Laszlo Ersek
2020-06-17 13:51 ` Paolo Bonzini
2020-06-17 15:46 ` Laszlo Ersek [this message]
2020-06-17 16:59 ` Paolo Bonzini
2020-06-17 17:23 ` Igor Druzhinin
2020-06-18 8:36 ` Laszlo Ersek
2020-06-18 8:44 ` Laszlo Ersek
2020-06-18 12:10 ` [edk2-devel] " Laszlo Ersek
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-list 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=8f885a46-f72b-bf13-db55-28e6db8b5bff@redhat.com \
--to=devel@edk2.groups.io \
/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