Page MenuHomeFreeBSD

AMD - emulate Extended CPUID Features override.
ClosedPublic

Authored by araujo on Oct 26 2018, 11:42 AM.
Tags
None
Referenced Files
F136319832: D17713.id49649.diff
Mon, Nov 17, 5:10 AM
F136304900: D17713.id.diff
Mon, Nov 17, 3:17 AM
Unknown Object (File)
Sun, Nov 16, 9:43 PM
Unknown Object (File)
Sun, Nov 16, 9:37 PM
Unknown Object (File)
Sun, Nov 16, 8:44 PM
Unknown Object (File)
Sun, Nov 16, 8:32 PM
Unknown Object (File)
Mon, Nov 3, 1:39 PM
Unknown Object (File)
Mon, Nov 3, 1:38 PM
Subscribers

Details

Summary

This patch comes from a PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224476
It looks right for me, but unfortunately I don't have any AMD FX now for testing.

Test Plan

Smoke test: build kernel on AMD Ryzen.
Run: Linux Fedora and FreeBSD HEAD as guest.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 20445
Build 19882: arc lint + arc unit

Event Timeline

I am good with this too, other than it is not emulating it, it is just ignoring it by returning a 0, which may or may not have future implications.

This revision is now accepted and ready to land.Oct 26 2018, 1:06 PM
rgrimes added a reviewer: bhyve.

Sorry for the extra noise here, I did not mean to accept it as bhvye, only me personally, so did delete/add bhyve umbrella to clear that bit.

This revision was automatically updated to reflect the committed changes.
anish added inline comments.
head/sys/amd64/vmm/amd/svm_msr.c
130 ↗(On Diff #49787)

This cases could have been merged with upper block, something like

 case MSR_MTRR64kBase:
 case MSR_SYSCFG:
 case MSR_AMDK8_IPM:
case MSR_EXTFEATURES:
         *result = 0;
         break;
araujo added inline comments.
head/sys/amd64/vmm/amd/svm_msr.c
130 ↗(On Diff #49787)