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

Re: [Xen-devel] Transactions and watches

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Transactions and watches
From: Jacob Gorm Hansen <jacobg@xxxxxxx>
Date: Wed, 5 Oct 2005 18:53:51 +0200
Delivery-date: Wed, 05 Oct 2005 16:51:25 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dLKjOVsoTqWiH1Mune5QcH60ms+zzZR2auXQU+B0KaxAk6PXFr1k4yu3wmwEI4qWJYtbk/apd5hS21H9sLF66pgAX84/0rSnyKzGu9iaOH6ltkNsRNQnXiToC4OkDyIgpZRMyJb82mw/KMxn9d8oCRDVCCPjYbWtrvkQh9N6aZM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <0944e5db9597f942ac7454521b14734f@xxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <e08041f30510050944n4e3d3b64j9c123f61b645c701@xxxxxxxxxxxxxx> <0944e5db9597f942ac7454521b14734f@xxxxxxxxxxxx>
Reply-to: Jacob Gorm Hansen <jacobg@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hmm it is not too simple, but if I run the code below as is, domU
succeeds in connecting netfront<->netback, e.g. there is no timeout
and the
MAC address is set correctly. If I rem in the xs_transaction_* calls,
the backend does not get the probe callback and nothing works.

Similar is true if I wrap each xs_write in a transaction_start-end pair.

    char s[256];
    char s2[256];

    int vifid = 2000 + domid;

    char* dom0_home = xs_get_domain_path(xs,0);
    printf("dom0_home is %s\n",dom0_home);

    char backend[256];
    char frontend[256];
    sprintf(backend,"%s/backend/vif/%d/%d",dom0_home,vifid,domid);
    sprintf(frontend, "%s/device/vif/%d",home,vifid);


    //xs_transaction_start(xs);

    sprintf(s,"%s/frontend",backend);
    xs_w(s, frontend );

    sprintf(s,"%s/frontend-id",backend);
    sprintf(s2,"%d",domid);
    xs_w(s, s2 );

    sprintf(s,"%s/handle",backend);
    sprintf(s2,"%d",vifid);
    xs_w(s, s2);


    //xs_transaction_end(xs,0);

    //xs_transaction_start(xs);


    sprintf(s, "%s/backend-id", frontend);
    xs_w(s, "0");

    sprintf(s,"%s/backend",frontend);
    xs_w(s, backend );

    sprintf(s,"%s/handle",frontend);
    sprintf(s2,"%d",vifid);
    xs_w(s, s2);

    sprintf(s,"%s/mac",frontend);
    xs_w(s, "aa:00:00:11:a6:02");

    //xs_transaction_end(xs,0);

Jacob

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

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