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
Unknown Object (File)
Oct 7 2024, 12:39 AM
Unknown Object (File)
Sep 27 2024, 7:54 AM
Unknown Object (File)
Sep 27 2024, 7:54 AM
Unknown Object (File)
Sep 25 2024, 4:16 PM
Unknown Object (File)
Sep 25 2024, 12:14 PM
Unknown Object (File)
Sep 24 2024, 6:26 PM
Unknown Object (File)
Sep 24 2024, 10:28 AM
Unknown Object (File)
Sep 18 2024, 9:13 AM

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