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

[Xen-devel] How works Xen mmu ?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] How works Xen mmu ?
From: Sylvestre Gallon <syl@xxxxxxxxx>
Date: Tue, 18 May 2010 10:01:59 +0200
Delivery-date: Wed, 02 Jun 2010 10:37:54 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=SDzN8Acu2XOrPMuhqNoDstsKk8+uIRh5thSidPPz73Y=; b=Amy/xS4u3WY5CECuYWUnpfa2joZFub4iGq4nSXnsw41zx+fsVUfUKoqbQZjcZLB40Y nrefn4n9k/vWA5oXtBG8f3hYJYWJAzpB4tZocFR4N5tSSDmnDdoE3c9Ikzdet6kI97eP qV38KxkGXQ0UF/lJJT+TJWv2GlHqWJIwGCDts=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=fs8EI5yeBR9Z2K4W5WKqDU8/jKVI1ptjDqh0N755nGEFlaM/B0NR+ECxaPYF0znKtR Q+/Ve45RDeB1VahCG0evXEezypSl+h7ofeMgIFt3CqN5jHBH1EwgIhZlqMd63mK/jmVL aAP2AnCZqF2W7VAQleKVXljmkcvNXasjZeDPE=
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I am trying to port an homemade operating system in Dom0 but I have a
problem with mmu operation. I have read Xen docs and mailling lists
archives and I  still do not understand well how mmu works on Xen.

My need is to simply perform an identity mapping at 0xb8000 to allow
my operating system to access the vga frammebuffer. So my first idea
was to use HYPERVISOR_mmu_update like this :

mmu_update_t mmu;
uint8_t *buf = (uint8_t *) 0xb8000;

mmu.ptr = 0xb8000 | MMU_MACHPHYS_UPDATE
mmu.val = 0xb8000
HYPERVISOR_mmu_update(&mmu, 1, NULL, DOMID_SELF);

buf[0] = 'a';
buf[1] = 0x7;

But it does not work :/

After that I was think that I need to put in mmu.val the exact entry
for the PTE (add R/W flags, present flags etc...) So I have replaced
mmu.val = 0xb8000 by mmu.val = 0xb8003 but it still not work....

Can you help me please, I am stuck :/

-- 
Sylvestre Gallon

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

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