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

RE: Various problems for the Xen for XenGT code and guide.


  • To: Mario Marietto <marietto2008@xxxxxxxxx>, "igvt-g@xxxxxxxxxxxx" <igvt-g@xxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxx>, "intel-gfx@xxxxxxxxxxxxxxxxxxxxx" <intel-gfx@xxxxxxxxxxxxxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, "Li, Susie" <susie.li@xxxxxxxxx>, "Tian, Kevin" <kevin.tian@xxxxxxxxx>, "Lv, Zhiyuan" <zhiyuan.lv@xxxxxxxxx>, "Li, Weinan Z" <weinan.z.li@xxxxxxxxx>, "Downs, Mike" <mike.downs@xxxxxxxxx>
  • From: "Xu, Terrence" <terrence.xu@xxxxxxxxx>
  • Date: Tue, 1 Sep 2020 16:50:35 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0aJMAbcX8GnQ/7g9AXli4U/wO3X6FOCODsFr/Lze6lE=; b=nuDzzI6qiNTPmib5WYlghxZa2dNPMvZCVeE+h+16cMcjDrMMjxqTms5c7ct9Wbxo28ucZYhicCk3VB0WrY/TvBex411vWyxeio7arou7LcGpJBuT4ANcdsASha6PejsZof+7tLJxRoNfwaDpRS8yKmCkvjSIPtoWW2/sADfxgm59LzFA+fXDuZXsVvhi48RK+9OY/Z/0U1ubctVcxjMakJ4C/fMmlu+/gbnx4Q0wlDsUChZbiw1bklXY4kQr+N2a3wfoN94k5NyvJfhnsqZETL2w4amUhhVT93RJDkWX+b6fSsKIJqITyFJAUehSR5L1a3W4pyRfMmD+2vkL0czM9g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PC8+QeIAB/JGsXCyG8OehRbu3KD5HMd6Gkeh9RmiZPBQjWOqj0Uk+Dr+2M4mgzXAnyMbt9s24kdL88OHt4nDSoOCMyidslHFzVTxQFxOXcQdZihVs7IcnMvZJivtX7l+3+MgTw8TyXtBoXI1VYiIs+4ugsxWd2G59zbyq3VGZwlgiZcsGpxxldg8V1n4NaT1op+aFA4G3+t2O571ZSp7Xr7rl4ZqX4N36p0Z5Kz2Db2WnEikfadOASM/d/DMsqE+rm0L06Yf+Q5KtFt3Z+KfjvhObWbfrJkpVgoKV5KOEnMwzphew6QPqGIBTO/DkATAuPNYVStPcc5ILk0nKluWCA==
  • Authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=intel.com;
  • Delivery-date: Tue, 01 Sep 2020 16:50:59 +0000
  • Dlp-product: dlpe-windows
  • Dlp-reaction: no-action
  • Dlp-version: 11.5.1.3
  • Ironport-sdr: kKFcfAkIBCmxjy+uUw0sL/P7n7TxqU8WIXn1nXTATJAFgtqrcqPHj5wRyXO8jrc9GUGHrEZbVy UTN+g8PzoDcA==
  • Ironport-sdr: 5sL50W1zdMVjGJbKOXXFem/bFez2XbyV7oD+FMbn/WpJCbREIRZxvOKsXL6VJC8iiCuijwAks0 PheASrMbSKFA==
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHWfHlvUqhkJ/WaCkaY2CnMtJ/An6lUAxtg
  • Thread-topic: Various problems for the Xen for XenGT code and guide.

Hi Mario,

 

Sorry to make you feel uncomfortable.

 

I think it is not setup guide problem, the main reason is the Xen code is very old (We are upgrading GVT-g code on Linux kernel side and we haven’t upgraded the Xen and Qemu source for XenGT for at least 2 years) but your GCC is new (You are using Ubuntu 20.4, the gcc version is 9+).

I have a way to workaround it, as below:

1.  apt-get install gcc-7
2.  ln -fs gcc-7 /usr/bin/gcc

 

Any more problem just let us know!

 

Thanks

Terrence

 

From: Mario Marietto <marietto2008@xxxxxxxxx>
Sent: Thursday, August 27, 2020 9:52 PM
To: Xu, Terrence <terrence.xu@xxxxxxxxx>; igvt-g@xxxxxxxxxxxx; xen-devel@xxxxxxxxxxxxxxxxxxxx; xen-devel@xxxxxxxxxxxxx; intel-gfx@xxxxxxxxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; Li, Susie <susie.li@xxxxxxxxx>; Tian, Kevin <kevin.tian@xxxxxxxxx>; Lv, Zhiyuan <zhiyuan.lv@xxxxxxxxx>; Li, Weinan Z <weinan.z.li@xxxxxxxxx>; Downs, Mike <mike.downs@xxxxxxxxx>
Subject: Various problems for the Xen for XenGT code and guide.

 

Hello.

I would like to pass the integrated gpu from the host os (ubuntu 20.04) to the windows 10 guest os with xen. This is because xen works great for me,better than qemu-kvm for my specific needs and because I have only two graphic cards. The nvidia rtx 2080 ti that I have already passed to the guest,and the intel UHD 630,that can be duplicated from the host to the guest so that it can be used in both places without interruptions. So I'm trying to build this repository :

https://github.com/intel/gvt-linux/wiki/GVTg_Setup_Guide#332-build-qemu--xen-for-xengt

I have to say that this guide is totally not very well written. And the code is full of unpatched bugs. It's a month that I'm working on that,trying to fix the bugs that are came out from the 2015 until today. This is not my job. This is my hobby. But,I need to activate the pass through for my integrated GPU so I don't to give up. I'm also very angry with those coders who do not do their job well and with those coders who do not respond to help messages. It is not enough to write good code to be a good programmer. It is also important to keep the documentation updated, to help those who cannot get the code to work. Anyway,I've documented every step that I did to make it work here :

https://github.com/intel/gvt-linux/issues/168

right now I'm trying to fix the bug n. 434544,that you can see below.

CC util/qemu-error.o
/etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c: In function ‘vreport’:
/etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c:201:5: error: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Werror=deprecated-declarations]
201 | GTimeVal tv;
| ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/glib-compat.h:19,
from /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/qemu/osdep.h:107,
from /etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c:13:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
547 | struct GTimeVal
| ^~~~~~~~~
/etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c:205:9: error: ‘g_get_current_time’ is deprecated: Use 'g_get_real_time' instead [-Werror=deprecated-declarations]
205 | g_get_current_time(&tv);
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/giochannel.h:33,
from /usr/include/glib-2.0/glib.h:54,
from /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/glib-compat.h:19,
from /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/qemu/osdep.h:107,
from /etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c:13:
/usr/include/glib-2.0/glib/gmain.h:679:8: note: declared here
679 | void g_get_current_time (GTimeVal result);
| ^~~~~~~~~~~~~~~~~~
/etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c:206:9: error: ‘g_time_val_to_iso8601’ is deprecated: Use 'g_date_time_format' instead [-Werror=deprecated-declarations]
206 | timestr = g_time_val_to_iso8601(&tv);
| ^~~~~~~
In file included from /usr/include/glib-2.0/glib.h:88,
from /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/glib-compat.h:19,
from /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/qemu/osdep.h:107,
from /etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c:13:
/usr/include/glib-2.0/glib/gtimer.h:73:10: note: declared here
73 | gchar g_time_val_to_iso8601 (GTimeVal *time
) G_GNUC_MALLOC;
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

any help is appreciated.  Someone must help me, thanking me for all the efforts I am making to make work a code full of errors. I would also know if I can activate the passthrough of the intel integrated gpu using the precompiled xen-hypervisor package that's on ubuntu. Right now I tried to compile it from scratch because I've thought that it was a necessary step,as described on the guide. But Im not sure on this point.

 

--

Mario.


 


Rackspace

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