aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm
diff options
context:
space:
mode:
authorMichal Piotrowski <michal.k.k.piotrowski@gmail.com>2007-03-25 11:59:32 -0400
committerAvi Kivity <avi@qumranet.com>2007-05-03 03:52:27 -0400
commit55bf4028342d96b21fe5dc0721b481b0bc1e81f6 (patch)
treef2da612009ae1e8a4d5919c5a8749a75a5ca275c /drivers/kvm
parent0cc5064d335543a72c5ef904a3f528966fa3f2d2 (diff)
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')
-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)
203 UD_VECTOR; 203 UD_VECTOR;
204} 204}
205 205
206static void inject_db(struct kvm_vcpu *vcpu)
207{
208 vcpu->svm->vmcb->control.event_inj = SVM_EVTINJ_VALID |
209 SVM_EVTINJ_TYPE_EXEPT |
210 DB_VECTOR;
211}
212
213static int is_page_fault(uint32_t info) 206static int is_page_fault(uint32_t info)
214{ 207{
215 info &= SVM_EVTINJ_VEC_MASK | SVM_EVTINJ_TYPE_MASK | SVM_EVTINJ_VALID; 208 info &= SVM_EVTINJ_VEC_MASK | SVM_EVTINJ_TYPE_MASK | SVM_EVTINJ_VALID;