主权项 |
1. A method of managing interrupts in a computing environment, comprising:
executing an instruction, wherein the instruction comprises a native instruction included in a set of native instructions used to emulate a virtual instruction; selecting, from a plurality of interrupt masks, an appropriate, corresponding interrupt mask for the native instruction being executed, wherein:
representations of at least a portion of the plurality of interrupt masks were previously stored in a table, and wherein the table specifies a mapping of each type of native instruction in the set of native instructions to a particular interrupt mask included in the plurality of interrupt masks;a given interrupt mask in the plurality of interrupt masks is associated with a corresponding bit pattern representing a corresponding set of allowable and disallowable types of interrupts, wherein each bit in the bit pattern indicates whether a corresponding type of interrupt is allowable; andselecting the appropriate, corresponding interrupt mask for the native instruction being executed includes performing a lookup of the table based at least in part on the type of the native instruction being executed; subsequent to selecting the appropriate, corresponding interrupt mask, determining, based at least in part on a masking operation involving the selected interrupt mask, whether each pending type of interrupt in a set of one or more pending types of interrupts is allowable at least in part by checking a corresponding bit in the bit pattern associated with the selected interrupt mask; and in the event that a pending type of interrupt is determined to be allowable, performing the pending type of interrupt. |