From mboxrd@z Thu Jan 1 00:00:00 1970 From: n4rC0t1C Subject: Re: Re : Re : Re : Re : Re : Re : Re : Re: Patches for VGA-Passthrough XEN 4.2 unstable Date: Tue, 6 Dec 2011 04:04:54 -0800 (PST) Message-ID: <1323173094434-5051880.post@n5.nabble.com> References: <1316777654598-4833174.post@n5.nabble.com> <1316786412428-4833637.post@n5.nabble.com> <20110923172115.GI12984@reaktio.net> <1318672856439-4904945.post@n5.nabble.com> <1319630071722-4939528.post@n5.nabble.com> <1319636130.20499.YahooMailNeo@web29808.mail.ird.yahoo.com> <1319695116310-4942047.post@n5.nabble.com> <1319710499.206.YahooMailNeo@web29804.mail.ird.yahoo.com> <1323123990448-5050354.post@n5.nabble.com> <1323170568.90631.YahooMailNeo@web29813.mail.ird.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1323170568.90631.YahooMailNeo@web29813.mail.ird.yahoo.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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.