diff options
author | Wanpeng Li <[email protected]> | 2017-11-05 16:54:47 -0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2017-11-17 13:20:12 +0100 |
commit | 3853be2603191829b442b64dac6ae8ba0c027bf9 (patch) | |
tree | 27838e10a5ee8df4c108c28c964849ddd64d7dbb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9b8ae63798cb97e785a667ff27e43fa6220cb734 (diff) |
KVM: X86: Fix operand/address-size during instruction decoding
Pedro reported:
During tests that we conducted on KVM, we noticed that executing a "PUSH %ES"
instruction under KVM produces different results on both memory and the SP
register depending on whether EPT support is enabled. With EPT the SP is
reduced by 4 bytes (and the written value is 0-padded) but without EPT support
it is only reduced by 2 bytes. The difference can be observed when the CS.DB
field is 1 (32-bit) but not when it's 0 (16-bit).
The internal segment descriptor cache exist even in real/vm8096 mode. The CS.D
also should be respected instead of just default operand/address-size/66H
prefix/67H prefix during instruction decoding. This patch fixes it by also
adjusting operand/address-size according to CS.D.
Reported-by: Pedro Fonseca <[email protected]>
Tested-by: Pedro Fonseca <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Radim Krčmář <[email protected]>
Cc: Nadav Amit <[email protected]>
Cc: Pedro Fonseca <[email protected]>
Signed-off-by: Wanpeng Li <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Signed-off-by: Radim Krčmář <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions