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-ia64-devel

Re: Resend [Xen-ia64-devel] [PATCH]Fix domain0 no VGA console bug.

To: "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx>
Subject: Re: Resend [Xen-ia64-devel] [PATCH]Fix domain0 no VGA console bug.
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Sun, 04 Jun 2006 10:50:28 -0600
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 04 Jun 2006 09:50:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <9FBCE015AF479F46B3B410499F3AE05B011EC6A7@pdsmsx405>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: OSLO R&D
References: <9FBCE015AF479F46B3B410499F3AE05B011EC6A7@pdsmsx405>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Sun, 2006-06-04 at 21:16 +0800, Zhang, Xiantao wrote:
>       The updated patch should be happy for all platforms. If EFI doesn't
> provide md for range(0xa0000-0xc0000) to OS. It maybe a hole or
> occupied by legacy vga.  Therefore, I used the efi_mmio function to
> check it. If these pages was not mapped yet and efi_mmio return true,
> we can map them as MMIO safely.

Hi Xiantao,

   This patch has a couple problems.  First, if a page is mapped, as
indicated by domain_page_mapped(), it shouldn't fall into the else and
get mapped again.  Second, I believe domain_page_mapped() should use
lookup_noalloc_domain_pte() instead of the alloc version.

   I've updated the patch and expanded on it a little to create
conventional memory ranges in low memory corresponding to the ranges the
platform provides.  This prevents my non-VGA system from improperly
detecting a VGA console and reclaims that little bit of memory in it's
address space.  Please let me know if this attached patch works for you
as well.  Thanks,

        Alex

-- 
Alex Williamson                             HP Open Source & Linux Org.

Attachment: xen0_console_revised.patch
Description: Text Data

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>