]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: x86 emulator: add syscall emulation
authorAndre Przywara <andre.przywara@amd.com>
Thu, 18 Jun 2009 10:56:00 +0000 (12:56 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:33:00 +0000 (08:33 +0300)
commite66bb2ccdcf76d032bbb464b35c292bb3ee58f9b
treeffbab094c421d8616b12855a3ac137919e64c8cf
parente99f0507125f45b723a9069e9e854c3c4758e7ba
KVM: x86 emulator: add syscall emulation

Handle #UD intercept of the syscall instruction in 32bit compat mode on
an Intel host.
Setup the segment descriptors for CS and SS and the EIP/ESP registers
according to the manual. Save the RIP and EFLAGS to the correct registers.

[avi: fix build on i386 due to missing R11]

Signed-off-by: Christoph Egger <christoph.egger@amd.com>
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86_emulate.c