Return NOT_SUPPORT for set function in VM guest

Fix the unit tests which are fail in VM guest environment.

Change-Id: Id7c58887692bbdecba54f5d2d8463b292e19b4ad
This commit is contained in:
Bill(Shuzhou) Liu authored and Galantsev, Dmitrii committed 2024-01-17 11:18:25 -06:00
1 parent 147af192b5
commit a0ec98c30d
3 files changed
+29

No files matched your search

+4
View File
@@ -277,6 +277,10 @@ class ScopedAcquire {
DISALLOW_COPY_AND_ASSIGN(ScopedAcquire)
};
// The best effort way to decide whether it is in VM guest environment:
// In VM environment, the /proc/cpuinfo set hypervisor flag by default
bool is_vm_guest();
} // namespace smi
} // namespace amd