!26 在dpvs场景适配内存页读写的控制

From: @sunsuwan 
Reviewed-by: @jia_zhenyuan, @xiexiuqi 
Signed-off-by: @xiexiuqi
This commit is contained in:
openeuler-ci-bot 2022-11-02 14:14:47 +00:00 committed by Gitee
commit 30ed944e56
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 6 additions and 3 deletions

View File

@ -224,7 +224,7 @@ index 487ace3..931607d 100644
+ ro_enable = 0;
+ }
+#else
+ if (pte->pte & ~_PAGE_RW) {
+ if (pte->pte & _PAGE_RW) {
+ ro_enable = 0;
+ }
+#endif
@ -268,7 +268,7 @@ index 487ace3..931607d 100644
+ __sync_icache_dcache(*pte);
+ flush_tlb_all();
+#else
+ pte->pte |= pte->pte &~_PAGE_RW;
+ pte->pte &= ~_PAGE_RW;
+#endif
}

View File

@ -5,7 +5,7 @@
Name: TCP_option_address
Summary: Intel(R) Ethernet Adaptive Virtual Function Driver
Version: 1.0.0
Release: 5
Release: 6
#Release: 0.%{krelver}
Vendor: Huawei
License: GPL-2.0
@ -107,6 +107,9 @@ else
fi
%changelog
* Wed Nov 2 2022 sunsuwan<sunsuwan3@huawei.com> - 1.0.0-6
- fix crash in x86 because memory page error
* Tue Nov 1 2022 sunsuwan<sunsuwan3@huawei.com> - 1.0.0-5
- add sysctl to change opcode dynamic