提交 c9a1185c 编写于 作者: R Rusty Russell 提交者: Avi Kivity

KVM: Remove the unused invlpg member of struct kvm_arch_ops.

Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: NAvi Kivity <avi@qumranet.com>
上级 380102c8
...@@ -487,7 +487,6 @@ struct kvm_arch_ops { ...@@ -487,7 +487,6 @@ struct kvm_arch_ops {
unsigned long (*get_rflags)(struct kvm_vcpu *vcpu); unsigned long (*get_rflags)(struct kvm_vcpu *vcpu);
void (*set_rflags)(struct kvm_vcpu *vcpu, unsigned long rflags); void (*set_rflags)(struct kvm_vcpu *vcpu, unsigned long rflags);
void (*invlpg)(struct kvm_vcpu *vcpu, gva_t addr);
void (*tlb_flush)(struct kvm_vcpu *vcpu); void (*tlb_flush)(struct kvm_vcpu *vcpu);
void (*inject_page_fault)(struct kvm_vcpu *vcpu, void (*inject_page_fault)(struct kvm_vcpu *vcpu,
unsigned long addr, u32 err_code); unsigned long addr, u32 err_code);
......
...@@ -881,11 +881,6 @@ static void new_asid(struct vcpu_svm *svm, struct svm_cpu_data *svm_data) ...@@ -881,11 +881,6 @@ static void new_asid(struct vcpu_svm *svm, struct svm_cpu_data *svm_data)
svm->vmcb->control.asid = svm_data->next_asid++; svm->vmcb->control.asid = svm_data->next_asid++;
} }
static void svm_invlpg(struct kvm_vcpu *vcpu, gva_t address)
{
invlpga(address, to_svm(vcpu)->vmcb->control.asid); // is needed?
}
static unsigned long svm_get_dr(struct kvm_vcpu *vcpu, int dr) static unsigned long svm_get_dr(struct kvm_vcpu *vcpu, int dr)
{ {
return to_svm(vcpu)->db_regs[dr]; return to_svm(vcpu)->db_regs[dr];
...@@ -1795,7 +1790,6 @@ static struct kvm_arch_ops svm_arch_ops = { ...@@ -1795,7 +1790,6 @@ static struct kvm_arch_ops svm_arch_ops = {
.get_rflags = svm_get_rflags, .get_rflags = svm_get_rflags,
.set_rflags = svm_set_rflags, .set_rflags = svm_set_rflags,
.invlpg = svm_invlpg,
.tlb_flush = svm_flush_tlb, .tlb_flush = svm_flush_tlb,
.inject_page_fault = svm_inject_page_fault, .inject_page_fault = svm_inject_page_fault,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册