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 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] real-mode switch

To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>, "ron minnich" <rminnich@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] real-mode switch
From: "Jayant Mangalampalli" <Jayant_Mangalampalli@xxxxxxxxxxx>
Date: Tue, 5 Jun 2007 18:58:41 +0530
Delivery-date: Tue, 05 Jun 2007 06:26:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <907625E08839C4409CE5768403633E0B02561DC0@xxxxxxxxxxxxxxxxx>
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
Thread-index: AcendBde9cnWVuoMRu2bkB+SJbMudAAAKGKAAAAa4cA=
Thread-topic: [Xen-devel] real-mode switch
Hmmm ... I am trying to add this code to the hypervisor since currently
I am not aware of such support in xen. Is there a hypercall support to
switch between real- and protected modes already?

Thanks
Jayant

 

> -----Original Message-----
> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Jayant Mangalampalli
> Sent: 05 June 2007 14:19
> To: ron minnich; xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-devel] real-mode switch
> 
> I am trying to switch to real-mode to make some BIOS calls. 
> However, when I try to remap kernel at virtual address 0 I 
> get "Unable to handle kernel paging request at virtual 
> address c06e0000" error. Here is where I get it:
> 
> memcpy(swapper_pg_dir, swapper_pg_dir + USER_PGD_PTRS, 
> sizeof(swapper_pg_dir[0]) * KERNEL_PGD_PTRS);

You can't remap the kernel to 0 - you'll have to use the Hypervisor if
you want to get to real-mode, I think. There was some talk about making
a hypercall to "call this bit of code as real-mode". 

--
Mats
> 
> swapper_pg_dir is 0xc06e0000, and user PGD pointers start at 
> 0x400 and kernel pointers start at 0x100. Any idea why I get this?
> 
> Thanks,
> 
> Jayant Mangalampalli
> 
> 



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

<Prev in Thread] Current Thread [Next in Thread>