]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Implement GIF, clgi and stgi
authorAlexander Graf <agraf@suse.de>
Tue, 25 Nov 2008 19:17:04 +0000 (20:17 +0100)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:02:46 +0000 (11:02 +0200)
commit5b2a76ce60622e8d2689fe0c009cff586392acda
tree2f1f8d6bf0cd55e253784a061332c02e8e2d9e9d
parent3b98871f45ddc97e4b8d2a2c2f7a7def34461b2f
KVM: SVM: Implement GIF, clgi and stgi

This patch implements the GIF flag and the clgi and stgi instructions that
set this flag. Only if the flag is set (default), interrupts can be received by
the CPU.

To keep the information about that somewhere, this patch adds a new hidden
flags vector. that is used to store information that does not go into the
vmcb, but is SVM specific.

I tried to write some code to make -no-kvm-irqchip work too, but the first
level guest won't even boot with that atm, so I ditched it.

v2 moves the hflags to x86 generic code
v3 makes use of the new permission helper
v6 only enables interrupt_window if GIF=1

Acked-by: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c