All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch] add auto translate mechanism when call xc_domain_memory_populate_physmap() in IA64
@ 2006-12-05  3:15 Zhang, Xing Z
  2006-12-05 21:32 ` Alex Williamson
  0 siblings, 1 reply; 2+ messages in thread
From: Zhang, Xing Z @ 2006-12-05  3:15 UTC (permalink / raw)
  To: xen-devel, Keir Fraser


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

As IA32, IA64 also need get a mfn list return when call
xc_domain_memory_populate_physmap()

 

Signed-off-by, Zhang Xin < xing.z.zhang@intel.com >

 

Good good study,day day up ! ^_^

-Wing(zhang xin)

 

OTC,Intel Corporation

 


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

[-- Attachment #2: add_pfn_to_mfn_for_ia64.patch --]
[-- Type: application/octet-stream, Size: 706 bytes --]

IA64 also need get a mfn list return when call xc_domain_memory_populate_physmap()

Signed-off-by, Zhang Xin < xing.z.zhang@intel.com >
diff -r edaf70bb5bcc xen/common/memory.c
--- a/xen/common/memory.c	Thu Nov 30 02:58:43 2006 +0800
+++ b/xen/common/memory.c	Thu Nov 30 08:35:49 2006 +0800
@@ -137,6 +137,10 @@ static void populate_physmap(struct memo
         {
             for ( j = 0; j < (1 << a->extent_order); j++ )
                 guest_physmap_add_page(d, gpfn + j, mfn + j);
+
+            /* Inform the domain of the new page's machine address. */ 
+            if ( unlikely(__copy_to_guest_offset(a->extent_list, i, &mfn, 1)) )
+                goto out;
         }
         else
         {

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Patch] add auto translate mechanism when call xc_domain_memory_populate_physmap() in IA64
  2006-12-05  3:15 [Patch] add auto translate mechanism when call xc_domain_memory_populate_physmap() in IA64 Zhang, Xing Z
@ 2006-12-05 21:32 ` Alex Williamson
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Williamson @ 2006-12-05 21:32 UTC (permalink / raw)
  To: Zhang, Xing Z; +Cc: xen-devel

On Tue, 2006-12-05 at 11:15 +0800, Zhang, Xing Z wrote:
> As IA32, IA64 also need get a mfn list return when call
> xc_domain_memory_populate_physmap()

   This seems to behave poorly with current tip on the
xen-ia64-unstable.hg tree.  I added Isaku's foreign domain page mapping
changes, which I think means this needs to be re-evaluated.  Thanks,

	Alex

-- 
Alex Williamson                             HP Open Source & Linux Org.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-05 21:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-05  3:15 [Patch] add auto translate mechanism when call xc_domain_memory_populate_physmap() in IA64 Zhang, Xing Z
2006-12-05 21:32 ` Alex Williamson

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.