From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Armbruster Subject: Re: [PATCH] Paravirt framebuffer frontend kernel support [1/5] Date: Fri, 03 Nov 2006 15:18:08 +0100 Message-ID: <87mz78wr4v.fsf@pike.pond.sub.org> References: <1157227080.11059.38.camel@aglarond.local> <20060904090045.GA4812@cam.ac.uk> <87hczgrx07.fsf@pike.pond.sub.org> <20060910093801.GA1874@cam.ac.uk> <87wt7l68jm.fsf@pike.pond.sub.org> <871womyxa3.fsf@pike.pond.sub.org> <20061102103643.GB3879@leeni.uk.xensource.com> <87slh2xc0m.fsf@pike.pond.sub.org> <20061102161955.GA7065@cam.ac.uk> <20061102163111.GA5265@leeni.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <20061102163111.GA5265@leeni.uk.xensource.com> (Ewan Mellor's message of "Thu, 2 Nov 2006 16:31:11 +0000") List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ewan Mellor Cc: Jeremy Katz , aliguori , xen-devel , sos22@srcf.ucam.org List-Id: xen-devel@lists.xenproject.org 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.