WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] The store and restore?

To: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>
Subject: [Xen-devel] The store and restore?
From: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Date: 2005年7月17日 07:59:25 +1000
Cc: Xen Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>, Andrew Warfield <Andrew.Warfield@xxxxxxxxxxxx>, Steven Hand <Steven.Hand@xxxxxxxxxxxx>
Delivery-date: 2005年7月19日 01:53:27 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050714175237.GY29384@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D28248B@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <1120215621.12232.16.camel@xxxxxxxxxxxxxxxxxxxxx> <20050701122303.GM8239@xxxxxxxxxxxx> <1120357975.12232.27.camel@xxxxxxxxxxxxxxxxxxxxx> <20050706180609.GG30443@xxxxxxxxxxxx> <1120676349.12218.29.camel@xxxxxxxxxxxxxxxxxxxxx> <20050712103224.GR30443@xxxxxxxxxxxx> <1121354713.30271.15.camel@xxxxxxxxxxxxxxxxxxxxx> <20050714175237.GY29384@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On restore, we need to create a new event channel and update the shared
page information for the store, AFAICT.
I'm not quite sure how this *should* be done. Thoughts welcome, patch
below.
Rusty.
diff -r 71883f17a80f tools/libxc/xc.h
--- a/tools/libxc/xc.h Fri Jul 15 20:31:09 2005
+++ b/tools/libxc/xc.h Sun Jul 17 07:54:28 2005
@@ -250,7 +250,8 @@
 * @parm nr_pfns the number of pages
 * @return 0 on success, -1 on failure
 */
-int xc_linux_restore(int xc_handle, int io_fd, u32 dom, unsigned long nr_pfns);
+int xc_linux_restore(int xc_handle, int io_fd, u32 dom, unsigned long nr_pfns,
+ unsigned int store_evtchn, unsigned long *store_mfn);
 
 int xc_linux_build(int xc_handle,
 u32 domid,
diff -r 71883f17a80f tools/libxc/xc_linux_restore.c
--- a/tools/libxc/xc_linux_restore.c Fri Jul 15 20:31:09 2005
+++ b/tools/libxc/xc_linux_restore.c Sun Jul 17 07:54:28 2005
@@ -48,7 +48,8 @@
 return r;
 }
 
-int xc_linux_restore(int xc_handle, int io_fd, u32 dom, unsigned long nr_pfns)
+int xc_linux_restore(int xc_handle, int io_fd, u32 dom, unsigned long nr_pfns,
+ unsigned int store_evtchn, unsigned long *store_mfn)
 {
 dom0_op_t op;
 int rc = 1, i, n, k;
@@ -468,6 +469,10 @@
 p_srec->resume_info.nr_pages = nr_pfns;
 p_srec->resume_info.shared_info = shared_info_frame << PAGE_SHIFT;
 p_srec->resume_info.flags = 0;
+ p_srec->resume_info.store_evtchn = store_evtchn;
+ /* FIXME: How to calculate this properly? */
+ *store_mfn = pfn_to_mfn_table[(p_srec->resume_info.store_page-0xc0100000)
+ >> PAGE_SHIFT];
 munmap(p_srec, PAGE_SIZE);
 
 /* Uncanonicalise each GDT frame number. */
-- 
A bad analogy is like a leaky screwdriver -- Richard Braakman
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: RE: [Xen-devel] Failed to pass make on ia32 , Yu, Lifeng
Next by Date: [Xen-devel] Problems booting 32-bit Domain 0 and 32 bit Xen on x86_64 hardware , Subrahmanian, Raj
Previous by Thread: [Xen-devel] Failed to pass make on ia32 , Yu, Lifeng
Next by Thread: [Xen-devel] Re: The store and restore? , Keir Fraser
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /