aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-05-10 05:34:53 -0400
committerAvi Kivity <avi@redhat.com>2010-08-01 03:47:05 -0400
commita8eeb04a44dd6dc4c8158953d9bae48849c9a188 (patch)
tree70274957d251afb17c8aaf660363795b44bf993f /arch/x86/kvm/mmu.c
parent36633f32ba4c238403d19584754b30fe469d6dcb (diff)
KVM: Add mini-API for vcpu->requests
Makes it a little more readable and hackable. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r--arch/x86/kvm/mmu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index c5501bc10106..690a7fc58c17 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -1378,7 +1378,7 @@ static struct kvm_mmu_page *kvm_mmu_get_page(struct kvm_vcpu *vcpu,
1378 1378
1379 mmu_page_add_parent_pte(vcpu, sp, parent_pte); 1379 mmu_page_add_parent_pte(vcpu, sp, parent_pte);
1380 if (sp->unsync_children) { 1380 if (sp->unsync_children) {
1381 set_bit(KVM_REQ_MMU_SYNC, &vcpu->requests); 1381 kvm_make_request(KVM_REQ_MMU_SYNC, vcpu);
1382 kvm_mmu_mark_parents_unsync(sp); 1382 kvm_mmu_mark_parents_unsync(sp);
1383 } else if (sp->unsync) 1383 } else if (sp->unsync)
1384 kvm_mmu_mark_parents_unsync(sp); 1384 kvm_mmu_mark_parents_unsync(sp);
@@ -2131,7 +2131,7 @@ static int mmu_check_root(struct kvm_vcpu *vcpu, gfn_t root_gfn)
2131 int ret = 0; 2131 int ret = 0;
2132 2132
2133 if (!kvm_is_visible_gfn(vcpu->kvm, root_gfn)) { 2133 if (!kvm_is_visible_gfn(vcpu->kvm, root_gfn)) {
2134 set_bit(KVM_REQ_TRIPLE_FAULT, &vcpu->requests); 2134 kvm_make_request(KVM_REQ_TRIPLE_FAULT, vcpu);
2135 ret = 1; 2135 ret = 1;
2136 } 2136 }
2137 2137
@@ -2329,7 +2329,7 @@ static int nonpaging_init_context(struct kvm_vcpu *vcpu)
2329void kvm_mmu_flush_tlb(struct kvm_vcpu *vcpu) 2329void kvm_mmu_flush_tlb(struct kvm_vcpu *vcpu)
2330{ 2330{
2331 ++vcpu->stat.tlb_flush; 2331 ++vcpu->stat.tlb_flush;
2332 set_bit(KVM_REQ_TLB_FLUSH, &vcpu->requests); 2332 kvm_make_request(KVM_REQ_TLB_FLUSH, vcpu);
2333} 2333}
2334 2334
2335static void paging_new_cr3(struct kvm_vcpu *vcpu) 2335static void paging_new_cr3(struct kvm_vcpu *vcpu)