From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Fantoni Subject: Emulated vgas problems with qemu upstream on Xen Date: Fri, 22 Feb 2013 17:36:06 +0100 Message-ID: <51279E76.8050703@tiscali.it> Reply-To: fantonifabio@tiscali.it Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2894083883518449947==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel , Stefano Stabellini , Ian Campbell , Ian Jackson , "Keir (Xen.org)" , xudong.hao@intel.com, frediano.ziglio@citrix.com List-Id: xen-devel@lists.xenproject.org Questo è un messaggio firmato digitalmente in formato MIME. --===============2894083883518449947== Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms060707020309070002050901" Questo è un messaggio firmato digitalmente in formato MIME. --------------ms060707020309070002050901 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable Some times ago I have reported several times the problem with emulated=20 vgas with qemu upstream on xen. For example this was my last report about: > WIth both cirrus and stdvga under qemu upstream with xen the=20 > performance are poor even if I increase video memory, respect to=20 > qemu-only and qemu-kvm (without xen). > Qxl is definitely not working under xen and conversely is ok on=20 > qemu-kvm and qemu-only. > > It seem that xen need change and/or fix to have full working emulated=20 > vga on qemu upstream. > At the moment all emulated vgas have problems with xen that aren't=20 > present without xen. > > The performance differences are noticeable (in some case very big)=20 > with xen and without xen using resolution > 1024x768. > > Probably the first link explain the change/fix necessary in xen about=20 > vga (probably in hvmloader). > I tried to do that more times failing but unfortunately I do not have=20 > sufficient knowledge about this. > Can someone help me please? > > I think this is important, years ago the minimal resolution used on=20 > desktop was 1024x768, and no problem with actual vga setting but now=20 > minimal resolution seems increased to up 1366x768 and many people are=20 > using even higher resolutions. > http://www.screenresolution.org/year-2013/ When I started testing qemu upstream at the end of 2011 there were=20 critical bugs on videoram setting resolved with patches on qemu and xen. I did recently libxl patch that correctly set videoram and add qxl=20 support but it seems that on xen with qemu upstream all the emulated vga = working only as standard vga. What I mean is: even if I see the total amout of ram (i.e. 64 mb) on=20 guest, the performances are poor in special mode when I increase the=20 resolution even in real simple operations like screen updates. I spent some days to find a solution, after comparative tests with=20 qemu-kvm and qemu-only when using same build of qemu and seabios on both = linux/windows domU/vm the problem seem of hvmloader. I have tried to find what is exactly the culprit to no avail. I don't have knownladge about bios parts. I also tried to see the differences of seabios tables between xen and=20 kvm or qemu-only with: -chardev stdio,id=3Dseabios -device isa-debugcon,iobase=3D0x402,chardev=3D= seabios but Xen domU doesn't show the details (probably because seabios with xen = uses the tables passed by hvmloader) Today I also tested this patches probably related to solution: [PATCH]xen/hvmloader: define a TOM register [PATCH] qemu: define a TOM register to report the base of PCI The problem persists, probably this is only partial solution about=20 hvmloader changes needed for full support upstream qemu vgas. This is an important problem to solve, not only for support bigger=20 resolutions and good support of a opensource vdi solution but also=20 because with stdvga is impossible to use some resolutions, for example=20 the actually most used 1366x768. (screenshots of examples with windows 7 on attachment) Screenshots show list of resolutions supported by standard vga and qxl=20 full working. There is also a strange difference on bios info line of qxl between xen=20 and kvm. Someone tells that hvmloader do not cause problem with upstream qemu=20 vgabioses, the difference is only caused by hvmloader generated tables=20 or probably or is there another problem to found? I also did some tests with ovmf after applied this patch: http://lists.xen.org/archives/html/xen-devel/2013-02/msg01363.html and using updated tianocore git, but it seems there are more work to do=20 on hvmloader for complete integration. I think like others that a hvmloader rewrite more minimal without=20 including firmwares in hvmloader but linking them instead and using ovmf = with seabios included (for support both eufi and bios) will be the best=20 definitive solution for future of hvm domU. Probably now the more important thing is fixes to hvmloader with seabios = to have a full feature and stable qemu upstream on xen 4.3. Is there someone that can help me to solve emulated vgas problem with=20 upstream qemu? Thanks for any reply and sorry for my bad english. --------------ms060707020309070002050901 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: Firma crittografica S/MIME MIAGCS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A2BgNVBAMTL1N0YXJ0Q29tIENsYXNzIDIgUHJpbWFyeSBJbnRlcm1lZGlhdGUgQ2xp ZW50IENBAgIeYzCBpgYLKoZIhvcNAQkQAgsxgZaggZMwgYwxCzAJBgNVBAYTAklMMRYwFAYD VQQKEw1TdGFydENvbSBMdGQuMSswKQYDVQQLEyJTZWN1cmUgRGlnaXRhbCBDZXJ0aWZpY2F0 ZSBTaWduaW5nMTgwNgYDVQQDEy9TdGFydENvbSBDbGFzcyAyIFByaW1hcnkgSW50ZXJtZWRp YXRlIENsaWVudCBDQQICHmMwDQYJKoZIhvcNAQEBBQAEggEABpH54UqPKBPGHLZuRr2PP5pk PfNwh4jbSRLE41F9bGuI92HlkYyV+js7n6ZePcPjV0zYGNyUDB/ZTLK7C6c54RN9Xl6Bs6vT 5J7WfRF6VLVbr6uMJSfNvCwLl7AjMPX2PLwPlXutTXuT8miCxALb6rSTKqLM8aEJeWpoBk30 Mj/ZTWDE0eLNAScwv45TRCQRsFqT3Wy/dBXm8dnwM3TuQ5cfVUzu+AQfi8LP6Tt3qFwL4cab ed/94zRUYcruaTm0bdT8fOnvR83ZzIgW+itMl0z6pFztV6x4hE0Oj6yckUpxOWUVKSHPCOqF e4WMmzYxfIOo3UYVhWPLnaXZiu8AigAAAAAAAA== --------------ms060707020309070002050901-- --===============2894083883518449947== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============2894083883518449947==--