]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: x86: Breakpoints do not consider CS.base
authorNadav Amit <namit@cs.technion.ac.il>
Sun, 2 Nov 2014 09:54:45 +0000 (11:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Nov 2014 14:44:04 +0000 (15:44 +0100)
commit82b32774c2d00c0a12ab182c67e32e0b5e5e580a
tree4952f26cbee010060c1b447216cc60961b9edee5
parent7305eb5d8cf147ce4178e723c95de15e2f001429
KVM: x86: Breakpoints do not consider CS.base

x86 debug registers hold a linear address. Therefore, breakpoints detection
should consider CS.base, and check whether instruction linear address equals
(CS.base + RIP). This patch introduces a function to evaluate RIP linear
address and uses it for breakpoints detection.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c