Article View: comp.arch
Article #424Re: Interrupts in OoO
From: MitchAlsup
Date: Wed, 28 Oct 2026 19:02
Date: Wed, 28 Oct 2026 19:02
144 lines
8095 bytes
8095 bytes
EricP <ThatWouldBeTelling@thevillage.com> posted:
> On 2026-Oct-27 12:35, MitchAlsup wrote:
> > EricP <ThatWouldBeTelling@thevillage.com> posted:
> >>
> >> 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}}.
> >
> >> Exceptions are defined by the ISA, are precise, and synchronous
> >> to the excepting instruction. There are two kinds, Faults and Traps.
> >> Most exceptions notifications cannot be deferred or "masked".
> >> Floating point exceptions are potentially maskable however if
> >> they are then any auxiliary information about the precise source of
> >> the FP exceptions will be synchronous with instruction that unmasks
> >> a pending floating point exception.
> >>
> >> Interrupts are defined as precise and asynchronous.
> >> Their number and priority mechanisms is defined as model specific.
> >> Interrupts are potentially maskable and may be deferred.
> >> The only ISA defined part of interrupts are the master interrupt
> >> mask control instructions INTEN enable and INTDI disable.
> >>
> >> Exceptions and Interrupts are defined as precise and restartable.
> >>
> >> The mechanism for delivering Exception and Interrupt notifications
> >> is defined as model specific. In practice this just means that
> >> operating systems should modularize this layer of their software
> >> (sometimes called a HAL or Hardware Abstraction Layer).
> >>
> >> 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}.
>
> I didn't have separate privilege modes for HV and Errors-Checks,
> just Supervisor mode.
>
> There is a HV mode which triggers exceptions when guest OS attempt to
> access certain privileged control registers while guest is in Super mode.
> But that is enabled by privileged control flags.
>
> I'm not sure what an Error-Check mode could do that is different
> from faulting into Super mode and disabling the HV enable flag,
> and vectoring off to a privileged error handler routine.
For example, HV takes a UC ECC fault from Guest OS. HV aborts that Guest
OS and then spawns a new Guest OS and tells it to recover to its last
saved checkpoint {because it wants Guest OS to use different memory
pages to avoid future UC ECC faults.}
I guess: if Guest OS is capable of rolling itself back to its latest
saved checkpoint, and do something about the UC ECC page, the mechanism
would not need to go all the way up to HV.
> >> Errors may not be restartable.
> >> The mechanism for delivering Error notifications is defined as
> >> model and error specific.
> >
> > No, while the checks are model specific, the mechanism to deliver them
> > to HV is specified.
> >>
>
> In my approach the ISA defines:
> - Exceptions type codes and auxiliary data, and their associated instructions.
I basically agree--and I define exception type code(s) to reside in R0 at
control delivery, while auxiliary data is in R1-R4. This comprises the first
64-bits of the instruction, and up to 3 Operands to the instruction. Of
course, IP points at instruction.
> - That priority interrupts exist,
Both priority and privilege. Priority > Privilege. When a higher priority
enabled interrupt is pending than core is currently running, interrupt
control transfer is performed.
> that there is a master enable/disable flag controlled INTEN and INTDI instructions,
> that there is a REIC Return from Exception or Interrupt Conditional instruction
> to return from OS to prior execution context.
I my model, control is delivered without disablement, so if while transfer-
ring control a higher <still> interrupt becomes pending, the higher priority
interrupt gets control before the lower priority interrupt can retire its
first instruction. {{That is control is delivered with a re-entrant state in
RF and Thread-Header.}}
> - That Errors are possible.
>
> However the mechanism for communicating between the HW and SW handlers
> is defined as model specific.
I want unmodified OSs to remain upwards compatible across implementations.
{and mostly downwards, too}
> In the case of exceptions that mechanism is
> unlikely to change - there are some privileged control registers to set up,
> HW calculates a jump address using the exception code (no memory is accessed
> during state transition so no external errors can disrupt the context switch).
>
> However Interrupts and Errors (Checks) I see as external to the ISA
> and defined by the needs of the surrounding IO and other hardware.
Having an ID and IE instructions places interrupts IN the ISA. There are
already plenty of places in the 'system' where individual {or groups of
interrupts} can be disabled; without having ID and IE at the core. They
are <generally> 'IN' the core due to non-re-entrant behavior at control
transfer.
> The interrupt controllers I see as plug-in HW and SW modules external to the ISA,
> and there would be multiple kinds interrupt controllers for different markets.
In my model, a core is a device and comes with a PCIe type-1 header.
manufacture {My 66000} and device {core} tell Boot what kind of SW to
load for that 'core'. The attached capabilities lists also help BOOT
in loading appropriate SW for that/those cores.
> Potentially there are different controllers for embedded, desktop, server-bare,
> and server-VM.
Yep, the chip may be the same, but manufacture and device point at different
files to be loaded into the runnable image.
> Mobile and laptop are more like embedded where there are no
> new devices that plug into the interrupt system, than like desktop or server.
You are still going to want plug-and-play. You are unlikely to want Disks, M2
to PaP; you will want discovered LAN WiFi, USB, CD-ROM, DVD.
> Embedded, mobile and laptop probably want the lowest cost interfaces,
> whereas servers, particularly those running virtual machines want more features.
>
> These interfaces are specified, its just that they are documented for each model
> and any differences only affect privileged operating system software.
>
>
>
Technical Details
Message-ID:
<1793214175-5857@newsgrouper.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mailReferences:
<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> <j1rES.147330$V9C6.84580@fx02.iad>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail From: MitchAlsup <user5857@newsgrouper.org.invalid> Newsgroups: comp.arch Subject: Re: Interrupts in OoO 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> <j1rES.147330$V9C6.84580@fx02.iad> Date: Wed, 28 Oct 2026 19:02:55 GMT Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: <1793214175-5857@newsgrouper.org> Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857 Injection-Date: Wed, 28 Oct 2026 19:02:55 GMT User-Agent: Newsgrouper/0.9.0