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, Nov 25, 8:09 AM
Unknown Object (File)
Nov 19 2024, 4:51 AM
Unknown Object (File)
Oct 18 2024, 2:51 AM
Unknown Object (File)
Oct 17 2024, 4:34 AM
Unknown Object (File)
Sep 16 2024, 8:36 PM
Unknown Object (File)
Sep 8 2024, 4:44 AM
Unknown Object (File)
Sep 4 2024, 3:51 PM
Unknown Object (File)
Sep 3 2024, 11:14 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.