Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252090
b: refs/heads/master
c: a99ac5e
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed May 20, 2011
1 parent b553da0 commit ef647da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 331468b11b94428a9eb2ed8b3240c17612533a99
refs/heads/master: a99ac5e8619c27dbb8e7fb5a4e0ca8c8aa214909
26 changes: 11 additions & 15 deletions trunk/arch/x86/xen/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,22 +342,18 @@ void xen_set_pte_at(struct mm_struct *mm, unsigned long addr,
ADD_STATS(set_pte_at_current, mm == current->mm);
ADD_STATS(set_pte_at_kernel, mm == &init_mm);

if (mm == current->mm || mm == &init_mm) {
if (paravirt_get_lazy_mode() == PARAVIRT_LAZY_MMU) {
struct multicall_space mcs;
mcs = xen_mc_entry(0);

MULTI_update_va_mapping(mcs.mc, addr, pteval, 0);
ADD_STATS(set_pte_at_batched, 1);
xen_mc_issue(PARAVIRT_LAZY_MMU);
goto out;
} else
if (HYPERVISOR_update_va_mapping(addr, pteval, 0) == 0)
goto out;
}
xen_set_pte(ptep, pteval);
if(paravirt_get_lazy_mode() == PARAVIRT_LAZY_MMU) {
struct mmu_update u;

xen_mc_batch();

u.ptr = virt_to_machine(ptep).maddr | MMU_NORMAL_PT_UPDATE;
u.val = pte_val_ma(pteval);
xen_extend_mmu_update(&u);

out: return;
xen_mc_issue(PARAVIRT_LAZY_MMU);
} else
native_set_pte(ptep, pteval);
}

pte_t xen_ptep_modify_prot_start(struct mm_struct *mm,
Expand Down

0 comments on commit ef647da

Please sign in to comment.