]> git.karo-electronics.de Git - linux-beck.git/commit
KVM: SVM: Clean up VINTR setting
authorAlexander Graf <agraf@suse.de>
Tue, 25 Nov 2008 19:17:01 +0000 (20:17 +0100)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:02:45 +0000 (11:02 +0200)
commitf0b85051d0f0891378a83db22c0786f1d756fbff
tree116254e323aaebf37bb46d2c17d7e3654814e46b
parent8e0ee43bc2c3e19db56a4adaa9a9b04ce885cd84
KVM: SVM: Clean up VINTR setting

The current VINTR intercept setters don't look clean to me. To make
the code easier to read and enable the possibilty to trap on a VINTR
set, this uses a helper function to set the VINTR intercept.

v2 uses two distinct functions for setting and clearing the bit

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/kvm/svm.c