Fwd: Re: Various problems for the Xen for XenGT code and guide.
by Mario Marietto
Hello.
Some time ago an ubuntu developer said to me that "xen was demoted to
Universe (IHMO it should have been earlier) as it is neglected by most
users. Surpassed by KVM in every state and features. THe reason why nobody
replied on the bug probably is because no one in the community cares to
much about xen anymore these days"
[image: Screenshot from 2020-09-03 14-38-15.png]
I'm not a software developer,but I suspect that it is not fully true. Xen
for me works good. I suspect also that the problem that I was trying to fix
(unable to connect to libvirt xen) is not strictly related to xen,but it is
mostly an ubuntu bug and he is trying to unload the responsibility to
someone else. Today I've got an evidence that using kvm + vfio + libvirt is
not always the best solution. you can read why in this reddit post :
https://www.reddit.com/r/VFIO/comments/ilqr9r/adding_a_secondary_discrete...
I have added a new graphic card to my configuration,it's the nvidia geforce
GTX 1060. It is the secondary discrete graphic card. The first one is the
RTX 2080 ti,but I'm not able to pass through neither the first nor the
second card,if I don't use an unsecure patch (the ACS override patch). I'm
sure that with xen I can pass both my graphic cards without too many
complications.
Il giorno gio 3 set 2020 alle ore 12:33 Lv, Zhiyuan <zhiyuan.lv(a)intel.com>
ha scritto:
> Hi Jason,
>
> We ever supported both XenGT and KVMGT for data center usages. Right now
> KVMGT is still used in client side for GPU sharing. That's why we are
> supporting KVMGT. Thanks!
>
> Regards,
> -Zhiyuan
>
> -----Original Message-----
> From: Jason Long <hack3rcon(a)yahoo.com>
> Date: Wednesday, September 2, 2020 at 9:38 PM
> To: Mario Marietto <marietto2008(a)gmail.com>, "igvt-g(a)lists.01.org" <
> igvt-g(a)lists.01.org>, "xen-devel(a)lists.xenproject.org" <
> xen-devel(a)lists.xenproject.org>, "xen-devel(a)lists.xen.org" <
> xen-devel(a)lists.xen.org>, "intel-gfx(a)lists.freedesktop.org" <
> intel-gfx(a)lists.freedesktop.org>, "linux-kernel(a)vger.kernel.org" <
> linux-kernel(a)vger.kernel.org>, Susie Li <susie.li(a)intel.com>, "Tian,
> Kevin" <kevin.tian(a)intel.com>, "Li, Weinan Z" <weinan.z.li(a)intel.com>,
> "Downs, Mike" <mike.downs(a)intel.com>, "Xu, Terrence" <
> terrence.xu(a)intel.com>, Zhiyuan Lv <zhiyuan.lv(a)intel.com>
> Subject: Re: Various problems for the Xen for XenGT code and guide.
>
> Why not new XenGT for new GPU?
> Intel migrated to the KVM?
>
>
>
>
>
>
> On Wednesday, September 2, 2020, 05:19:18 PM GMT+4:30, Lv, Zhiyuan <
> zhiyuan.lv(a)intel.com> wrote:
>
>
>
>
>
> Hi,
>
> It is mainly due to the business priority change. XenGT project was
> originally created for data center usages with XEON E3 servers which have
> integrated processor graphics. After SkyLake E3, there are no new servers
> capable of running GVT-g, and Intel future graphics for data center will
> have different approaches for GPU sharing. Another reason is the XenGT
> upstream difficulty. Different from KVMGT which has been fully merged to
> upstream, Xen part of GVT-g still has technical opens that are hard to
> close quickly.
>
> Sorry that we did not sync up with community in time the XenGT ramping
> down plan. Internally we have been testing XenGT until November 2019. We
> will update our setup guide for XenGT part to reflect the information.
> Going forward we will try our best to do XenGT consultant, but will not be
> able to do code rebase/test or debugging. Meanwhile, we are still
> maintaining KVMGT mainly for client integrated GPU usages. We will continue
> to fix issues that can be reproduced with KVMGT.
>
> https://github.com/intel/gvt-linux/tree/topic/gvt-xengt
> https://github.com/intel/Igvtg-xen/tree/xengt-stable-4.10
>
> Hi Marietto, we appreciate your efforts trying GVT-g (XenGT). Hope
> Terrence's reply helps. By switching back to old gcc those compile errors
> should be gone. Meanwhile please be kindly noticed that we can only provide
> limited support on XenGT with old versions. Thanks!
>
> Regards,
> -Zhiyuan
>
> -----Original Message-----
>
> From: Jason Long <hack3rcon(a)yahoo.com>
> Date: Wednesday, September 2, 2020 at 1:07 AM
> To: Mario Marietto <marietto2008(a)gmail.com>, "igvt-g(a)lists.01.org" <
> igvt-g(a)lists.01.org>, "xen-devel(a)lists.xenproject.org" <
> xen-devel(a)lists.xenproject.org>, "xen-devel(a)lists.xen.org" <
> xen-devel(a)lists.xen.org>, "intel-gfx(a)lists.freedesktop.org" <
> intel-gfx(a)lists.freedesktop.org>, "linux-kernel(a)vger.kernel.org" <
> linux-kernel(a)vger.kernel.org>, Susie Li <susie.li(a)intel.com>, "Tian,
> Kevin" <kevin.tian(a)intel.com>, Zhiyuan Lv <zhiyuan.lv(a)intel.com>, "Li,
> Weinan Z" <weinan.z.li(a)intel.com>, "Downs, Mike" <mike.downs(a)intel.com>,
> "Xu, Terrence" <terrence.xu(a)intel.com>
> Subject: Re: Various problems for the Xen for XenGT code and guide.
>
> Hello,
> Why XenGT doesn't have any new version?
>
>
>
>
>
>
> On Tuesday, September 1, 2020, 09:21:27 PM GMT+4:30, Xu, Terrence <
> terrence.xu(a)intel.com> wrote:
>
>
>
>
>
>
>
>
> 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-72. ln -fs gcc-7 /usr/bin/gcc
>
>
>
> Any more problem just let us know!
>
>
>
> Thanks
>
> Terrence
>
>
>
>
>
> From: Mario Marietto <marietto2008(a)gmail.com>
> Sent: Thursday, August 27, 2020 9:52 PM
> To: Xu, Terrence <terrence.xu(a)intel.com>; igvt-g(a)lists.01.org;
> xen-devel(a)lists.xenproject.org; xen-devel(a)lists.xen.org;
> intel-gfx(a)lists.freedesktop.org; linux-kernel(a)vger.kernel.org; Li, Susie <
> susie.li(a)intel.com>; Tian, Kevin <kevin.tian(a)intel.com>; Lv, Zhiyuan <
> zhiyuan.lv(a)intel.com>; Li, Weinan Z <weinan.z.li(a)intel.com>; Downs, Mike <
> mike.downs(a)intel.com>
> 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--...
>
> 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 here547 | 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 here679 | 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 here73 | 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.
>
>
>
>
> _______________________________________________
> iGVT-g mailing list -- igvt-g(a)lists.01.org
> To unsubscribe send an email to igvt-g-leave(a)lists.01.org
>
--
Mario.
--
Mario.
6 months
Re: Various problems for the Xen for XenGT code and guide.
by Lv, Zhiyuan
Hi Jason,
We ever supported both XenGT and KVMGT for data center usages. Right now KVMGT is still used in client side for GPU sharing. That's why we are supporting KVMGT. Thanks!
Regards,
-Zhiyuan
-----Original Message-----
From: Jason Long <hack3rcon(a)yahoo.com>
Date: Wednesday, September 2, 2020 at 9:38 PM
To: Mario Marietto <marietto2008(a)gmail.com>, "igvt-g(a)lists.01.org" <igvt-g(a)lists.01.org>, "xen-devel(a)lists.xenproject.org" <xen-devel(a)lists.xenproject.org>, "xen-devel(a)lists.xen.org" <xen-devel(a)lists.xen.org>, "intel-gfx(a)lists.freedesktop.org" <intel-gfx(a)lists.freedesktop.org>, "linux-kernel(a)vger.kernel.org" <linux-kernel(a)vger.kernel.org>, Susie Li <susie.li(a)intel.com>, "Tian, Kevin" <kevin.tian(a)intel.com>, "Li, Weinan Z" <weinan.z.li(a)intel.com>, "Downs, Mike" <mike.downs(a)intel.com>, "Xu, Terrence" <terrence.xu(a)intel.com>, Zhiyuan Lv <zhiyuan.lv(a)intel.com>
Subject: Re: Various problems for the Xen for XenGT code and guide.
Why not new XenGT for new GPU?
Intel migrated to the KVM?
On Wednesday, September 2, 2020, 05:19:18 PM GMT+4:30, Lv, Zhiyuan <zhiyuan.lv(a)intel.com> wrote:
Hi,
It is mainly due to the business priority change. XenGT project was originally created for data center usages with XEON E3 servers which have integrated processor graphics. After SkyLake E3, there are no new servers capable of running GVT-g, and Intel future graphics for data center will have different approaches for GPU sharing. Another reason is the XenGT upstream difficulty. Different from KVMGT which has been fully merged to upstream, Xen part of GVT-g still has technical opens that are hard to close quickly.
Sorry that we did not sync up with community in time the XenGT ramping down plan. Internally we have been testing XenGT until November 2019. We will update our setup guide for XenGT part to reflect the information. Going forward we will try our best to do XenGT consultant, but will not be able to do code rebase/test or debugging. Meanwhile, we are still maintaining KVMGT mainly for client integrated GPU usages. We will continue to fix issues that can be reproduced with KVMGT.
https://github.com/intel/gvt-linux/tree/topic/gvt-xengt
https://github.com/intel/Igvtg-xen/tree/xengt-stable-4.10
Hi Marietto, we appreciate your efforts trying GVT-g (XenGT). Hope Terrence's reply helps. By switching back to old gcc those compile errors should be gone. Meanwhile please be kindly noticed that we can only provide limited support on XenGT with old versions. Thanks!
Regards,
-Zhiyuan
-----Original Message-----
From: Jason Long <hack3rcon(a)yahoo.com>
Date: Wednesday, September 2, 2020 at 1:07 AM
To: Mario Marietto <marietto2008(a)gmail.com>, "igvt-g(a)lists.01.org" <igvt-g(a)lists.01.org>, "xen-devel(a)lists.xenproject.org" <xen-devel(a)lists.xenproject.org>, "xen-devel(a)lists.xen.org" <xen-devel(a)lists.xen.org>, "intel-gfx(a)lists.freedesktop.org" <intel-gfx(a)lists.freedesktop.org>, "linux-kernel(a)vger.kernel.org" <linux-kernel(a)vger.kernel.org>, Susie Li <susie.li(a)intel.com>, "Tian, Kevin" <kevin.tian(a)intel.com>, Zhiyuan Lv <zhiyuan.lv(a)intel.com>, "Li, Weinan Z" <weinan.z.li(a)intel.com>, "Downs, Mike" <mike.downs(a)intel.com>, "Xu, Terrence" <terrence.xu(a)intel.com>
Subject: Re: Various problems for the Xen for XenGT code and guide.
Hello,
Why XenGT doesn't have any new version?
On Tuesday, September 1, 2020, 09:21:27 PM GMT+4:30, Xu, Terrence <terrence.xu(a)intel.com> wrote:
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-72. ln -fs gcc-7 /usr/bin/gcc
Any more problem just let us know!
Thanks
Terrence
From: Mario Marietto <marietto2008(a)gmail.com>
Sent: Thursday, August 27, 2020 9:52 PM
To: Xu, Terrence <terrence.xu(a)intel.com>; igvt-g(a)lists.01.org; xen-devel(a)lists.xenproject.org; xen-devel(a)lists.xen.org; intel-gfx(a)lists.freedesktop.org; linux-kernel(a)vger.kernel.org; Li, Susie <susie.li(a)intel.com>; Tian, Kevin <kevin.tian(a)intel.com>; Lv, Zhiyuan <zhiyuan.lv(a)intel.com>; Li, Weinan Z <weinan.z.li(a)intel.com>; Downs, Mike <mike.downs(a)intel.com>
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--...
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 here547 | 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 here679 | 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 here73 | 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.
6 months
Re: Various problems for the Xen for XenGT code and guide.
by Lv, Zhiyuan
Hi Roman,
Sorry that I am a software guy and can only speak for software. In general there are various approaches to support graphics virtualization. GVT-g as a pure software approach, does not rely on any hardware I/O virtualization features, meanwhile, hypervisors need specific implementations. If the hardware supports standard virtual devices, both Xen and KVM can use them more easily. Thanks!
Regards,
-Zhiyuan
-----Original Message-----
From: Roman Shaposhnik <roman(a)zededa.com>
Date: Thursday, September 3, 2020 at 3:56 AM
To: Zhiyuan Lv <zhiyuan.lv(a)intel.com>
Cc: Jason Long <hack3rcon(a)yahoo.com>, Mario Marietto <marietto2008(a)gmail.com>, "igvt-g(a)lists.01.org" <igvt-g(a)lists.01.org>, "xen-devel(a)lists.xenproject.org" <xen-devel(a)lists.xenproject.org>, "xen-devel(a)lists.xen.org" <xen-devel(a)lists.xen.org>, "intel-gfx(a)lists.freedesktop.org" <intel-gfx(a)lists.freedesktop.org>, "linux-kernel(a)vger.kernel.org" <linux-kernel(a)vger.kernel.org>, Susie Li <susie.li(a)intel.com>, "Tian, Kevin" <kevin.tian(a)intel.com>, "Li, Weinan Z" <weinan.z.li(a)intel.com>, "Downs, Mike" <mike.downs(a)intel.com>, "Xu, Terrence" <terrence.xu(a)intel.com>
Subject: Re: Various problems for the Xen for XenGT code and guide.
On Wed, Sep 2, 2020 at 5:48 AM Lv, Zhiyuan <zhiyuan.lv(a)intel.com> wrote:
>
> Hi,
>
> It is mainly due to the business priority change. XenGT project was originally created for data center usages with XEON E3 servers which have integrated processor graphics. After SkyLake E3, there are no new servers capable of running GVT-g, and Intel future graphics for data center will have different approaches for GPU sharing. Another reason is the XenGT upstream difficulty. Different from KVMGT which has been fully merged to upstream, Xen part of GVT-g still has technical opens that are hard to close quickly.
This is extremely useful -- thanks for sharing. Any chance you can
elaborate on the later part "and Intel future graphics for data center
will have different approaches for GPU sharing"?
IOW, is there anything that Intel is cooking up that may help Xen in
that department?
Thanks,
Roman.
6 months
Re: Various problems for the Xen for XenGT code and guide.
by Lv, Zhiyuan
Hi,
It is mainly due to the business priority change. XenGT project was originally created for data center usages with XEON E3 servers which have integrated processor graphics. After SkyLake E3, there are no new servers capable of running GVT-g, and Intel future graphics for data center will have different approaches for GPU sharing. Another reason is the XenGT upstream difficulty. Different from KVMGT which has been fully merged to upstream, Xen part of GVT-g still has technical opens that are hard to close quickly.
Sorry that we did not sync up with community in time the XenGT ramping down plan. Internally we have been testing XenGT until November 2019. We will update our setup guide for XenGT part to reflect the information. Going forward we will try our best to do XenGT consultant, but will not be able to do code rebase/test or debugging. Meanwhile, we are still maintaining KVMGT mainly for client integrated GPU usages. We will continue to fix issues that can be reproduced with KVMGT.
https://github.com/intel/gvt-linux/tree/topic/gvt-xengt
https://github.com/intel/Igvtg-xen/tree/xengt-stable-4.10
Hi Marietto, we appreciate your efforts trying GVT-g (XenGT). Hope Terrence's reply helps. By switching back to old gcc those compile errors should be gone. Meanwhile please be kindly noticed that we can only provide limited support on XenGT with old versions. Thanks!
Regards,
-Zhiyuan
-----Original Message-----
From: Jason Long <hack3rcon(a)yahoo.com>
Date: Wednesday, September 2, 2020 at 1:07 AM
To: Mario Marietto <marietto2008(a)gmail.com>, "igvt-g(a)lists.01.org" <igvt-g(a)lists.01.org>, "xen-devel(a)lists.xenproject.org" <xen-devel(a)lists.xenproject.org>, "xen-devel(a)lists.xen.org" <xen-devel(a)lists.xen.org>, "intel-gfx(a)lists.freedesktop.org" <intel-gfx(a)lists.freedesktop.org>, "linux-kernel(a)vger.kernel.org" <linux-kernel(a)vger.kernel.org>, Susie Li <susie.li(a)intel.com>, "Tian, Kevin" <kevin.tian(a)intel.com>, Zhiyuan Lv <zhiyuan.lv(a)intel.com>, "Li, Weinan Z" <weinan.z.li(a)intel.com>, "Downs, Mike" <mike.downs(a)intel.com>, "Xu, Terrence" <terrence.xu(a)intel.com>
Subject: Re: Various problems for the Xen for XenGT code and guide.
Hello,
Why XenGT doesn't have any new version?
On Tuesday, September 1, 2020, 09:21:27 PM GMT+4:30, Xu, Terrence <terrence.xu(a)intel.com> wrote:
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-72. ln -fs gcc-7 /usr/bin/gcc
Any more problem just let us know!
Thanks
Terrence
From: Mario Marietto <marietto2008(a)gmail.com>
Sent: Thursday, August 27, 2020 9:52 PM
To: Xu, Terrence <terrence.xu(a)intel.com>; igvt-g(a)lists.01.org; xen-devel(a)lists.xenproject.org; xen-devel(a)lists.xen.org; intel-gfx(a)lists.freedesktop.org; linux-kernel(a)vger.kernel.org; Li, Susie <susie.li(a)intel.com>; Tian, Kevin <kevin.tian(a)intel.com>; Lv, Zhiyuan <zhiyuan.lv(a)intel.com>; Li, Weinan Z <weinan.z.li(a)intel.com>; Downs, Mike <mike.downs(a)intel.com>
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--...
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 here547 | 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 here679 | 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 here73 | 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.
6 months
Various problems for the Xen for XenGT code and guide.
by Mario Marietto
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--...
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.
6 months