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] oops when access xenstore in hvm guest

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] oops when access xenstore in hvm guest
From: 胡少龙 <sunofblack@xxxxxxxx>
Date: Tue, 3 Aug 2010 11:32:49 +0800 (CST)
Delivery-date: Mon, 02 Aug 2010 20:34:20 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.cn; s=s1024; t=1280806369; bh=4cFhabkLC+kbz80d3V3zzIvV0w5Ny/XXeeSWOaj0RrE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=gaGJtv9ZDInhsTINOi6vjHmOr0ICIdqS67z8y1N08Xk7fKLXwGWBkqGCeBuoMI9gut9fYCoBp1IPsyZBtv6TJtPsCjvvDKcH59EZbjT4qHsK8WTn77s3rbeL6vUSyQfnnRIAxzFtvkoOLL+WyoT92g+pvi86ukfHquimi+D2ks0=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.cn; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=OUaOXiABjvRwbUcG4FGT/CZC7S2/ETfcgVKXNRKzCTfquwZ5FMy3EuCoEeQ2otv8slm8NmRMS9I01pn3o3fDJ7qAzFO1vZYRAV7V6iycdSdQShPOExy5YQuuzNTpfbwscG6w7L8+r+znfsiPMhJzm9vSX+d7mIlx0+cj1sZ71Xc=;
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 use follow code get xenstore ring and event channel, then i wrapped writing and reading function to operate it ,but it came to oops:
    struct xenstore_domain_interface {
    char req[XENSTORE_RING_SIZE]; /* Requests to xenstore daemon. */
    char rsp[XENSTORE_RING_SIZE]; /* Replies and async watch events. */
    XENSTORE_RING_IDX req_cons, req_prod;
    XENSTORE_RING_IDX rsp_cons, rsp_prod;
    };
    struct xenstore_domain_interface *xenstore;
    xen_hvm_param_t param;
    param.domid = DOMID_SELF;
    param.index = HVM_PARAM_STORE_PFN;
    if ( hypercall_hvm_op(HVMOP_get_param, &param) )
        BUG();
    xenstore = (void *) (unsigned long) (param.value << PAGE_SHIFT);
    param.domid = DOMID_SELF;
    param.index = HVM_PARAM_STORE_EVTCHN;
    if ( hypercall_hvm_op(HVMOP_get_param, &param) )
        BUG();
    xenstore_event = param.value;

    I get the xenstore ring whose address is 0xfeffc000, and event channel port 2, but when i read the xenstore->req_prod, it came to "unable to handle kernel paging request at virtual address feffc804", i am using xen-3.4, any idea?Thanks.
 

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