Page MenuHomeFreeBSD

vmm(4): Partially unfuck multicore AMD support
AbandonedPublic

Authored by cem on Jan 5 2019, 2:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 11 2024, 9:06 AM
Unknown Object (File)
Jan 16 2024, 10:52 AM
Unknown Object (File)
Dec 20 2023, 6:45 AM
Unknown Object (File)
Nov 13 2023, 12:22 PM
Unknown Object (File)
Nov 7 2023, 11:56 PM
Unknown Object (File)
Nov 5 2023, 2:11 AM
Unknown Object (File)
Oct 6 2023, 10:45 PM
Unknown Object (File)
Oct 4 2023, 2:10 AM
Subscribers
None

Details

Reviewers
araujo
jhb
grehan
anish
avg
rgrimes
Group Reviewers
bhyve
Summary

CPUID emulation presented Intel topology information to the guest, but
disabled AMD topology information and in some cases passed through
garbage. (I.e., 8000_001[de] were passed through to the guest, but
guest threads can migrate between host cores and threads, so the
information presented was not consistent).

Slightly improve this situation by enabling AMD topology feature flag
and presenting at least the CPUID fields used by FreeBSD itself to probe
topology on more modern AMD64 hardware (Family 15h+). Older stuff is
probably less interesting.

Test Plan

Without this, guests on AMD Family 17h with more than a single core seems to
fail to launch APs. I have not yet tested the patch to confirm it fixes that
particular issue and may not be able to for some time (my AMD 17h is my
desktop); at a minimum it fixes the feature parity issue where '-c' flag
topology was not presented accurately to AMD guests.

Supporting documents for reference:

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21839
Build 21099: arc lint + arc unit

Event Timeline

rgrimes retitled this revision from vmm(4): Partially unfuck multicore AMD support to vmm(4): Partially fix multicore AMD support.Jan 5 2019, 5:15 AM
rgrimes added a reviewer: bhyve.
cem retitled this revision from vmm(4): Partially fix multicore AMD support to vmm(4): Partially unfuck multicore AMD support.Jan 5 2019, 5:35 AM
cem removed a reviewer: rgrimes.
cem removed a reviewer: rgrimes.
cem changed the visibility from "Public (No Login Required)" to "Custom Policy".
cem changed the edit policy from "All Users" to "Custom Policy".
cem changed the visibility from "Custom Policy" to "Public (No Login Required)".Jan 16 2019, 1:20 AM

Hi @cem,

Thanks for the patch, it looks right for me, although I don't have any AMD machine right now to make more tests.
I have only two requests and I would like to check with you if you could follow them:

  1. Give some more time for @jhb to also have a chance to take a look on this patch.
  2. When you commit it, please don't use the word "unfuck", just to avoid open room for people to have something to create noise.

Overall, it looks good to me, thanks to work on that, really appreciate it.