Skip to content

unit-tests: Add tests to measure svm instruction latencys

Joerg Roedel kvm 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2svm: Add VMRUN/VMEXIT latency testx86/svm.c+81 -00 replies
2/2svm: Add VMLOAD/VMSAVE latency testx86/svm.c+52 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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: 1955

latency_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