+13
−3
Loading
mainline inclusion from mainline-v6.11-rc1 commit 2f56f9ea4dc3892c1265751a1c09038f365107ed category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IAZJDO CVE: NA -------------------------------- Currently page level selection about secondary mmu depends on memory slot and page level about host mmu. There will be problems if page level of secondary mmu is zero already. Huge page cannot be selected if there is normal page mapped in secondary mmu already, since it is not supported to merge normal pages into huge pages now. So page level selection should depend on the following three conditions. 1. Memslot is aligned for huge page and vm is not migrating. 2. Page level of host mmu is also huge page. 3. Page level of secondary mmu is suituable for huge page. Signed-off-by:Bibo Mao <maobibo@loongson.cn> Signed-off-by:
Huacai Chen <chenhuacai@loongson.cn> Signed-off-by:
Xianglai Li <lixianglai@loongson.cn>