[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH][Xen 4.0-testing.hg] fix small bugs of memory sharing
Hi, Tim: On Thu, Dec 9, 2010 at 6:01 PM, Tim Deegan <Tim.Deegan@xxxxxxxxxx> wrote:
I just checked the value of PGT_none, and it is actually equal to 0, so there seems nothing wrong with the original checking. The reason that I swap step3 and step2 is because step3 doesn't modify any value while step2 does. If checking count_info fails, then just abort. Else if count_info is correct, then go checking and modifying type_info.
I found one patch of xenpaging as the following, but not sure it's exactly the same as my question. Cuts from their article http://thread.gmane.org/gmane.comp.emulators.xen.devel/91768/focus=91770 "qemu will just keep mapping pages and not release them, which causes problems for the memory pager (since the page is mapped, it won't get paged out)" AFAIK, the qemu can not always map the entire address space of HVM guest, so Map Cache feature tends to map HVM's memory on-demand/partially. The flush-cache command will trigger qemu_invalidate_map_cache(), which in turn calls munmap() on all mapped virtual addresses. Am I on the right track?
Thanks for your remind "the page needs to be unshared again if qemu tries to map it again". There exists several hypercalls to perform the memory mapping, e.g. mmu_update, update_va_mapping, and I will check on them. Of course, only the RW mapping should be taken care, right? Bests, Jui-Hao _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |