]> www.infradead.org Git - users/dwmw2/linux.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>
Mon, 15 Dec 2008 12:46:17 +0000 (14:46 +0200)
commitacf996563d3f048d1b6e88f070e45139014b7ed4
tree16b46895c8b7f72e0df70734b79317475a0ded14
parentf320f52e87a554cf6eed69c3c19180bb28dd0a33
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