Page MenuHomeFreeBSD

md(4): add support for unmapped preloaded images -- imp hacks
AbandonedPublic

Authored by imp on Jul 23 2025, 12:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 13, 8:15 AM
Unknown Object (File)
Sun, Oct 12, 7:59 PM
Unknown Object (File)
Sun, Oct 12, 7:59 PM
Unknown Object (File)
Sun, Oct 12, 8:23 AM
Unknown Object (File)
Wed, Sep 17, 9:39 AM
Unknown Object (File)
Sep 16 2025, 10:31 AM
Unknown Object (File)
Sep 15 2025, 7:18 AM
Unknown Object (File)
Sep 13 2025, 8:12 AM
Subscribers

Details

Reviewers
None
Summary

Making copies directly on physical addresses eliminates the need to
remap the images into KVA, and should be equally fast on DMAP arches.

XXX HAS THE HACKS

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 65621
Build 62504: arc lint + arc unit

Event Timeline

imp requested review of this revision.Jul 23 2025, 12:13 AM
imp created this revision.

This is just https://reviews.freebsd.org/D51128, lightly hacked to make it compile with what I think we might need. It seems to work, but my test jig didn't let me access the md0 disks since it just is a test booting jig. Things showed up in the dmesg correctly (and if I booted the right kernel, didn't panic anything).

And to be clear, kib wrote this all, I just adopted the last chunk in a way I think might be right????

The update seems to be correct, I did exactly the same in D51128

In D51466#1175244, @kib wrote:

The update seems to be correct, I did exactly the same in D51128

OK. I had to tweak things after git arc patch...

Do you want to commit this then? Or would you rather I do it?

kib's version is better