<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi Mario,<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white">Sorry to make you feel uncomfortable.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white">I think it is not setu</span>p guide problem, the main<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white">
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+).</span><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E"><br>
<br>
<span style="background:white"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white">I have a way to workaround it, as below:</span><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E"><br style="box-sizing: border-box;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<br>
<span style="background:white"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white">1. apt-get install gcc-7</span><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E"><br>
<span style="background:white">2. ln -fs gcc-7 /usr/bin/gcc<o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white">Any more problem just let us know!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white">Terrence<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Mario Marietto <marietto2008@gmail.com> <br>
<b>Sent:</b> Thursday, August 27, 2020 9:52 PM<br>
<b>To:</b> Xu, Terrence <terrence.xu@intel.com>; igvt-g@lists.01.org; xen-devel@lists.xenproject.org; xen-devel@lists.xen.org; intel-gfx@lists.freedesktop.org; linux-kernel@vger.kernel.org; Li, Susie <susie.li@intel.com>; Tian, Kevin <kevin.tian@intel.com>;
Lv, Zhiyuan <zhiyuan.lv@intel.com>; Li, Weinan Z <weinan.z.li@intel.com>; Downs, Mike <mike.downs@intel.com><br>
<b>Subject:</b> Various problems for the Xen for XenGT code and guide.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<table class="MsoNormalTable" border="0" cellspacing="3" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">Hello.<o:p></o:p></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
<td valign="top" style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
</tbody>
</table>
</div>
<div>
<div>
<p>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 :<o:p></o:p></p>
<p><a href="https://github.com/intel/gvt-linux/wiki/GVTg_Setup_Guide#332-build-qemu--xen-for-xengt">https://github.com/intel/gvt-linux/wiki/GVTg_Setup_Guide#332-build-qemu--xen-for-xengt</a><o:p></o:p></p>
<p>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
<span lang="EN">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 :</span><o:p></o:p></p>
<p><span lang="EN"><a href="https://github.com/intel/gvt-linux/issues/168">https://github.com/intel/gvt-linux/issues/168</a></span><o:p></o:p></p>
<p><span lang="EN">right now I'm trying to fix the bug n. 434544,that you can see below.</span><o:p></o:p></p>
<p><span lang="EN">CC util/qemu-error.o<br>
/etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c: In function ‘vreport’:<br>
/etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c:201:5: error: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Werror=deprecated-declarations]<br>
201 | GTimeVal tv;<br>
| ^~~~~~~~<br>
In file included from /usr/include/glib-2.0/glib/galloca.h:32,<br>
from /usr/include/glib-2.0/glib.h:30,<br>
from /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/glib-compat.h:19,<br>
from /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/qemu/osdep.h:107,<br>
from /etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c:13:<br>
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here<br>
547 | struct <em><span style="font-family:"Calibri",sans-serif">GTimeVal</span></em><i><br>
<em><span style="font-family:"Calibri",sans-serif">| ^~~~~~~~~</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">/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]</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">205 | g_get_current_time(&tv);</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">| ^~~~~~~~~~~~~~~~~~</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">In file included from /usr/include/glib-2.0/glib/giochannel.h:33,</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">from /usr/include/glib-2.0/glib.h:54,</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">from /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/glib-compat.h:19,</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">from /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/qemu/osdep.h:107,</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">from /etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c:13:</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">/usr/include/glib-2.0/glib/gmain.h:679:8: note: declared here</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">679 | void g_get_current_time (GTimeVal result);</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">| ^~~~~~~~~~~~~~~~~~</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">/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]</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">206 | timestr = g_time_val_to_iso8601(&tv);</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">| ^~~~~~~</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">In file included from /usr/include/glib-2.0/glib.h:88,</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">from /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/glib-compat.h:19,</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">from /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/qemu/osdep.h:107,</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">from /etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c:13:</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">/usr/include/glib-2.0/glib/gtimer.h:73:10: note: declared here</span></em><br>
<em><span style="font-family:"Calibri",sans-serif">73 | gchar g_time_val_to_iso8601 (GTimeVal *time</span></em></i>) G_GNUC_MALLOC;<br>
| ^~~~~~~~~~~~~~~~~~~~~<br>
cc1: all warnings being treated as errors</span><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal">any help is appreciated. <span lang="EN">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</span> 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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">-- <o:p></o:p></p>
</div>
<p class="MsoNormal">Mario.<o:p></o:p></p>
</div>
</body>
</html>