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] Help: Mapping a grant reference fails

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Help: Mapping a grant reference fails
From: Daniel Castro <evil.dani@xxxxxxxxx>
Date: Wed, 26 Oct 2011 17:33:16 +0900
Delivery-date: Wed, 26 Oct 2011 01:33:50 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=8KgyEGUfl7M589/i/mBYB9T1dKvwIfxTSJwu2+fRXyI=; b=a6a3Z4MF7LZQFfIJbkBBTimz4PyhhhIFlldOydX5thrpoCtzaOEpjKDtxOaF1ap/dE 74U6BJaEi+7sDMNezfyqriDKDrTr99/avx8au4ORa9QtHY27s38O0O9ROovJWnqKmqcM WUfTnmd8GuHbbWaFzqcOgR4NdWRiq+bbPXcG0=
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
Hello All,

I need a little help, I am trying to map a grant reference, I know
something is wrong because I have this in dmesg:
(XEN) grant_table.c:304:d0 Bad flags (0) or dom (0). (expected dom 0)
Also Xenstore reports this:
 error = ""
  backend = ""
   vbd = ""
    18 = ""
     832 = ""
      error = "1 mapping ring-ref 1 port 4"
This happens when my Block Driver is trying to connect to the back end.
I have traced the problem to the line where I am setting up
gnttab_setup_table, the struct has a field XEN_GUEST_HANDLE(ulong)
frame_list. Here is the problem, whatever type I assign it (void *,
unsigned long ...etc) fails. According to documentation this is the
address where the grant table begins. I I change the type of the
parameter in the struct it does not work. I think I have to resolve
the underlining issue on the XEN_GUEST_HANDLE...
The compiler has this error:
src/xen-blk.c:141:17: error: incompatible types when assigning to type
‘__guest_handle_ulong’ from type ‘struct grant_entry_v1 *’

Thanks for the help,

Daniel


-- 
+-=====---------------------------+
| +---------------------------------+ | This space intentionally blank
for notetaking.
| |   | Daniel Castro,                |
| |   | Consultant/Programmer.|
| |   | U Andes                         |
+-------------------------------------+

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

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