Skip to content

Commit

Permalink
KVM: Remove unused function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michal Piotrowski authored and Avi Kivity committed May 3, 2007
1 parent 0cc5064 commit 55bf402
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 55bf402

Please sign in to comment.