summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorNadav Amit <namit@cs.technion.ac.il>2014-11-02 11:54:46 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2014-11-07 15:44:04 +0100
commitb5bbf10ee6b65b70c10c139822bc2dc077cefa76 (patch)
treea0a2290fb8abe5cf8feed46117a2876886bb4702 /tools/perf/scripts/python/net_dropmonitor.py
parent82b32774c2d00c0a12ab182c67e32e0b5e5e580a (diff)
KVM: x86: Emulation of MOV-sreg to memory uses incorrect size
In x86, you can only MOV-sreg to memory with either 16-bits or 64-bits size. In contrast, KVM may write to 32-bits memory on MOV-sreg. This patch fixes KVM behavior, and sets the destination operand size to two, if the destination is memory. When destination is registers, and the operand size is 32-bits, the high 16-bits in modern CPUs is filled with zero. This is handled correctly. 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/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions