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]

Re: [Xen-devel] ioremap failing in linux guest

To: Anish Bhatt <anish@xxxxxxxxxxxxx>, Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] ioremap failing in linux guest
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: 2008年10月09日 18:02:42 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: 2008年10月09日 10:03:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <48EE363F.2070102@xxxxxxxxxxxxx>
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
Thread-index: AckqMNeOFgHmnJYkEd2EfgAWy6hiGQ==
Thread-topic: [Xen-devel] ioremap failing in linux guest
User-agent: Microsoft-Entourage/11.4.0.080122
Sounds like a 'bigphysarea' kind of hack. That won't work on Xen without
modifying the driver. Quite a part from anything else the driver probably
expects the memory range to be machine contiguous, and it almost certainly
won't be.
 -- Keir
On 9/10/08 17:50, "Anish Bhatt" <anish@xxxxxxxxxxxxx> wrote:
> The driver for the network processor that I am using does an ioremap
> call to map memory previously reserved using the mem & memap kernel
> parameters. for eg. if I reserve memory using memmap=384M512ドルM, it is
> calling ioremap(384,512) (with appropriate conversion to bytes) and
> later using the returned address to setup its queues.
> -Anish
>
> Jeremy Fitzhardinge wrote:
>> Anish Bhatt wrote:
>>> Is there an API for converting pseudophysical addresses to machine
>>> addresses or possibly sample code somewhere ?
>> 
>> What are you trying to achieve? ioremap is only valid to use on
>> device memory anyway, so you shouldn't be in a position to use it
>> unless you've already got machine addresses in hand (and they're going
>> to be machine addresses with no existing pfn translation).
>> 
>> J
>
_______________________________________________
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] ioremap failing in linux guest , Anish Bhatt
Next by Date: Re: [Xen-devel] Mapping hvm guest pages in Dom0 , Satya
Previous by Thread: Re: [Xen-devel] ioremap failing in linux guest , Anish Bhatt
Next by Thread: [Xen-devel] pci pass-through failure on xen 3.3.0 , Masroor Vettuparambil
Indexes: [Date] [Thread] [Top] [All Lists]

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

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