MCPcopy
hub / github.com/AsahiLinux/m1n1 / test_hv_timers

Function test_hv_timers

proxyclient/experiments/timer_test.py:33–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 u.msr(ctl, 0)
32
33def test_hv_timers():
34 u.msr(DAIF, 0x3c0)
35 print("Testing HV timers...")
36 print(" TGE = 1")
37
38 u.msr(HCR_EL2, u.mrs(HCR_EL2) | TGE | (1 << 3) | (1 << 4))
39
40 print(" P:")
41 run_test(CNTP_CTL_EL0, CNTP_TVAL_EL0)
42 print(" V:")
43 run_test(CNTV_CTL_EL0, CNTV_TVAL_EL0)
44
45def test_guest_timers():
46 u.msr(DAIF, 0)

Callers 1

timer_test.pyFile · 0.85

Calls 3

run_testFunction · 0.85
msrMethod · 0.80
mrsMethod · 0.80

Tested by

no test coverage detected