diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2007-09-09 07:10:57 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-13 04:18:27 -0400 |
commit | c9a1185c945c8db3185ad40092963cbb39192e31 (patch) | |
tree | f3125cea5f345710a0074a1f7c9c54e0d2cbe71e /drivers/kvm | |
parent | 380102c8e431ba8b25a5b3a29e4529ca02ede4c8 (diff) |
KVM: Remove the unused invlpg member of struct kvm_arch_ops.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm')
-rw-r--r-- | drivers/kvm/kvm.h | 1 | ||||
-rw-r--r-- | drivers/kvm/svm.c | 6 |
2 files changed, 0 insertions, 7 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 5e318b6e215f..7c353524af2b 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -487,7 +487,6 @@ struct kvm_arch_ops { | |||
487 | unsigned long (*get_rflags)(struct kvm_vcpu *vcpu); | 487 | unsigned long (*get_rflags)(struct kvm_vcpu *vcpu); |
488 | void (*set_rflags)(struct kvm_vcpu *vcpu, unsigned long rflags); | 488 | void (*set_rflags)(struct kvm_vcpu *vcpu, unsigned long rflags); |
489 | 489 | ||
490 | void (*invlpg)(struct kvm_vcpu *vcpu, gva_t addr); | ||
491 | void (*tlb_flush)(struct kvm_vcpu *vcpu); | 490 | void (*tlb_flush)(struct kvm_vcpu *vcpu); |
492 | void (*inject_page_fault)(struct kvm_vcpu *vcpu, | 491 | void (*inject_page_fault)(struct kvm_vcpu *vcpu, |
493 | unsigned long addr, u32 err_code); | 492 | unsigned long addr, u32 err_code); |
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index 3de9ec35ebf9..dbd4e813cbe4 100644 --- a/drivers/kvm/svm.c +++ b/drivers/kvm/svm.c | |||
@@ -881,11 +881,6 @@ static void new_asid(struct vcpu_svm *svm, struct svm_cpu_data *svm_data) | |||
881 | svm->vmcb->control.asid = svm_data->next_asid++; | 881 | svm->vmcb->control.asid = svm_data->next_asid++; |
882 | } | 882 | } |
883 | 883 | ||
884 | static void svm_invlpg(struct kvm_vcpu *vcpu, gva_t address) | ||
885 | { | ||
886 | invlpga(address, to_svm(vcpu)->vmcb->control.asid); // is needed? | ||
887 | } | ||
888 | |||
889 | static unsigned long svm_get_dr(struct kvm_vcpu *vcpu, int dr) | 884 | static unsigned long svm_get_dr(struct kvm_vcpu *vcpu, int dr) |
890 | { | 885 | { |
891 | return to_svm(vcpu)->db_regs[dr]; | 886 | return to_svm(vcpu)->db_regs[dr]; |
@@ -1795,7 +1790,6 @@ static struct kvm_arch_ops svm_arch_ops = { | |||
1795 | .get_rflags = svm_get_rflags, | 1790 | .get_rflags = svm_get_rflags, |
1796 | .set_rflags = svm_set_rflags, | 1791 | .set_rflags = svm_set_rflags, |
1797 | 1792 | ||
1798 | .invlpg = svm_invlpg, | ||
1799 | .tlb_flush = svm_flush_tlb, | 1793 | .tlb_flush = svm_flush_tlb, |
1800 | .inject_page_fault = svm_inject_page_fault, | 1794 | .inject_page_fault = svm_inject_page_fault, |
1801 | 1795 | ||