All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kai Luo <kluo@vmware.com>
To: xen-devel@lists.xensource.com
Subject: Questions about the mapping from gpfn to mfn when live migration
Date: Sat, 1 Jun 2013 23:19:25 -0700 (PDT)	[thread overview]
Message-ID: <1315453738.1404628.1370153965900.JavaMail.root@vmware.com> (raw)
In-Reply-To: <787044279.1400842.1370151885282.JavaMail.root@vmware.com>


[-- Attachment #1.1: Type: text/plain, Size: 1285 bytes --]

Hi everyone: 
I am reading code of live migration process of hvm domain now.My question is that I can't find the transformation position that transform hvm domain‘s gpfn to mfn.That is,the method ,in file xc_linux_osdep.c, linux_privcmd_map_foreign_bulk( xc_interface *xch, xc_osdep_handle h, uint32_t dom, int prot, const xen_pfn_t *arr, int *err, unsigned int num) ,the list of xen_pfn_t contains the list of guest's mfns(gpfns in xen),for para-virtualization guests they are thransformed by the pfn_to_mfn() before assignment(in xc_domain_save()),for hvm guests however,I can not find a similar conversion process,they are directly conveyed to the dom's kernel directly without any transformation.So I continued to follow the process,finding the following key functions: 
privcmd_ioctl (struct file *file, unsigned int cmd, unsigned long data) 
->privcmd_ioctl_mmap_batch(udata, 2) 
->-> traverse_pages(mmapcmd.num, sizeof(struct privcmd_mmap_entry), &pagelist, mmap_mfn_range, &state); 
Still no clue for the thransformation process,could you give any sugguestions? 
My second question is that is it possible that I give a list of hvm's mfns(not gpfns) and then get the contents held in memory in dom0?Does xen have any function of this kind? 
Thank you all! 
Jone 

[-- Attachment #1.2: Type: text/html, Size: 3287 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

       reply	other threads:[~2013-06-02  6:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <787044279.1400842.1370151885282.JavaMail.root@vmware.com>
2013-06-02  6:19 ` Kai Luo [this message]
2013-06-03  9:49   ` Questions about the mapping from gpfn to mfn when live migration Andrew Cooper

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=1315453738.1404628.1370153965900.JavaMail.root@vmware.com \
    --to=kluo@vmware.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.