|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [v8][PATCH 07/16] hvmloader/e820: construct guest e820 table
Okay, "If there was no highmem entry, we need to create one."
No, its not true in the first if( add_high_mem ) conditional. Before we enter hvmloader, there are two cases: #1. hvm_info->high_mem_pgend == 0So we wouldn't have a highmem entry in e820. But hvmloader may relocate RAM upward highmem (add_high_mem) to get sufficient mmio, so hvm_info->high_mem_pgend is expanded somewhere (4GiB + add_high_mem). Then we would fall into the second if( add_high_mem ) conditional. #2. hvm_info->high_mem_pgend != 0We always walk into the first if( add_high_mem ) conditional. But here "add_high_mem" just represents that highmem section expanded by hvmloader, its really not the whole higmem:(hvm_info->high_mem_pgend << PAGE_SHIFT - 4GiB). Thanks Tiejun without checking. Perhaps in the first if( add_high_mem ) conditional, you can BUG_ON(add_high_mem != ((hvm_info->high_mem_pgend << PAGE_SHIFT) - (ull1 << 32))) ? Other than that, this looks good, thanks. -George _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |