All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Ewan Mellor <ewan@xensource.com>
Cc: Jeremy Katz <katzj@redhat.com>,
	aliguori <aliguori@mail.utexas.edu>,
	xen-devel <xen-devel@lists.xensource.com>,
	sos22@srcf.ucam.org
Subject: Re: [PATCH] Paravirt framebuffer frontend kernel support [1/5]
Date: Fri, 03 Nov 2006 15:18:08 +0100	[thread overview]
Message-ID: <87mz78wr4v.fsf@pike.pond.sub.org> (raw)
In-Reply-To: <20061102163111.GA5265@leeni.uk.xensource.com> (Ewan Mellor's message of "Thu, 2 Nov 2006 16:31:11 +0000")

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.

  reply	other threads:[~2006-11-03 14:18 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-02 19:58 [PATCH] Paravirt framebuffer frontend kernel support [1/5] Jeremy Katz
2006-09-04  9:00 ` Steven Smith
2006-09-04 14:03   ` Keir Fraser
2006-09-05 16:11   ` Jeremy Katz
2006-09-06  9:11     ` Steven Smith
2006-09-06 15:56       ` Keir Fraser
2006-09-21 18:41         ` Markus Armbruster
2006-09-21 19:29           ` Keir Fraser
2006-09-21 19:33           ` Steven Smith
2006-09-10  7:39   ` Markus Armbruster
2006-09-10  9:38     ` Steven Smith
2006-09-30  8:52       ` Markus Armbruster
2006-11-02 10:10         ` Markus Armbruster
2006-11-02 10:36           ` Ewan Mellor
2006-11-02 12:34             ` Markus Armbruster
2006-11-02 16:19               ` Steven Smith
2006-11-02 16:31                 ` Ewan Mellor
2006-11-03 14:18                   ` Markus Armbruster [this message]
2006-11-03 17:01                     ` Steven Smith
2006-11-02 15:02             ` Markus Armbruster
2006-11-02 15:38               ` Ewan Mellor
2006-11-02  7:53       ` Markus Armbruster
2006-11-02  7:58         ` Keir Fraser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mz78wr4v.fsf@pike.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=aliguori@mail.utexas.edu \
    --cc=ewan@xensource.com \
    --cc=katzj@redhat.com \
    --cc=sos22@srcf.ucam.org \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.