All of lore.kernel.org
 help / color / mirror / Atom feed
From: schumi.han@gmail.com
To: Xen-devel@lists.xensource.com
Subject: question about foreign mapped page
Date: Fri, 12 May 2006 18:44:50 +0800	[thread overview]
Message-ID: <44646722.6040405@gmail.com> (raw)

Hi, All!
I met a bug when destroyed the VMX. page_remove_rmap() BUG on
page->_mapcount when QEMU exited. I try to solve this problem but I'm
not familiar with MM code. So I wanna ask you guys several questions and 
hope you can give some clues:
1)If we map a foreign page(DomainU or VMX) to Domain0 through
xc_map_foreign_range, the pfn(in Domain0's memory space)which points to
the mapped mfn should not correlate with any   page structure.  Is  it
right?  I suppose it to be true. The question is when the kernel calls
unmap_page_range, it should try to call vm_normal_page on the related
pte to get the page structure. Which flag will lead vm_normal_page to
return the NULL pointer?
2)IMHO, I expect only the local mapped page, which belongs to the same
domain could be passed to page_remove_rmap and kick out the bug I met!
direct_rmap_pfn_range looks like a suscipious criminal.Is it possible?
But QEMU never used direct_rmap_pfn_range to map local page. So, I'm
really confused!
Thanks for your help!

                 reply	other threads:[~2006-05-12 10:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44646722.6040405@gmail.com \
    --to=schumi.han@gmail.com \
    --cc=Xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.