diff options
| author | David Matlack <[email protected]> | 2022-11-02 11:46:46 -0700 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2022-11-16 16:58:58 -0800 |
| commit | 48e59373398a554098863bc7a3d1350cd0d5c4d0 (patch) | |
| tree | 78fbe1d10197838ac64b06e6d5994c8eb4d9bc7f /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 52d3a4fb5be1579b0fb8d48f8abaf9a9c7db1083 (diff) | |
KVM: selftests: Explicitly require instructions bytes
Hard-code the flds instruction and assert the exact instruction bytes
are present in run->emulation_failure. The test already requires the
instruction bytes to be present because that's the only way the test
will advance the RIP past the flds and get to GUEST_DONE().
Note that KVM does not necessarily return exactly 2 bytes in
run->emulation_failure since it may not know the exact instruction
length in all cases. So just assert that
run->emulation_failure.insn_size is at least 2.
Signed-off-by: David Matlack <[email protected]>
Reviewed-by: Sean Christopherson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions