Skip to content

qboot: enable the MTRRs, write-back by default - #75

Merged
aledbf merged 1 commit into
mainfrom
qboot/mtrr
Oct 1, 2026
Merged

aledbf merged 1 commit into
mainfrom
qboot/mtrr

Conversation

@aledbf

@aledbf aledbf commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Stock qboot leaves the MTRRs disabled, and Linux maps every range it
memremaps write-back but does not know as RAM uncached-minus: a
virtio-pmem region read at 8.3 MB/s where SeaBIOS, which programs them,
gives 1.1 GB/s (lab runs 36818224412, 36818721809). mtrr.patch does
what SeaBIOS does on the boot CPU: enabled, write-back by default, the
32-bit PCI hole from the top of low RAM to 4 GiB uncacheable.

A firmware change, so a new machine fingerprint.

Boot time and the pmem read are measured on construct before merge.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Stock qboot leaves the MTRRs disabled, and Linux maps every range it
memremaps write-back but does not know as RAM uncached-minus: a
virtio-pmem region read at 8.3 MB/s where SeaBIOS, which programs them,
gives 1.1 GB/s (lab runs 36818224412, 36818721809). mtrr.patch does
what SeaBIOS does on the boot CPU: enabled, write-back by default, the
32-bit PCI hole from the top of low RAM to 4 GiB uncacheable.

A firmware change, so a new machine fingerprint.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant