diff options
author | Avi Kivity <avi@redhat.com> | 2011-04-20 08:38:44 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-05-22 08:39:15 -0400 |
commit | 3cb16fe78ce91991a876c74fc5dc99419b737b7a (patch) | |
tree | ff534615110fac70fd2cf60e4d9588be3067d862 /arch/x86/kvm/emulate.c | |
parent | 2d04a05bd7e93c13f13a82ac40de4065a99d069b (diff) |
KVM: x86 emulator: make emulate_invlpg() an emulator callback
Removing direct calls to KVM.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/emulate.c')
-rw-r--r-- | arch/x86/kvm/emulate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 2b903a326096..5d774e91388e 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -2573,7 +2573,7 @@ static int em_invlpg(struct x86_emulate_ctxt *ctxt) | |||
2573 | 2573 | ||
2574 | rc = linearize(ctxt, c->src.addr.mem, 1, false, &linear); | 2574 | rc = linearize(ctxt, c->src.addr.mem, 1, false, &linear); |
2575 | if (rc == X86EMUL_CONTINUE) | 2575 | if (rc == X86EMUL_CONTINUE) |
2576 | emulate_invlpg(ctxt->vcpu, linear); | 2576 | ctxt->ops->invlpg(ctxt, linear); |
2577 | /* Disable writeback. */ | 2577 | /* Disable writeback. */ |
2578 | c->dst.type = OP_NONE; | 2578 | c->dst.type = OP_NONE; |
2579 | return X86EMUL_CONTINUE; | 2579 | return X86EMUL_CONTINUE; |