Page MenuHomeFreeBSD

vmm: Dynamically allocate a couple of per-CPU state save areas
ClosedPublic

Authored by markj on Apr 25 2023, 5:22 PM.
Tags
None
Referenced Files
F82163468: D39805.diff
Fri, Apr 26, 2:28 AM
F82141021: D39805.diff
Thu, Apr 25, 9:30 PM
Unknown Object (File)
Wed, Apr 17, 8:18 AM
Unknown Object (File)
Sun, Apr 14, 4:41 PM
Unknown Object (File)
Sun, Apr 14, 4:15 PM
Unknown Object (File)
Sun, Apr 14, 4:05 PM
Unknown Object (File)
Thu, Apr 11, 10:53 PM
Unknown Object (File)
Feb 19 2024, 3:49 PM

Details

Summary

This avoids bloating the BSS when MAXCPU is large.

No functional change intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Apr 25 2023, 5:22 PM

Would anyone be willing to test this on an AMD system?

Would anyone be willing to test this on an AMD system?

What kind of the tests? Just run VM? I can test it on Ryzen 3700x.

rew added a subscriber: rew.

Would anyone be willing to test this on an AMD system?

works for me

sys/amd64/vmm/amd/svm.c
257–266

should MAXCPU be pruned at some point?

This revision is now accepted and ready to land.Apr 25 2023, 7:24 PM
In D39805#906277, @rew wrote:

Would anyone be willing to test this on an AMD system?

works for me

Thanks.

Would anyone be willing to test this on an AMD system?

What kind of the tests? Just run VM? I can test it on Ryzen 3700x.

Yes, booting a guest ought to be enough. Not really necessary now that Rob tried it.

sys/amd64/vmm/amd/svm.c
257–266

Yeah, that's a follow-up step that I just didn't take since asid[] is much smaller.

somebody attempted a different kind of test: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271251 — Kernel panics when loading vmm module with VT-x disabled