提交 18699739 编写于 作者: A Andrea Arcangeli 提交者: Ingo Molnar

x86/mm/cpa/selftest: Fix false positive in CPA self test

If the pmd is not present, _PAGE_PSE will not be set anymore.
Fix the false positive.
Reported-by: NIngo Molnar <mingo@kernel.org>
Signed-off-by: NAndrea Arcangeli <aarcange@redhat.com>
Cc: Stefan Bader <stefan.bader@canonical.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Borislav Petkov <bp@alien8.de>
Link: http://lkml.kernel.org/r/1365687369-30802-1-git-send-email-aarcange@redhat.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
上级 f76cfa3c
...@@ -68,7 +68,7 @@ static int print_split(struct split_state *s) ...@@ -68,7 +68,7 @@ static int print_split(struct split_state *s)
s->gpg++; s->gpg++;
i += GPS/PAGE_SIZE; i += GPS/PAGE_SIZE;
} else if (level == PG_LEVEL_2M) { } else if (level == PG_LEVEL_2M) {
if (!(pte_val(*pte) & _PAGE_PSE)) { if ((pte_val(*pte) & _PAGE_PRESENT) && !(pte_val(*pte) & _PAGE_PSE)) {
printk(KERN_ERR printk(KERN_ERR
"%lx level %d but not PSE %Lx\n", "%lx level %d but not PSE %Lx\n",
addr, level, (u64)pte_val(*pte)); addr, level, (u64)pte_val(*pte));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册