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] [PATCH] Paravirt framebuffer frontend kernel support [1/

To: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Paravirt framebuffer frontend kernel support [1/5]
From: Markus Armbruster <armbru@xxxxxxxxxx>
Date: Fri, 03 Nov 2006 15:18:08 +0100
Cc: Jeremy Katz <katzj@xxxxxxxxxx>, aliguori <aliguori@xxxxxxxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, sos22@xxxxxxxxxxxxx
Delivery-date: Fri, 03 Nov 2006 06:18:46 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20061102163111.GA5265@xxxxxxxxxxxxxxxxxxxxxx> (Ewan Mellor's message of "Thu, 2 Nov 2006 16:31:11 +0000")
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: <1157227080.11059.38.camel@xxxxxxxxxxxxxx> <20060904090045.GA4812@xxxxxxxxx> <87hczgrx07.fsf@xxxxxxxxxxxxxxxxx> <20060910093801.GA1874@xxxxxxxxx> <87wt7l68jm.fsf@xxxxxxxxxxxxxxxxx> <871womyxa3.fsf@xxxxxxxxxxxxxxxxx> <20061102103643.GB3879@xxxxxxxxxxxxxxxxxxxxxx> <87slh2xc0m.fsf@xxxxxxxxxxxxxxxxx> <20061102161955.GA7065@xxxxxxxxx> <20061102163111.GA5265@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
I tried to follow your advice, but Xend hates me.  I must be doing
something stupid, can anybody help?

I created a trivial xend/server/vfbif.py:

from xen.xend.server.DevController import DevController

class VfbifController(DevController):
    """Virtual frame buffer controller. Handles all vfb devices for a domain.
    """

    def __init__(self, vm):
        DevController.__init__(self, vm)

    def getDeviceDetails(self, config):
        """@see DevController.getDeviceDetails"""
        devid = 0
        back = {}
        front = {}
        return (devid, back, front)

I added it to xend/XendDomainInfo.py, as follows:

--- XendDomainInfo.py.orig      2006-10-10 16:23:45.000000000 +0200
+++ XendDomainInfo.py   2006-11-03 14:33:28.000000000 +0100
@@ -1786,7 +1786,7 @@
     controllerClasses[device_class] = cls
 
 
-from xen.xend.server import blkif, netif, tpmif, pciif, iopif, irqif, usbif
+from xen.xend.server import blkif, netif, tpmif, pciif, iopif, irqif, usbif, 
vfbif
 from xen.xend.server.BlktapController import BlktapController
 addControllerClass('vbd',  blkif.BlkifController)
 addControllerClass('vif',  netif.NetifController)
@@ -1796,3 +1796,4 @@
 addControllerClass('irq',  irqif.IRQController)
 addControllerClass('usb',  usbif.UsbifController)
 addControllerClass('tap',  BlktapController)
+addControllerClass('vfb',  vfbif.VfbifController)


I set hotplug-status in the backend, resulting in this:

    # xenstore-ls /local/domain/0/backend
    vfb = ""
     1 = ""
      0 = ""
       hotplug-status = "connected"

Then I attempt to create domain 1:

    # xm create -c parafat
[pygrub screen...]
    Using config file "/etc/xen/parafat".
    Going to boot Fedora Core (2.6.18.1)
      kernel: /vmlinuz-2.6.18.1
      initrd: /initrd-2.6.18.1.img
    Error: Device 0 not connected

This is actually from configuration when it tries to read
/local/domain/1/device/vfb/0/backend-id.  /local/domain/1/device
contains entries vbd and vif, but not vfb.  Shouldn't xend have
written stuff there?

I'm confused.

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