Message ID | 1409588030-19946-2-git-send-email-pbonzini@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/x86/svm.c b/x86/svm.c index 1e6908a..00b3191 100644 --- a/x86/svm.c +++ b/x86/svm.c @@ -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; }
This will cause problems when accessing memory above the first GB, as in the l1mmio test. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> --- x86/svm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)