Skip to contentSkip to conversation

x86: svm: fix typo in setting up nested page tables

PATCH New Paolo Bonzini 1 participant 1 message Sep 1, 2014 KVM

lore
Share & tools
lore

Paolo Bonzini

author maintainer
#0 lore raw

PATCH 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.

---
 x86/svm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
x86/svm.c +1 -1
index 1e6908a..00b3191 100644
@@ -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