Skip to contentSkip to conversation

xen/mmu: set MMU_NORMAL_PT_UPDATE in remap_area_mfn_pte_fn

PATCH Applied Wei Liu 2 participants 2 messages Aug 29, 2017

Subsystems (2)
lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 xen/mmu: set MMU_NORMAL_PT_UPDATE in remap_area_mfn_pte_fn

No functional change because MMU_NORMAL_PT_UPDATE is in fact 0. Set it to make the code consistent with similar code in mmu_pv.c

---
 arch/x86/xen/mmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/xen/mmu.c +1 -1
index 3be06f3caf3c..3e15345abfe7 100644
@@ -84,7 +84,7 @@ static int remap_area_mfn_pte_fn(pte_t *ptep, pgtable_t token,
 	else
 		rmd->mfn++;
 
-	rmd->mmu_update->ptr = virt_to_machine(ptep).maddr;
+	rmd->mmu_update->ptr = virt_to_machine(ptep).maddr | MMU_NORMAL_PT_UPDATE;
 	rmd->mmu_update->val = pte_val_ma(pte);
 	rmd->mmu_update++;
 
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
reviewer Reviewed-by on v1 1/1 Applied
#1 lore raw
Quoted 13 lines · Wei Liu

No functional change because MMU_NORMAL_PT_UPDATE is in fact 0. Set it to make the code consistent with similar code in mmu_pv.c

---
 arch/x86/xen/mmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/xen/mmu.c +0 -0
index 3be06f3caf3c..3e15345abfe7 100644

arch/x86/xen/mmu.c static int remap_area_mfn_pte_fn(pte_t *ptep, pgtable_t token, · line 90

Quoted 8 lines
arch/x86/xen/mmu.c +1 -1
@@ -84,7 +84,7 @@ static int remap_area_mfn_pte_fn(pte_t *ptep, pgtable_t token,
 	else
 		rmd->mfn++;
 
-	rmd->mmu_update->ptr = virt_to_machine(ptep).maddr;
+	rmd->mmu_update->ptr = virt_to_machine(ptep).maddr | MMU_NORMAL_PT_UPDATE;
 	rmd->mmu_update->val = pte_val_ma(pte);
 	rmd->mmu_update++;
 

Applied to for-linus-4.14

-boris

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel