]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: Allow accessing IDT via emulator ops
authorMohammed Gamal <m.gamal005@gmail.com>
Wed, 4 Aug 2010 02:44:24 +0000 (05:44 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:59 +0000 (10:50 +0200)
commita743d97ab73497dbaa49670bf859b9b30d934b6d
treed77a95e2e7e28a5df2520fd904109fbc996f95f0
parent176f7d9e3e986ec8f17425683d5f85c1ec0f309e
KVM: x86 emulator: Allow accessing IDT via emulator ops

The patch adds a new member get_idt() to x86_emulate_ops.
It also adds a function to get the idt in order to be used by the emulator.

This is needed for real mode interrupt injection and the emulation of int
instructions.

Signed-off-by: Mohammed Gamal <m.gamal005@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/x86.c