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)
Tue, Apr 30, 6:27 PM
Unknown Object (File)
Tue, Apr 30, 6:26 PM
Unknown Object (File)
Tue, Apr 30, 6:26 PM
Unknown Object (File)
Tue, Apr 30, 6:24 PM
Unknown Object (File)
Tue, Apr 30, 3:45 PM
Unknown Object (File)
Thu, Apr 25, 5:57 PM
Unknown Object (File)
Thu, Apr 25, 7:47 AM
Unknown Object (File)
Thu, Apr 25, 7:10 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

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

grehan added inline comments.
sys/amd64/vmm/vmm_util.h
38

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

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.