x86 bootloader: keep 8259 PIC enabled when reading from disk #2065
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following a recent update of the hypervisor and/or the BIOS firmware on AWS Xen-based instances (e.g. t2 instances), the BIOS never returns from the INT 13H routine that the stage1 bootloader uses to read stage2 code from disk. This prevents the kernel from booting on those instance types.
This change fixes the above issue by disabling the 8259 PIC only after reading stage2 code from disk. This allows the BIOS firmware to work properly when executing the INT 13H routine, and also allows this routine to be executed more than once. Therefore, the limitation of 64 kB on stage2 code size is being lifted, since a larger stage2 binary (which requires more than one INT 13H call in order to be read from disk) is now properly handled on AWS instances.