x86: svm: fix typo in setting up nested page tables
Paolo Bonzini
maintainerPATCH 1/1 x86: svm: fix typo in setting up nested page tables
This will cause problems when accessing memory above the first GB, as in the l1mmio test.
Signed-off-by Paolo Bonzini <[email protected]>
--- x86/svm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
x86/svm.c +1 -1
@@ -87,7 +87,7 @@ static void setup_svm(void) page =alloc_page ();for (j =0 ; j <512 ; ++j) - page[j] = (u64 )pte[(i *514 ) + j] |0x027ULL ; + page[j] = (u64 )pte[(i *512 ) + j] |0x027ULL ; pde[i] = page; }
Signature · 1 line
1.7.1