unit-tests: Add tests to measure svm instruction latencys
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | svm: Add VMRUN/VMEXIT latency testx86/ | +81 | 0 replies | |
| 2/2 | svm: Add VMLOAD/VMSAVE latency testx86/ | +52 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] unit-tests: Add tests to measure svm instruction latencys
Hi,
here are two patches for the svm unit-test framework that measure the latency of the emulated vmrun, vmload, and vmsave instructions as well as the latency of emulated vmexits.
On my Phenom II X6 1090T running in P0 it produces output like this:
Latency VMRUN : max: 140956 min: 6770 avg: 6819
Latency VMEXIT: max: 141042 min: 7475 avg: 7575
latency_run_exit: PASS
Latency VMLOAD: max: 23248 min: 1915 avg: 1925
Latency VMSAVE: max: 130888 min: 1917 avg: 1955latency_load_save: PASS
These two tests report the tsc-cycles between events. Each latency is measured one million times (which explains the large -max values).
Joerg