aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_emulate.h
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2011-04-04 06:39:25 -0400
committerAvi Kivity <avi@redhat.com>2011-05-11 07:57:01 -0400
commitd09beabd7cd4cf70d982ff54656dc6431df80fa4 (patch)
treebfb3d5996f6d2b51d79e0ccc543cbe63d9eaba01 /arch/x86/include/asm/kvm_emulate.h
parent775fde8648ebc588d07de39457aadc7c2131df2e (diff)
KVM: x86 emulator: Add check_perm callback
This patch adds a check_perm callback for each opcode into the instruction emulator. This will be used to do all necessary permission checks on instructions before checking whether they are intercepted or not. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_emulate.h')
-rw-r--r--arch/x86/include/asm/kvm_emulate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h
index 1dbd0c736cd..460c2d8964b 100644
--- a/arch/x86/include/asm/kvm_emulate.h
+++ b/arch/x86/include/asm/kvm_emulate.h
@@ -222,6 +222,7 @@ struct decode_cache {
222 u8 seg_override; 222 u8 seg_override;
223 unsigned int d; 223 unsigned int d;
224 int (*execute)(struct x86_emulate_ctxt *ctxt); 224 int (*execute)(struct x86_emulate_ctxt *ctxt);
225 int (*check_perm)(struct x86_emulate_ctxt *ctxt);
225 unsigned long regs[NR_VCPU_REGS]; 226 unsigned long regs[NR_VCPU_REGS];
226 unsigned long eip; 227 unsigned long eip;
227 /* modrm */ 228 /* modrm */