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

[Xen-devel] Re : Re : Re : Re : Re : Re : Re : Re : Re: Patches for VGA-Passthrough XEN 4.2 unstable


  • To: n4rC0t1C <shandivo@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: David TECHER <davidtecher@xxxxxxxx>
  • Date: Tue, 6 Dec 2011 13:57:30 +0000 (GMT)
  • Delivery-date: Tue, 06 Dec 2011 13:58:49 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=BVUxF+6t+ePzNOUpcGC9JHc49xWJWrZgHMv/d5AGPhNZAOBDHzTjlUZ+97TAX1/nQExwxgXJuCKiTZ8lRnsuH7j+d8zEgKJt14tpx8E7m3CqQMqzLEjE1UeO4TLBf9b2uAC67OTxUGxz9evNmYleMkk8x+A58HVaLUrch+f8+vQ=;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi

Thanks for these informations. I am on Debian. So it could be usefull for Ubuntu users.

Thanks.

David


De : n4rC0t1C <shandivo@xxxxxxxxx>
À : xen-devel@xxxxxxxxxxxxxxxxxxx
Envoyé le : Mardi 6 Décembre 2011 13h04
Objet : Re: [Xen-devel] Re : Re : Re : Re : Re : Re : Re : Re: Patches for VGA-Passthrough XEN 4.2 unstable

Iep I used your last patches, (your website it's at the top of my bookmarks),
and they apply to xen-unstable rev. 24341 as well (which i'm using).

I forgot to mention that I had to make a couple of fix to xen tree, cause it
wasn't compiling on my system due to  "error: format not a string literal
and no format arguments":


--- /usr/src/xen-unstable.hg-rev-24341-460gtx/tools/libxl/libxl_create.c
+++ /usr/src/xen-unstable.hg-rev-24341-460gtx/tools/libxl/libxl_create.c
@@ -462,7 +462,7 @@
    path = libxl__xs_libxl_path(gc, domid);
    path = libxl__sprintf(gc, "%s/dm-version", path);
    return libxl__xs_write(gc, XBT_NULL, path, libxl__strdup(gc,
-     
libxl_device_model_version_to_string(dm_info->device_model_version)));
+     
libxl_device_model_version_to_string(dm_info->device_model_version)),"%s");
}

static int do_domain_create(libxl__gc *gc, libxl_domain_config *d_config,


--- /usr/src/xen-unstable.hg-rev-24341-460gtx/tools/libxl/libxl_device.c
+++ /usr/src/xen-unstable.hg-rev-24341-460gtx/tools/libxl/libxl_device.c
@@ -516,7 +516,7 @@
        for (j = 0; j < num_devs; j++) {
            path = libxl__sprintf(gc,
"/local/domain/%d/device/%s/%s/backend",
                                  domid, kinds[i], devs[j]);
-            path = libxl__xs_read(gc, XBT_NULL, libxl__sprintf(gc, path));
+            path = libxl__xs_read(gc, XBT_NULL, libxl__sprintf(gc,
path,"%s"));
            if (path && libxl__parse_backend_path(gc, path, &dev) == 0) {
                dev.domid = domid;
                dev.kind = kind;

and an due to an argument missing:

--- /usr/src/xen-unstable.hg-rev-24341-460gtx/tools/libxl/libxl_dom.c
+++ /usr/src/xen-unstable.hg-rev-24341-460gtx/tools/libxl/libxl_dom.c
@@ -625,7 +625,7 @@
        break;
    }
    case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN:
-        fd2 = open(filename, O_WRONLY | O_CREAT | O_TRUNC);
+        fd2 = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
        if (fd2 < 0) {
            LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR,
                              "Unable to create a QEMU save file\n");

As far as I know those doesn't break anything, but dont take too seriously,
i'm not an experienced developer :)


Forgot 2:
Since I'm using an ubuntu kernel, the xen support is not integrated, but you
need to add xen modules at your inittrd file. I did this by adding those:

xen-pciback passthrough=1
xen-blkback
xenfs
xen-netback
pci-stub

to /etc/xen/initramfs-tools/modules and the issuing update-initramfs.

In the future, I'll try to boot a linux domU, right now I'm still smiling
cause I can fully wipe my Windows installation from the hard disk. And I'm
sure that in future Win7 will be supported too.

Thanks again David and everyone,
Ivo

--
View this message in context: http://xen.1045712.n5.nabble.com/Patches-for-VGA-Passthrough-XEN-4-2-unstable-tp4406265p5051880.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

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


_______________________________________________
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®.