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

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.