Page MenuHomeFreeBSD

vmm: Add Hygon Dhyana support
ClosedPublic

Authored by puwen_hygon.cn on Feb 7 2020, 10:27 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 15, 11:45 AM
Unknown Object (File)
Jan 11 2024, 9:44 PM
Unknown Object (File)
Jan 7 2024, 10:50 AM
Unknown Object (File)
Dec 20 2023, 1:58 AM
Unknown Object (File)
Nov 10 2023, 9:10 AM
Unknown Object (File)
Nov 10 2023, 3:54 AM
Unknown Object (File)
Nov 8 2023, 10:29 PM
Unknown Object (File)
Nov 8 2023, 9:12 AM

Details

Summary

The Hygon Dhyana processor has the SVM feature as AMD family 17h does.
To create VMs successfully on Hygon platforms, add Hygon Dhyana support
to the vmm infrastructure by sharing the code path of AMD family 17h.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

grehan added inline comments.
sys/amd64/vmm/vmm_util.h
38 ↗(On Diff #67916)

I think you could create a new function, vmm_is_svm(), and roll the AMD and Hygon check into that. The is_amd/is_hygon routines could be removed.

I agree with @grehan, vmm_is_svm is preferable rather than changing all cases to vmm_is_amd || vmm_is_hygon

I agree with @grehan, vmm_is_svm is preferable rather than changing all cases to vmm_is_amd || vmm_is_hygon

OK, will use vmm_is_svm instead.

sys/amd64/vmm/vmm_util.h
38 ↗(On Diff #67916)

OK, will add function vmm_is_svm().

Create a new function vmm_is_svm(), and roll the AMD and Hygon check into that.

This revision is now accepted and ready to land.Feb 13 2020, 5:08 PM
This revision was automatically updated to reflect the committed changes.