summaryrefslogtreecommitdiffstats
path: root/drivers/kvm/svm.c
diff options
context:
space:
mode:
authorMichal Piotrowski <michal.k.k.piotrowski@gmail.com>2007-03-25 17:59:32 +0200
committerAvi Kivity <avi@qumranet.com>2007-05-03 09:52:27 +0200
commit55bf4028342d96b21fe5dc0721b481b0bc1e81f6 (patch)
treef2da612009ae1e8a4d5919c5a8749a75a5ca275c /drivers/kvm/svm.c
parentKVM: SVM: Ensure timestamp counter monotonicity (diff)
downloadlinux-55bf4028342d96b21fe5dc0721b481b0bc1e81f6.tar.xz
linux-55bf4028342d96b21fe5dc0721b481b0bc1e81f6.zip
KVM: Remove unused function
Remove unused function CC drivers/kvm/svm.o drivers/kvm/svm.c:207: warning: ‘inject_db’ defined but not used Signed-off-by: Michal Piotrowski <michal.k.k.piotrowski@gmail.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r--drivers/kvm/svm.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c
index ca2642fc091f..303e95957e7b 100644
--- a/drivers/kvm/svm.c
+++ b/drivers/kvm/svm.c
@@ -203,13 +203,6 @@ static void inject_ud(struct kvm_vcpu *vcpu)
UD_VECTOR;
}
-static void inject_db(struct kvm_vcpu *vcpu)
-{
- vcpu->svm->vmcb->control.event_inj = SVM_EVTINJ_VALID |
- SVM_EVTINJ_TYPE_EXEPT |
- DB_VECTOR;
-}
-
static int is_page_fault(uint32_t info)
{
info &= SVM_EVTINJ_VEC_MASK | SVM_EVTINJ_TYPE_MASK | SVM_EVTINJ_VALID;