diff options
author | 2014-06-18 17:19:24 +0300 | |
---|---|---|
committer | 2014-06-19 12:52:14 +0200 | |
commit | a449c7aa51e10c9bde0ea9bee4e682d6d067ebab (patch) | |
tree | 3689ce719fd1bb431d1a250691b474ca2021a91a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: x86: check DR6/7 high-bits are clear only on long-mode (diff) | |
download | linux-dev-a449c7aa51e10c9bde0ea9bee4e682d6d067ebab.tar.xz linux-dev-a449c7aa51e10c9bde0ea9bee4e682d6d067ebab.zip |
KVM: x86: Hypercall handling does not considers opsize correctly
Currently, the hypercall handling routine only considers LME as an indication
to whether the guest uses 32/64-bit mode. This is incosistent with hyperv
hypercalls handling and against the common sense of considering cs.l as well.
This patch uses is_64_bit_mode instead of is_long_mode for that matter. In
addition, the result is masked in respect to the guest execution mode. Last, it
changes kvm_hv_hypercall to use is_64_bit_mode as well to simplify the code.
Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions