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] Crash when translating mfn to pfn

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Crash when translating mfn to pfn
From: m.rechberg@xxxxxxx
Date: 2006年1月22日 23:43:50 +0100 (MET)
Delivery-date: 2006年1月22日 22:52:09 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi!
I'm a student and trying to port a small experimental operating system to 
xen.
Currently I'm stuck when trying to set up the paging correctly. My problem
is that I want to translate all machine frames belonging to the guest 
domain to physical page frames and back.
The conversation from pfn to mfn seems to work well when using the mfn_list
from the start_info_t. But when I try to translate the mfn back to pfn
(using machine_to_phys_mapping from arch-x86_32.h which points to 
HYPERVISOR_VIRT_START) the guest domain crashes when I try to use specific 
array indeces (In the test setup these are 375-389, 2952-54 and possibly 
some more, also seems to depend at which index I'm starting (everything 
above index 2962 seems to work fine)).
Could someone give me a hint what I'm missing?
In the xen sparse tree include/asm-xen/asm-i386/page.h there is a small note
in the pfn_to_mfn function:
 /*
 * The array access can fail (e.g., device space beyond end of RAM).
 * In such cases it doesn't matter what we return (we return garbage),
 * but we must handle the fault without crashing!
 */
I guess this doesn't apply to my situation as I'm only trying to translate
mfn which belong to the guest domain, correct?
Best Regards, Markus
PS: Guess I will have some more questions soon :-)
-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++
_______________________________________________
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] Bug: xm commands hanging due to poor threading in xend , James Harper
Next by Date: [Xen-devel] RE: VP problematic for backend drivers on IA64? , Magenheimer, Dan (HP Labs Fort Collins)
Previous by Thread: [Xen-devel] Assertion '__task_on_runqueue(prev)' failed in sched_bvt.c , George Dunlap
Next by Thread: Re: [Xen-devel] Crash when translating mfn to pfn , m . rechberg
Indexes: [Date] [Thread] [Top] [All Lists]

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

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