xref: /xnu-12377.81.4/tests/apple_generic_timer_vmm.c (revision 043036a2b3718f7f0be807e2870f8f47d3fa0796)
1*043036a2SApple OSS Distributions #include <darwintest.h>
2*043036a2SApple OSS Distributions #include <sys/sysctl.h>
3*043036a2SApple OSS Distributions #include "apple_generic_timer.h"
4*043036a2SApple OSS Distributions #include "test_utils.h"
5*043036a2SApple OSS Distributions 
6*043036a2SApple OSS Distributions T_GLOBAL_META(
7*043036a2SApple OSS Distributions 	T_META_NAMESPACE("xnu.arm"),
8*043036a2SApple OSS Distributions 	T_META_RADAR_COMPONENT_NAME("xnu"),
9*043036a2SApple OSS Distributions 	T_META_RADAR_COMPONENT_VERSION("arm"),
10*043036a2SApple OSS Distributions 	T_META_ENABLED(TARGET_CPU_ARM64),
11*043036a2SApple OSS Distributions 	T_META_OWNER("xi_han"),
12*043036a2SApple OSS Distributions 	T_META_RUN_CONCURRENTLY(true),
13*043036a2SApple OSS Distributions 	XNU_T_META_SOC_SPECIFIC
14*043036a2SApple OSS Distributions 	);
15*043036a2SApple OSS Distributions 
16*043036a2SApple OSS Distributions T_DECL(apple_generic_timer_vmm,
17*043036a2SApple OSS Distributions     "Test that CNTFRQ_EL0 reads the correct frequency when built with old SDKs",
18*043036a2SApple OSS Distributions     T_META_REQUIRES_SYSCTL_EQ("kern.hv.supported", 1))
19*043036a2SApple OSS Distributions {
20*043036a2SApple OSS Distributions 	/**
21*043036a2SApple OSS Distributions 	 * Here we are only testing Host-EL0 behavior.
22*043036a2SApple OSS Distributions 	 *
23*043036a2SApple OSS Distributions 	 * The hvtests in Virtualization project should test Guest behaviors.
24*043036a2SApple OSS Distributions 	 */
25*043036a2SApple OSS Distributions 	agt_test_helper(false);
26*043036a2SApple OSS Distributions }
27