]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Use vmx to inject real-mode interrupts
authorAvi Kivity <avi@qumranet.com>
Thu, 8 Nov 2007 16:19:20 +0000 (18:19 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:00 +0000 (17:53 +0200)
commita010b0330748001d89bc9646ae53222d59597539
tree74ea5711aa9884aa5bee97282c52c32659aca53a
parent655bc532ff8ae3ad3c69b0aaa42efcce4a305795
KVM: VMX: Use vmx to inject real-mode interrupts

Instead of injecting real-mode interrupts by writing the interrupt frame into
guest memory, abuse vmx by injecting a software interrupt.  We need to
pretend the software interrupt instruction had a length > 0, so we have to
adjust rip backward.

This lets us not to mess with writing guest memory, which is complex and also
sleeps.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/vmx.c
drivers/kvm/vmx.h