]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: Add check_perm callback
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 4 Apr 2011 10:39:25 +0000 (12:39 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:57:01 +0000 (07:57 -0400)
commit7a8d7297fdcac135faaa4f0c464654444da4956b
treebfb3d5996f6d2b51d79e0ccc543cbe63d9eaba01
parenta2974ed4d64db121a0c9b20103000234e45290df
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>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c