[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] oops when access xenstore in hvm guest


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: èåé <sunofblack@xxxxxxxx>
  • Date: Tue, 3 Aug 2010 11:32:49 +0800 (CST)
  • Delivery-date: Mon, 02 Aug 2010 20:34:20 -0700
  • 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=;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.