🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #388

Re: Interrupts in OoO

#388
From: Scott Lurndal
Date: Tue, 27 Oct 2026 18:33
74 lines
4658 bytes
MitchAlsup <user5857@newsgrouper.org.invalid> writes:
>EricP <ThatWouldBeTelling@thevillage.com> posted:
>
>> On 2026-Oct-25 11:53, Scott Lurndal wrote:
>> > MitchAlsup <user5857@newsgrouper.org.invalid> writes:
>> >> quadibloc@invalid.com (John Savard) posted:
>> >>
>> >>> On Sat, 05 Oct 2024 17:57:12 GMT, anton@mips.complang.tuwien.ac.at
>> >>> (Anton Ertl) wrote:
>> >>>
>> >>>> Ok, it's more efficient to insert an interrupt call into the
>> >>>> instruction stream in the decoder: all the in-flight instructions will
>> >>>> be completed instead of going to waste.  However, the interrupt will
>> >>>> usually be serviced later, and, as you point out, if the instruction
>> >>>> stream is redirected for some other reason, you may have to replay the
>> >>>> interrupt.
>> >>>
>> >>> A _trap_ can be a problem on an out-of-order machine, since traps
>> >>> result from exceptions, and so they have to be tied to the instruction
>> >>> stream.
>> >>
>> >> We have {Traps, Exceptions, Interrupts}.
>> >>
>> >> A trap is synchronous to the executing code and we want IP pointing at the
>> >> subsequent instruction. A trap may send a small amount of data to the service
>> >> at the other end. Not all registers have to be preserved. Registers R0..R15
>> >> are considered temporaries at the caller->callee boundary. Those registers
>> >> either carry a result or are cleared <HW> at the callee->caller boundary::
>> >> in My 66000 SBI.
>> >>
>> >> An Exception is synchronous to the executing code and we want IP pointing
>> >> at the offending instruction. What kind of exception is the message to the
>> >> service routine. All Thread-State has to be preserved. A Thread should
>> >> be able to handle its own exceptions should it communicate same with
>> >> Guest OS.
>> > 
>> > Exceptions are not alway precise.  For example, an exception
>> > on a posted store (that's spent time in a store buffer, for
>> > example), may have an exception asynchronously.
>> 
>> This is a terminology problem that comes from processors putting
>> all the "alert" notifications through the same delivery mechanism.
>> People often use various the terms as interchangeable when really
>> they are not.
>> 
>> In my terminology I have Exceptions, Interrupts, and Errors.
>> I take all the well defined stuff and put it in the Exception and
>> Interrupt buckets, and take all the weird stuff and call it Errors.
>
>To a very large extent I agree with you. The things you call errors
>I call Checks. Checks are never supposed to happen {{like late store
>data ECC fails}}.

If it is "never supposed to happen", why bother to check at all...

For RAS reasons, if nothing else, one must assume that anything
may happen.

> 
 <snip>

>> Errors are model and error specific, may be synchronous or asynchronous,
>> may be precise (Faults or Traps) or imprecise (Aborts).
>> Errors may or may not be deferred (maskable).
>
>It is at this point I generally point out that Checks {errors} deliver
>control to the highest privilege level {HyperVisor} not the next higher
>privilege level {Guest OS when in User}.

It's better if that is programmable, i.e. the highest privilege level
(even higher than the hypervisor - i.e. the EL3 in ARM64, or SMM for
intel/amd (or perhaps a BMC)).  The higher privilege levels can delegate
the asynchronous "check" exception handling to a lower level, if necessary.
Technical Details
Message-ID: <086ES.1941$y_V1.526@fx12.iad>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx12.iad.POSTED!not-for-mail
References: <2024Oct3.160055@mips.complang.tuwien.ac.at> <vdmrk6$3rksr$1@dont-email.me> <LyELO.69485$2nv5.62232@fx39.iad> <TdWLO.282116$FzW1.158190@fx14.iad> <963a276fd8d43e4212477cefae7f6e46@www.novabbs.org> <8IcMO.249144$v8v2.147178@fx18.iad> <2024Oct5.195712@mips.complang.tuwien.ac.at> <6adbf319.9129937@news.eternal-september.org> <1792869649-5857@newsgrouper.org> <fCpDS.27362$9b8f.8498@fx39.iad> <L%JDS.15598$fJ0f.4191@fx44.iad> <1793118908-5857@newsgrouper.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx12.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Interrupts in OoO
Newsgroups: comp.arch
References: <2024Oct3.160055@mips.complang.tuwien.ac.at> <vdmrk6$3rksr$1@dont-email.me> <LyELO.69485$2nv5.62232@fx39.iad> <TdWLO.282116$FzW1.158190@fx14.iad> <963a276fd8d43e4212477cefae7f6e46@www.novabbs.org> <8IcMO.249144$v8v2.147178@fx18.iad> <2024Oct5.195712@mips.complang.tuwien.ac.at> <6adbf319.9129937@news.eternal-september.org> <1792869649-5857@newsgrouper.org> <fCpDS.27362$9b8f.8498@fx39.iad> <L%JDS.15598$fJ0f.4191@fx44.iad> <1793118908-5857@newsgrouper.org>
Lines: 74
Message-ID: <086ES.1941$y_V1.526@fx12.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Tue, 27 Oct 2026 18:33:32 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Tue, 27 Oct 2026 18:33:32 GMT
X-Received-Bytes: 4426