[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [mini-os master] mini-os: fix do_map_frames() for pvh
commit b070125a6992e671292d781cbb71f98eea5359a3 Author: Juergen Gross <jgross@xxxxxxxx> AuthorDate: Sat Aug 15 13:12:57 2020 +0200 Commit: Wei Liu <wl@xxxxxxx> CommitDate: Mon Aug 17 09:54:58 2020 +0000 mini-os: fix do_map_frames() for pvh In case ov PVH dom_map_frames() is missing to increment the virtual address. This leads to writing only the first page table entry multiple times. Signed-off-by: Juergen Gross <jgross@xxxxxxxx> Reviewed-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> --- arch/x86/mm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/mm.c b/arch/x86/mm.c index ea58444..8ba14a5 100644 --- a/arch/x86/mm.c +++ b/arch/x86/mm.c @@ -695,6 +695,7 @@ int do_map_frames(unsigned long va, pgt[l1_table_offset(va)] = (pgentry_t) (((mfns[done * stride] + done * incr) << PAGE_SHIFT) | prot); done++; + va += PAGE_SIZE; #endif } -- generated by git-patchbot for /home/xen/git/mini-os.git#master
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |