forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
0cc5064d33
commit
55bf402834
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user