KVM: Introduce {set/get}_interrupt_shadow()
commitd4a81389f6643898ecd2f7f5976fd59f37d65e54
authorGlauber Costa <glommer@redhat.com>
Mon, 3 Aug 2009 17:57:52 +0000 (3 14:57 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:33:30 +0000 (8 20:33 -0700)
tree318dd2ade9a65315cf33c0932fc11230edaa2665
parent038851e38586ded536dca8349dc8457c0d21f674
KVM: Introduce {set/get}_interrupt_shadow()

This patch introduces set/get_interrupt_shadow(), that does exactly
what the name suggests. It also replaces open code that explicitly does
it with the now existent functions. It differs slightly from upstream,
because upstream merged it after gleb's interrupt rework, that we don't
ship.

Just for reference, upstream changelog is
(2809f5d2c4cfad171167b131bb2a21ab65eba40f):

This patch replaces drop_interrupt_shadow with the more
general set_interrupt_shadow, that can either drop or raise
it, depending on its parameter.  It also adds ->get_interrupt_shadow()
for future use.

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/include/asm/kvm_host.h
arch/x86/include/asm/kvm_x86_emulate.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c