<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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:SimSun;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:SimSun;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:SimSun;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">I don’t see any problems on your configuration based on my knowledge. Would you like to try a Linux guest? If Linux guest can work, it means GVT is fine. Then
the problem might be Windows guest is not configured correct to use Intel gfx device for display.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Henry<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><a name="_____replyseparator"></a><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> intel-gvt-dev [mailto:intel-gvt-dev-bounces@lists.freedesktop.org]
<b>On Behalf Of </b>charse<br>
<b>Sent:</b> Thursday, July 19, 2018 1:51 PM<br>
<b>To:</b> intel-gvt-dev@lists.freedesktop.org<br>
<b>Subject:</b> Re: kvmgt local display don't take effect<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<pre><span style="color:black">Hi, Thanks for you reply;<o:p></o:p></span></pre>
</div>
<div>
<pre><span style="color:black"><o:p> </o:p></span></pre>
</div>
<div>
<pre><span style="color:black">Message: 2<o:p></o:p></span></pre>
</div>
<pre><span style="color:black">Date: Wed, 18 Jul 2018 14:28:53 +0800<o:p></o:p></span></pre>
<pre><span style="color:black">From: Hang Yuan <<a href="mailto:hang.yuan@linux.intel.com">hang.yuan@linux.intel.com</a>><o:p></o:p></span></pre>
<pre><span style="color:black">To: <a href="mailto:intel-gvt-dev@lists.freedesktop.org">intel-gvt-dev@lists.freedesktop.org</a><o:p></o:p></span></pre>
<pre><span style="color:black">Subject: Re: kvmgt local display don't take effect<o:p></o:p></span></pre>
<pre><span style="color:black">Message-ID: <<a href="mailto:20180718062853.GA6767@linux.intel.com">20180718062853.GA6767@linux.intel.com</a>><o:p></o:p></span></pre>
<pre><span style="color:black">Content-Type: text/plain; charset=us-ascii<o:p></o:p></span></pre>
<pre><span style="color:black"><o:p> </o:p></span></pre>
<pre><span style="color:black">On Wed, Jul 18, 2018 at 02:25:21PM +0800, charse wrote:<o:p></o:p></span></pre>
<pre><span style="color:black">> Hi:<o:p></o:p></span></pre>
<pre><span style="color:black">> I follow below step:<o:p></o:p></span></pre>
<pre><span style="color:black">> 1. update kernel version to gvt-stable-4.14;<o:p></o:p></span></pre>
<pre><span style="color:black">> 2. update qemu version to stable-2.10.0;<o:p></o:p></span></pre>
<pre><span style="color:black">> when 1 and 2 is done ,I can see the mdev_supported_types directory;<o:p></o:p></span></pre>
<pre><span style="color:black">> 3. vm install process:<o:p></o:p></span></pre>
<pre><span style="color:black">> 1. use Display Driver Uninstaller in safe mode to remove the default installed Windows Intel GFX drivers;<o:p></o:p></span></pre>
<pre><span style="color:black">> 2. using '-vga qxl' to install the quest and install the official 15.45 Intel graphics drivers from Intels websit, windows 7 Device Manager show the graphics card is HD Graphics 520;<o:p></o:p></span></pre>
<pre><span style="color:black">> 3. shutdown the system , change it to '-vga none' reboot the windows 7 virtual system ;<o:p></o:p></span></pre>
<pre><span style="color:black">> start the local vm , use gtk , example script:<o:p></o:p></span></pre>
<pre><span style="color:black">> /usr/bin/qemu-system-x86_64 \<o:p></o:p></span></pre>
<pre><span style="color:black">> -m 2048 -smp 2 -M pc \<o:p></o:p></span></pre>
<pre><span style="color:black">> -name local-display-vm \<o:p></o:p></span></pre>
<pre><span style="color:black">> -hda /root/kvmgt/win7.qcow2 \<o:p></o:p></span></pre>
<pre><span style="color:black">> -bios /usr/bin/bios.bin -enable-kvm \<o:p></o:p></span></pre>
<pre><span style="color:black">> -net nic,macaddr=52:54:00:10:00:1A -net tap,script=/etc/qemu-ifup \<o:p></o:p></span></pre>
<pre><span style="color:black">> -vga none \<o:p></o:p></span></pre>
<pre><span style="color:black">> -display gtk,gl=on \<o:p></o:p></span></pre>
<pre><span style="color:black">> -k en-us \<o:p></o:p></span></pre>
<pre><span style="color:black">> -machine kernel_irqchip=on \<o:p></o:p></span></pre>
<pre><span style="color:black">> -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 \<o:p></o:p></span></pre>
<pre><span style="color:black">> -cpu host -usb -usbdevice tablet \<o:p></o:p></span></pre>
<pre><span style="color:black">> -device vfio-pci,sysfsdev=/sys/bus/pci/devices/0000:00:02.0/0aa0edee-9f5e-11e7-8864-4f7957d97b7c,x-display=on,x-igd-opregion=on<o:p></o:p></span></pre>
<pre><span style="color:black">> <o:p></o:p></span></pre>
<pre><span style="color:black">> <o:p></o:p></span></pre>
<pre><span style="color:black">> but on qemu display "Guest has not initialized the display (yet)"<o:p></o:p></span></pre>
<pre><span style="color:black">> What should I do? Thanks!<o:p></o:p></span></pre>
<div>
<pre><span style="color:black">> Best Regards!<o:p></o:p></span></pre>
</div>
<div>
<pre><span style="color:black"><o:p> </o:p></span></pre>
</div>
<div>
<pre><b><span style="color:black">Do you use seabios in "-bios /usr/bin/bios.bin'? The local display only works on seabios now.</span></b><span style="color:black"><o:p></o:p></span></pre>
</div>
<div>
<pre><span style="color:black">Reply:<o:p></o:p></span></pre>
</div>
<div>
<pre><span style="color:black">I Sure the bios is seabios now;<o:p></o:p></span></pre>
</div>
<div>
<pre><span style="color:black"><o:p> </o:p></span></pre>
</div>
<div>
<pre><span style="color:black">#!/bin/bash <o:p></o:p></span></pre>
<pre><span style="color:black">/usr/bin/qemu-system-x86_64 \<o:p></o:p></span></pre>
<pre><span style="color:black"> -m 2048 -smp 2 -M pc -cpu host\<o:p></o:p></span></pre>
<pre><span style="color:black"> -name local-display-vm \<o:p></o:p></span></pre>
<pre><span style="color:black"> -hda /root/kvmgt/win7.qcow2 \<o:p></o:p></span></pre>
<pre><span style="color:black"> -L /root/igvtg-qemu/roms/seabios/out \<o:p></o:p></span></pre>
<pre><span style="color:black"> -bios /root/igvtg-qemu/roms/seabios/out/bios.bin -enable-kvm \<o:p></o:p></span></pre>
<pre><span style="color:black"> -net nic,macaddr=52:54:00:10:00:1A -net tap,script=/etc/qemu-ifup \<o:p></o:p></span></pre>
<pre><span style="color:black"> -vga none \<o:p></o:p></span></pre>
<pre><span style="color:black"> -display gtk,gl=on \<o:p></o:p></span></pre>
<pre><span style="color:black"> -k en-us \<o:p></o:p></span></pre>
<pre><span style="color:black"> -machine kernel_irqchip=on \<o:p></o:p></span></pre>
<pre><span style="color:black"> -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 \<o:p></o:p></span></pre>
<pre><span style="color:black"> -cpu host -usb -usbdevice tablet \<o:p></o:p></span></pre>
<pre><span style="color:black"> -device vfio-pci,sysfsdev=/sys/bus/pci/devices/0000:00:02.0/0aa0edee-9f5e-11e7-8864-4f7957d97b7c,x-display=on,x-igd-opregion=on<o:p></o:p></span></pre>
</div>
<div>
<pre><span style="color:black"><o:p> </o:p></span></pre>
</div>
<div>
<pre><b><span style="color:black">but on qemu display also "Guest has not initialized the display (yet)"</span></b><span style="color:black"><o:p></o:p></span></pre>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">Best Regards!<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<p> <o:p></o:p></p>
</div>
</div>
</body>
</html>