Skip to contentSkip to conversation

21375: regressions - FAIL

qemu-upstream-unstable test xen.org 5 participants 15 messages Nov 1, 2013 – Nov 20, 2013

lore
Share & tools
lore

xen.org

author
#0 lore raw

flight 21375 qemu-upstream-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/21375/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-qemuu-rhel6hvm-intel 7 redhat-install fail REGR. vs. 20054

Tests which are failing intermittently (not blocking):
test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 9 guest-localmigrate fail pass in 21372 test-amd64-i386-xl-qemuu-win7-amd64 10 guest-saverestore.2 fail pass in 21372 test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 12 guest-localmigrate/x10 fail in 21372 pass in 21365

Tests which did not succeed, but are not blocking:

 test-amd64-amd64-xl-qemuu-win7-amd64 13 guest-stop             fail never pass
 test-amd64-amd64-xl-qemuu-winxpsp3 13 guest-stop               fail never pass
 test-amd64-i386-xend-qemuu-winxpsp3 16 leak-check/check        fail never pass

test-amd64-i386-xl-qemuu-win7-amd64 13 guest-stop fail in 21372 never pass
test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 13 guest-stop fail in 21365 never pass

version targeted for testing:
qemuu b97307ecaad98360f41ea36cd9674ef810c4f8cf
baseline version:
qemuu 8a4bd762aa01b21c43aa24c5b743f4bd7c9db3e3

------------------------------------------------------------
People who touched revisions under test:
"M. Mohan Kumar" <[email protected]>
Adam Lackorzynski <[email protected]> Alasdair McLeay <[email protected]>
Alberto Garcia <[email protected]>
Alex Bligh <[email protected]>
Alex Horn <[email protected]>
Alex Rozenman <[email protected]>
Alex Williamson <[email protected]> Alexander Graf <[email protected]>
Alexey Kardashevskiy <[email protected]>
Alexey Korolev <[email protected]>
Alexey Zaytsev <[email protected]>
Alin Tomescu <[email protected]>
Alon Levy <[email protected]>
Amadeusz Sławiński <[email protected]>
Amit Shah <[email protected]>
Amos Kong <[email protected]>
Andre Przywara <[email protected]>
Andre Przywara <[email protected]> Andrea Arcangeli <[email protected]>
Andreas F=E4rber <[email protected]>
Andreas Färber <[email protected]>
Andreas Färber <[email protected]>
Andreas Färber <[email protected]>
Andreas Färberr <[email protected]>
Andreas Niederl <[email protected]> Andreas Schwab <[email protected]>
Andreas Schwab <[email protected]>
Andrew Jones <[email protected]>
Aneesh Kumar K.V <[email protected]> Anthony Green <[email protected]>
Anthony Liguori <[email protected]>
Anthony PERARD <[email protected]> Antoine Mathys <[email protected]>
Anton Blanchard <[email protected]>
Anton Blanchard <[email protected]>
Artyom Tarasenko <[email protected]>
Asias He <[email protected]>
Aurelien Jarno <[email protected]>
Avi Kivity <[email protected]>
Avi Kivity <[email protected]>
Avik Sil <[email protected]>
Bas van Sisseren <[email protected]>
Ben Herrenschmidt <[email protected]> Benjamin Herrenschmidt <[email protected]> Benoit Canet <[email protected]>
Bharat Bhushan <[email protected]> Bharata B Rao <[email protected]>
Blue Swirl <[email protected]>
Borislav Petkov <[email protected]>
Brad Smith <[email protected]>
Bruce Rogers <[email protected]>
Charles Arnold <[email protected]>
Chegu Vinod <[email protected]>
Chen Wei-Ren <[email protected]> Christian Borntraeger <[email protected]> Christoffer Dall <[email protected]> Christoffer Dall <[email protected]> Christophe Lyon <[email protected]> Claudio Fontana <[email protected]> Cole Robinson <[email protected]>
Corey Bryant <[email protected]> Cornelia Huck <[email protected]>
Daniel P. Berrange <[email protected]>
Daniel Sangorrin <[email protected]>
David Gibson <[email protected]>
David Gibson <[email protected]>`z David Holsgrove <[email protected]> David Woodhouse <[email protected]> Dietmar Maurer <[email protected]>
Dillon Amburgey <[email protected]>
Dmitry Fleytman <[email protected]>
Dmitry Fleytman <[email protected]>
Dominik Dingel <[email protected]>
Don Koch <[email protected]>
Dong Xu Wang <[email protected]> Dongxue Zhang <[email protected]>
Doug Goldstein <[email protected]>
Dunrong Huang <[email protected]>
Dunrong Huang <[email protected]>
Ed Maste <[email protected]>
Edgar E. Iglesias <[email protected]> Edgar E. Iglesias <[email protected]> Eduardo Habkost <[email protected]>
Eduardo Otubo <[email protected]>
Eiichi Tsukata <[email protected]> Ekaterina Tumanova <[email protected]> Eric Blake <[email protected]>
Eric Johnson <[email protected]>
Erlon Cruz <[email protected]> Evgeny Budilovsky <[email protected]> Evgeny Voevodin <[email protected]>
Evgeny Voevodin <[email protected]> Fabien Chouteau <[email protected]>
Fam Zheng <[email protected]>
Federico Simoncelli <[email protected]>
Felipe Franciosi <[email protected]>
Gabriel de Perthuis <[email protected]>
Gabriel Kerneis <[email protected]>
Gal Hammer <[email protected]>
Gerd Hoffmann <[email protected]>
Gertjan Halkes <[email protected]>
Gleb Natapov <[email protected]>
Grant Likely <[email protected]>
Grant Likely <[email protected]>
Guan Xuetao <[email protected]>
H. Peter Anvin <[email protected]>
Hans de Goede <[email protected]>
Heinz Graalfs <[email protected]>
Henry Harrington <[email protected]> Hervé Poussineau <[email protected]>
Hervé Poussineau <[email protected]>
Hu Tao <[email protected]>
Ian Jackson <[email protected]>
Ian Main <[email protected]>
Ian Molton <[email protected]>
Igor Mammedov <[email protected]>
Igor Mammedov <[email protected]> (for i386) Igor Mitsyanko <[email protected]>
Igor Mitsyanko <[email protected]>
Isaku Yamahata <[email protected]> Isaku Yamahata <[email protected]>
Izumi Tsutsui <[email protected]>
Jacob Kroon <[email protected]>
James Hogan <[email protected]>
Jan Kiszka <[email protected]>
Jani Kokkoken <[email protected]>
Jani Kokkonen <[email protected]>
Jason Baron <[email protected]>
Jason J. Herne <[email protected]>
Jason Wang <jasowang>
Jason Wang <[email protected]>
Jean-Christophe DUBOIS <[email protected]> Jeff Cody <[email protected]>
Jens Freimann <[email protected]>
Jesse Larrew <[email protected]>
Jia Liu <[email protected]>
Jia Liu <[email protected]> (for openrisc)
Jim Meyering <[email protected]>
John Rigby <[email protected]>
John Spencer <[email protected]>
Jordan Justen <[email protected]>
Josh Durgin <[email protected]>
Juan Quintela <[email protected]>
Julien Grall <[email protected]>
Julio Guerra <[email protected]>
Ján Tomko <[email protected]>
Jürg Billeter <[email protected]>
Kazuya Saito <[email protected]>
Keith Busch <[email protected]>
Kevin Wolf <[email protected]>
Kevin Wolf <[email protected]>
Kim Phillips <[email protected]>
Kirill Batuzov <[email protected]>
Knut Omang <[email protected]>
KONRAD Frederic <[email protected]> Kuo-Jung Su <[email protected]>
Kuo-Jung Su <[email protected]>
Kusanagi Kouichi <[email protected]>
Kwok Cheung Yeung <[email protected]>
Laszlo Ersek <[email protected]>
Laurent Desnogues <[email protected]> Laurent Vivier <[email protected]>
Lei Li <[email protected]>
Leon Alrae <[email protected]>
liguang <[email protected]>
Liming Wang <[email protected]>
Liu Jinsong <[email protected]>
Liu Ping Fan <[email protected]>
Liu Ping Fan <[email protected]>
Liu Yuan <[email protected]>
Liu Yuan <[email protected]>
Lluís Vilanova <[email protected]>
Lucas Meneghel Rodrigues <[email protected]>
Luigi Rizzo <[email protected]>
Luiz Capitulino <[email protected]>
M. Mohan Kumar <[email protected]>
Mans Rullgard <[email protected]>
Marc-André Lureau <[email protected]> Marc-André Lureau <[email protected]>
Marcel Apfelbaum <[email protected]>
Marcelo Tosatti <[email protected]>
Mark Cave-Ayland <[email protected]> Markus Armbruster <[email protected]>
Martijn van den Broek <[email protected]> Matthew Daley <[email protected]>
Max Filippov <[email protected]>
Max Filippov <[email protected]> (for xtensa) Meador Inge <[email protected]>
Michael Contreras <[email protected]>
Michael Ellerman <[email protected]> Michael Marineau <[email protected]>
Michael R. Hines <[email protected]>
Michael Roth <[email protected]>
Michael S. Tsirkin <[email protected]>
Michael Tokarev <[email protected]>
Michael Walle <[email protected]>
Michael Walle <[email protected]> (for lm32) Michal Novotny <[email protected]>
Michal Privoznik <[email protected]>
Mike Qiu <[email protected]>
Miroslav Rezanina <[email protected]>
MORITA Kazutaka <[email protected]> MRatnikov <[email protected]>
Nathan Rossi <[email protected]>
Nicholas Bellinger <[email protected]>
Nick Thomas <[email protected]>
Nickolai Zeldovich <[email protected]> Oleksii Shevchuk <[email protected]>
Olivier Hainque <[email protected]>
Orit Wasserman <[email protected]>
Othmar Pasteka <[email protected]>
Ozan Çağlayan <[email protected]>
Paolo Bonzini <[email protected]
Paolo Bonzini <[email protected]>
Paul Brook <[email protected]>
Paul Burton <[email protected]>
Paul Durrant <[email protected]>
Paul Moore <[email protected]>
Pavel Dovgalyuk <[email protected]>
Pavel Hrdina <[email protected]>
Pawit Pornkitprasan <[email protected]>
Petar Jovanovic <[email protected]> Petar Jovanovic <[email protected]>
Peter Chubb <[email protected]>
Peter Crosthwaite <[email protected]> Peter Crosthwaite <[email protected]> Peter Crosthwaite [email protected]> Peter Feiner <[email protected]>
Peter Lieven <[email protected]>
Peter Maydell <[email protected]>
Peter Wu <[email protected]>
Petr Matousek <[email protected]>
Philipp Hahn <[email protected]>
Prerna Saxena <[email protected]>
Qiao Nuohan <[email protected]>
Ramkumar Ramachandra <[email protected]> Richard Henderson <[email protected]>
Richard Henderson <[email protected]> (for alpha) Richard Sandiford <[email protected]> Richard W.M. Jones <[email protected]>
Riku Voipio <[email protected]>
Riku Voipio <[email protected]>
Robert Schiele <[email protected]>
Roger Pau Monné <[email protected]>
Ronald Hecht <address@hidden>
Ronald Hecht <[email protected]>
Ronnie Sahlberg <[email protected]> Samuel Seay <[email protected]>
Sander Eikelenboom <[email protected]>
Satoru Moriya <[email protected]>
Scott Feldman <[email protected]> Scott Wood <[email protected]>
Seiji Aguchi <[email protected]>
Serge Hallyn <[email protected]>
Soren Brinkmann <[email protected]> Stefan Berger <[email protected]> Stefan Hajnoczi <[email protected]>
Stefan Priebe <[email protected]>
Stefan Weil <[email protected]>
Stefano Stabellini <[email protected]> Stuart Yoder <[email protected]>
Thomas Huth <[email protected]>
Thomas Schwinge <[email protected]>
Tiejun Chen <[email protected]>
Tim Hardeck <[email protected]>
Tomoki Sekiyama <[email protected]> Umesh Deshpande <[email protected]>
Uri Lublin <[email protected]>
Vadim Evard <[email protected]>
Vasilis Liaskovitis <[email protected]> Vijay Mohan Pandarathil <[email protected]> Viktor Mihajlovski <[email protected]> Vishvananda Ishaya <[email protected]> Vladimir Senkov <[email protected]>
Wanlong Gao <[email protected]>
Weidong Han <[email protected]>
Wen Congyang <[email protected]>
Wenchao Xia <[email protected]>
Wendy Liang <[email protected]>
Will Auld <[email protected]>
Xiao Guangrong <[email protected]> Xudong Hao <[email protected]>
Yan Vugenfirer <[email protected]>
Yeongkyoon Lee <[email protected]>
Yin Yin <[email protected]>
Yongbok Kim <[email protected]> zhangleiqiang <[email protected]>
Zhenguo Wang <[email protected]>
Zhi Yong Wu <[email protected]>
Ákos Kovács <[email protected]>
------------------------------------------------------------

jobs:

 build-amd64                                                  pass    
 build-i386                                                   pass    
 build-amd64-oldkern                                          pass    
 build-i386-oldkern                                           pass    
 build-amd64-pvops                                            pass    
 build-i386-pvops                                             pass    
 test-amd64-i386-qemuu-rhel6hvm-amd                           pass    
 test-amd64-amd64-xl-qemuu-win7-amd64                         fail    
 test-amd64-i386-xl-qemuu-win7-amd64                          fail    
 test-amd64-i386-qemuu-rhel6hvm-intel                         fail    
 test-amd64-i386-xl-qemuu-winxpsp3-vcpus1                     fail    
 test-amd64-i386-xend-qemuu-winxpsp3                          fail    
 test-amd64-amd64-xl-qemuu-winxpsp3                           fail    

------------------------------------------------------------
sg-report-flight on woking.cam.xci-test.com
logs: /home/xc_osstest/logs
images: /home/xc_osstest/images

Logs, config files, etc. are available at
http://www.chiark.greenend.org.uk/~xensrcts/logs

Test harness code can be found at
http://xenbits.xensource.com/gitweb?p=osstest.git;a=summary

Not pushing.

(No revision log; it would be 73708 lines long.)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 8 lines · xen.org

flight 21375 qemu-upstream-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/21375/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-qemuu-rhel6hvm-intel 7 redhat-install fail REGR. vs. 20054

Anythony, have you made any progress on this? It's been failing for ages now...

Ian.

#12 lore raw
In reply to xen.org
Quoted 18 lines · you

flight 21375 qemu-upstream-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/21375/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-qemuu-rhel6hvm-intel 7 redhat-install fail REGR. vs. 20054

Tests which are failing intermittently (not blocking):
test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 9 guest-localmigrate fail pass in 21372 test-amd64-i386-xl-qemuu-win7-amd64 10 guest-saverestore.2 fail pass in 21372 test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 12 guest-localmigrate/x10 fail in 21372 pass in 21365

Tests which did not succeed, but are not blocking:

 test-amd64-amd64-xl-qemuu-win7-amd64 13 guest-stop             fail never pass
 test-amd64-amd64-xl-qemuu-winxpsp3 13 guest-stop               fail never pass
 test-amd64-i386-xend-qemuu-winxpsp3 16 leak-check/check        fail never pass
Quoted 7 lines

test-amd64-i386-xl-qemuu-win7-amd64 13 guest-stop fail in 21372 never pass
test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 13 guest-stop fail in 21365 never pass

version targeted for testing:
qemuu b97307ecaad98360f41ea36cd9674ef810c4f8cf
baseline version:
qemuu 8a4bd762aa01b21c43aa24c5b743f4bd7c9db3e3

Ian,

Why does the script try to reboot the guest within 2 seconds after creating it ?
Also strange it doesn't report back that the -F should be used since the guest is probably not booted yet so PV drivers can't be loaded yet.

This seems to block the push for quite some time now ... --
Sander

 2013-11-01 06:30:56 Z execution took 72 seconds[<=2x600]: ssh -o StrictHostKeyChecking=no -o BatchMode=yes -o ConnectTimeout=100 -o ServerAliveInterval=100 -o PasswordAuthentication=no -o ChallengeResponseAuthentication=no -o UserKnownHostsFile=tmp/t.known_hosts_21375.test-amd64-i386-qemuu-rhel6hvm-intel [email protected]             genisoimage -o /root/21375.test-amd64-i386-qemuu-rhel6hvm-intel.rhel-server-6.1-i386-dvd.iso -R -J -T -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table /root/newiso/.
2013-11-01 06:30:56 Z runvar store: redhat_cfgpath=/etc/xen/redhat.guest.osstest.cfg
2013-11-01 06:30:56 Z executing scp ... /home/xc_osstest/logs/21375/test-amd64-i386-qemuu-rhel6hvm-intel/gall-mite--redhat.guest.osstest.cfg [email protected]:/etc/xen/redhat.guest.osstest.cfg
2013-11-01 06:30:57 Z executing ssh ... [email protected]         (echo xenvnc; echo xenvnc) | vncpasswd redhat.vncpw

Password:Verify:2013-11-01 06:30:57 Z executing ssh ... [email protected] xl create /etc/xen/redhat.guest.osstest.cfg
WARNING: ignoring "kernel" directive for HVM guest. Use "firmware_override" instead if you really want a non-default firmware Parsing config from /etc/xen/redhat.guest.osstest.cfg

2013-11-01 06:30:59 Z await reboot request from redhat: waiting 2000s...
2013-11-01 06:30:59 Z executing ssh ... [email protected] xl list
2013-11-01 06:30:59 Z guest redhat.guest.osstest state is -
2013-11-01 06:30:59 Z await reboot request from redhat: guest state is - (waiting) ...
2013-11-01 06:31:29 Z executing ssh ... [email protected] xl list
2013-11-01 06:31:30 Z guest redhat.guest.osstest state is r
2013-11-01 06:31:30 Z await reboot request from redhat: guest state is r (waiting) ...
2013-11-01 06:31:59 Z executing ssh ... [email protected] xl list
2013-11-01 06:31:59 Z guest redhat.guest.osstest state is r
2013-11-01 06:32:29 Z executing ssh ... [email protected] xl list
2013-11-01 06:32:29 Z guest redhat.guest.osstest state is r
2013-11-01 06:32:59 Z executing ssh ... [email protected] xl list
#13 lore raw
Quoted 30 lines · Sander Eikelenboom
Quoted 18 lines · you

flight 21375 qemu-upstream-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/21375/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-qemuu-rhel6hvm-intel 7 redhat-install fail REGR. vs. 20054

Tests which are failing intermittently (not blocking):
test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 9 guest-localmigrate fail pass in 21372 test-amd64-i386-xl-qemuu-win7-amd64 10 guest-saverestore.2 fail pass in 21372 test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 12 guest-localmigrate/x10 fail in 21372 pass in 21365

Tests which did not succeed, but are not blocking:

 test-amd64-amd64-xl-qemuu-win7-amd64 13 guest-stop             fail never pass
 test-amd64-amd64-xl-qemuu-winxpsp3 13 guest-stop               fail never pass
 test-amd64-i386-xend-qemuu-winxpsp3 16 leak-check/check        fail never pass
Quoted 7 lines

test-amd64-i386-xl-qemuu-win7-amd64 13 guest-stop fail in 21372 never pass
test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 13 guest-stop fail in 21365 never pass

version targeted for testing:
qemuu b97307ecaad98360f41ea36cd9674ef810c4f8cf
baseline version:
qemuu 8a4bd762aa01b21c43aa24c5b743f4bd7c9db3e3

Quoted 6 lines

Ian,

Why does the script try to reboot the guest within 2 seconds after creating it ? Also strange it doesn't report back that the -F should be used since
the guest is probably not booted yet so PV drivers can't be loaded yet.

Where do you see this? It isn't in the logs you quoted, which only show the harness waiting for a reboot, not initiating one. This is sensible -- it is waiting for the reboot initiated by the installer from within the guest when it is finished installing.

Quoted 32 lines

This seems to block the push for quite some time now ... --
Sander

 2013-11-01 06:30:56 Z execution took 72 seconds[<=2x600]: ssh -o StrictHostKeyChecking=no -o BatchMode=yes -o ConnectTimeout=100 -o ServerAliveInterval=100 -o PasswordAuthentication=no -o ChallengeResponseAuthentication=no -o UserKnownHostsFile=tmp/t.known_hosts_21375.test-amd64-i386-qemuu-rhel6hvm-intel [email protected]             genisoimage -o /root/21375.test-amd64-i386-qemuu-rhel6hvm-intel.rhel-server-6.1-i386-dvd.iso -R -J -T -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table /root/newiso/.
2013-11-01 06:30:56 Z runvar store: redhat_cfgpath=/etc/xen/redhat.guest.osstest.cfg
2013-11-01 06:30:56 Z executing scp ... /home/xc_osstest/logs/21375/test-amd64-i386-qemuu-rhel6hvm-intel/gall-mite--redhat.guest.osstest.cfg [email protected]:/etc/xen/redhat.guest.osstest.cfg
2013-11-01 06:30:57 Z executing ssh ... [email protected]         (echo xenvnc; echo xenvnc) | vncpasswd redhat.vncpw

Password:Verify:2013-11-01 06:30:57 Z executing ssh ... [email protected] xl create /etc/xen/redhat.guest.osstest.cfg
WARNING: ignoring "kernel" directive for HVM guest. Use "firmware_override" instead if you really want a non-default firmware Parsing config from /etc/xen/redhat.guest.osstest.cfg

2013-11-01 06:30:59 Z await reboot request from redhat: waiting 2000s...
2013-11-01 06:30:59 Z executing ssh ... [email protected] xl list
2013-11-01 06:30:59 Z guest redhat.guest.osstest state is -
2013-11-01 06:30:59 Z await reboot request from redhat: guest state is - (waiting) ...
2013-11-01 06:31:29 Z executing ssh ... [email protected] xl list
2013-11-01 06:31:30 Z guest redhat.guest.osstest state is r
2013-11-01 06:31:30 Z await reboot request from redhat: guest state is r (waiting) ...
2013-11-01 06:31:59 Z executing ssh ... [email protected] xl list
2013-11-01 06:31:59 Z guest redhat.guest.osstest state is r
2013-11-01 06:32:29 Z executing ssh ... [email protected] xl list
2013-11-01 06:32:29 Z guest redhat.guest.osstest state is r
2013-11-01 06:32:59 Z executing ssh ... [email protected] xl list

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#14 lore raw
Quoted 38 lines · you
Quoted 30 lines · Sander Eikelenboom
Quoted 18 lines · you

flight 21375 qemu-upstream-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/21375/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-qemuu-rhel6hvm-intel 7 redhat-install fail REGR. vs. 20054

Tests which are failing intermittently (not blocking):
test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 9 guest-localmigrate fail pass in 21372 test-amd64-i386-xl-qemuu-win7-amd64 10 guest-saverestore.2 fail pass in 21372 test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 12 guest-localmigrate/x10 fail in 21372 pass in 21365

Tests which did not succeed, but are not blocking:

 test-amd64-amd64-xl-qemuu-win7-amd64 13 guest-stop             fail never pass
 test-amd64-amd64-xl-qemuu-winxpsp3 13 guest-stop               fail never pass
 test-amd64-i386-xend-qemuu-winxpsp3 16 leak-check/check        fail never pass
Quoted 7 lines

test-amd64-i386-xl-qemuu-win7-amd64 13 guest-stop fail in 21372 never pass
test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 13 guest-stop fail in 21365 never pass

version targeted for testing:
qemuu b97307ecaad98360f41ea36cd9674ef810c4f8cf
baseline version:
qemuu 8a4bd762aa01b21c43aa24c5b743f4bd7c9db3e3

Quoted 6 lines

Ian,

Why does the script try to reboot the guest within 2 seconds after creating it ? Also strange it doesn't report back that the -F should be used since
the guest is probably not booted yet so PV drivers can't be loaded yet.

Quoted 4 lines

Where do you see this? It isn't in the logs you quoted, which only show the harness waiting for a reboot, not initiating one. This is sensible -- it is waiting for the reboot initiated by the installer from within the guest when it is finished installing.

Ah ok, seems i misread sorry.
So the guest should request a reboot itself, and thus seems to stall somewhere (given the assumption that it should be able to reach the point to reboot in 2000s) Isn't the installing part one in part part above this in the log ?
(http://www.chiark.greenend.org.uk/~xensrcts/logs/21375/test-amd64-i386-qemuu-rhel6hvm-intel/7.ts-redhat-install.log)

Also in:
http://www.chiark.greenend.org.uk/~xensrcts/logs/21375/test-amd64-i386-qemuu-rhel6hvm-intel/info.html

There doesn't seem to be any helpful logging of what the *guest* is actually doing (or not)

Quoted 32 lines
Quoted 32 lines

This seems to block the push for quite some time now ... --
Sander

 2013-11-01 06:30:56 Z execution took 72 seconds[<=2x600]: ssh -o StrictHostKeyChecking=no -o BatchMode=yes -o ConnectTimeout=100 -o ServerAliveInterval=100 -o PasswordAuthentication=no -o ChallengeResponseAuthentication=no -o UserKnownHostsFile=tmp/t.known_hosts_21375.test-amd64-i386-qemuu-rhel6hvm-intel [email protected]             genisoimage -o /root/21375.test-amd64-i386-qemuu-rhel6hvm-intel.rhel-server-6.1-i386-dvd.iso -R -J -T -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table /root/newiso/.
2013-11-01 06:30:56 Z runvar store: redhat_cfgpath=/etc/xen/redhat.guest.osstest.cfg
2013-11-01 06:30:56 Z executing scp ... /home/xc_osstest/logs/21375/test-amd64-i386-qemuu-rhel6hvm-intel/gall-mite--redhat.guest.osstest.cfg [email protected]:/etc/xen/redhat.guest.osstest.cfg
2013-11-01 06:30:57 Z executing ssh ... [email protected]         (echo xenvnc; echo xenvnc) | vncpasswd redhat.vncpw

Password:Verify:2013-11-01 06:30:57 Z executing ssh ... [email protected] xl create /etc/xen/redhat.guest.osstest.cfg
WARNING: ignoring "kernel" directive for HVM guest. Use "firmware_override" instead if you really want a non-default firmware Parsing config from /etc/xen/redhat.guest.osstest.cfg

2013-11-01 06:30:59 Z await reboot request from redhat: waiting 2000s...
2013-11-01 06:30:59 Z executing ssh ... [email protected] xl list
2013-11-01 06:30:59 Z guest redhat.guest.osstest state is -
2013-11-01 06:30:59 Z await reboot request from redhat: guest state is - (waiting) ...
2013-11-01 06:31:29 Z executing ssh ... [email protected] xl list
2013-11-01 06:31:30 Z guest redhat.guest.osstest state is r
2013-11-01 06:31:30 Z await reboot request from redhat: guest state is r (waiting) ...
2013-11-01 06:31:59 Z executing ssh ... [email protected] xl list
2013-11-01 06:31:59 Z guest redhat.guest.osstest state is r
2013-11-01 06:32:29 Z executing ssh ... [email protected] xl list
2013-11-01 06:32:29 Z guest redhat.guest.osstest state is r
2013-11-01 06:32:59 Z executing ssh ... [email protected] xl list

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
In reply to Ian Campbell
Quoted 4 lines · Ian Campbell
Quoted 3 lines · xen.org

flight 21375 qemu-upstream-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/21375/

Quoted 8 lines
Quoted 5 lines

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-qemuu-rhel6hvm-intel 7 redhat-install fail REGR. vs. 20054

Anythony, have you made any progress on this? It's been failing for ages now...

Yes, looks like the bug it trigger during a vesa resolution change. I have try to use the vgabios blob that we use for qemu-traditionnal and it works fine. But with the vgabios blob provided by qemu, it does not work... I'm still not sure of what the bug is, but I'm getting closer to it.
Also, this happen only on an Intel machine, on an AMD machine, everything works like a charm.

More detail, if anyone want to know:
It's look like syslinux is doing a int 10h call that never return to set video mode:
Int 0x10, with AX=0x4F02

Regards,

Signature · 1 line
Anthony PERARD
#3 lore raw
Quoted 11 lines · Anthony PERARD
Quoted 10 lines · Ian Campbell
Quoted 8 lines · xen.org

flight 21375 qemu-upstream-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/21375/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-qemuu-rhel6hvm-intel 7 redhat-install fail REGR. vs. 20054

Quoted 8 lines
Quoted 2 lines

Anythony, have you made any progress on this? It's been failing for ages now...

Yes, looks like the bug it trigger during a vesa resolution change. I have try to use the vgabios blob that we use for qemu-traditionnal and it works fine. But with the vgabios blob provided by qemu, it does not work... I'm still not sure of what the bug is, but I'm getting closer to it.

Yay!

Quoted 7 lines

Also, this happen only on an Intel machine, on an AMD machine, everything works like a charm.

More detail, if anyone want to know:
It's look like syslinux is doing a int 10h call that never return to set video mode:
Int 0x10, with AX=0x4F02

This looks like it might be handled by SeaBIOS vgasrc/vbe.c:vbe_104f00 ? There seem to be a few changes in upstream seabios since the version referenced in xen.git:Config.mk. Many of them are cleanups/code motion but a few look worth investigating.

Ian.

#4 lore raw
Quoted 31 lines · Ian Campbell
Quoted 11 lines · Anthony PERARD
Quoted 10 lines · Ian Campbell
Quoted 8 lines · xen.org

flight 21375 qemu-upstream-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/21375/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-qemuu-rhel6hvm-intel 7 redhat-install fail REGR. vs. 20054

Quoted 8 lines
Quoted 2 lines

Anythony, have you made any progress on this? It's been failing for ages now...

Yes, looks like the bug it trigger during a vesa resolution change. I have try to use the vgabios blob that we use for qemu-traditionnal and it works fine. But with the vgabios blob provided by qemu, it does not work... I'm still not sure of what the bug is, but I'm getting closer to it.

Yay!

Quoted 7 lines

Also, this happen only on an Intel machine, on an AMD machine, everything works like a charm.

More detail, if anyone want to know:
It's look like syslinux is doing a int 10h call that never return to set video mode:
Int 0x10, with AX=0x4F02

Quoted 4 lines

This looks like it might be handled by SeaBIOS vgasrc/vbe.c:vbe_104f00 ? There seem to be a few changes in upstream seabios since the version referenced in xen.git:Config.mk. Many of them are cleanups/code motion but a few look worth investigating.

I've been able to get the things working by applying a patch to vgabios that is in xen tree: a0e7ccf6864c196906d58b54cd0996b4dbc1b022 This patch allow to clear the framebuffer much faster.

But it those not really help be to understand why the guest freeze. A couple more printf might.

Signature · 1 line
Anthony PERARD
#5 lore raw
Quoted 37 lines · Anthony PERARD
Quoted 31 lines · Ian Campbell
Quoted 11 lines · Anthony PERARD
Quoted 10 lines · Ian Campbell
Quoted 8 lines · xen.org

flight 21375 qemu-upstream-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/21375/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-qemuu-rhel6hvm-intel 7 redhat-install fail REGR. vs. 20054

Quoted 8 lines
Quoted 2 lines

Anythony, have you made any progress on this? It's been failing for ages now...

Yes, looks like the bug it trigger during a vesa resolution change. I have try to use the vgabios blob that we use for qemu-traditionnal and it works fine. But with the vgabios blob provided by qemu, it does not work... I'm still not sure of what the bug is, but I'm getting closer to it.

Yay!

Quoted 7 lines

Also, this happen only on an Intel machine, on an AMD machine, everything works like a charm.

More detail, if anyone want to know:
It's look like syslinux is doing a int 10h call that never return to set video mode:
Int 0x10, with AX=0x4F02

Quoted 4 lines

This looks like it might be handled by SeaBIOS vgasrc/vbe.c:vbe_104f00 ? There seem to be a few changes in upstream seabios since the version referenced in xen.git:Config.mk. Many of them are cleanups/code motion but a few look worth investigating.

Quoted 6 lines

I've been able to get the things working by applying a patch to vgabios that is in xen tree: a0e7ccf6864c196906d58b54cd0996b4dbc1b022 This patch allow to clear the framebuffer much faster.

But it those not really help be to understand why the guest freeze. A couple more printf might.

I finally managed to have a better understanding of the issue.

So, the vgabios blob provided by QEMU have a routine to clear the video ram that take few seconds to run. That give enough time to QEMU to try to refresh is display, and this mean they will be a call to xc_hvm_track_dirty_vram(). If the function is called while the vgabios routine is running, then the guest is lost.

The issue appear only with an Intel machine on an HVM guest using EPT. Having the guest using shadow works fine. So I'm going to investigate the track_dirty code in Xen.

The vgabios routine is called by syslinux with an Int 0x10, I tryied to get some debug print after the call, either from the guest serial or by using the Xen debug ioport, nothing ever appear, and gdbsx only gave me some weird IP which does not appear to point to any usefull code (it's all zeros).

Signature · 1 line
Anthony PERARD
#6 lore raw
Quoted 57 lines · Anthony PERARD
Quoted 37 lines · Anthony PERARD
Quoted 31 lines · Ian Campbell
Quoted 11 lines · Anthony PERARD
Quoted 10 lines · Ian Campbell
Quoted 8 lines · xen.org

flight 21375 qemu-upstream-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/21375/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-qemuu-rhel6hvm-intel 7 redhat-install fail REGR. vs. 20054

Quoted 8 lines
Quoted 2 lines

Anythony, have you made any progress on this? It's been failing for ages now...

Yes, looks like the bug it trigger during a vesa resolution change. I have try to use the vgabios blob that we use for qemu-traditionnal and it works fine. But with the vgabios blob provided by qemu, it does not work... I'm still not sure of what the bug is, but I'm getting closer to it.

Yay!

Quoted 7 lines

Also, this happen only on an Intel machine, on an AMD machine, everything works like a charm.

More detail, if anyone want to know:
It's look like syslinux is doing a int 10h call that never return to set video mode:
Int 0x10, with AX=0x4F02

Quoted 4 lines

This looks like it might be handled by SeaBIOS vgasrc/vbe.c:vbe_104f00 ? There seem to be a few changes in upstream seabios since the version referenced in xen.git:Config.mk. Many of them are cleanups/code motion but a few look worth investigating.

Quoted 6 lines

I've been able to get the things working by applying a patch to vgabios that is in xen tree: a0e7ccf6864c196906d58b54cd0996b4dbc1b022 This patch allow to clear the framebuffer much faster.

But it those not really help be to understand why the guest freeze. A couple more printf might.

I finally managed to have a better understanding of the issue.

So, the vgabios blob provided by QEMU have a routine to clear the video ram that take few seconds to run. That give enough time to QEMU to try to refresh is display, and this mean they will be a call to xc_hvm_track_dirty_vram(). If the function is called while the vgabios routine is running, then the guest is lost.

The issue appear only with an Intel machine on an HVM guest using EPT. Having the guest using shadow works fine. So I'm going to investigate the track_dirty code in Xen.

Quoted 5 lines

The vgabios routine is called by syslinux with an Int 0x10, I tryied to get some debug print after the call, either from the guest serial or by using the Xen debug ioport, nothing ever appear, and gdbsx only gave me some weird IP which does not appear to point to any usefull code (it's all zeros).

An other update,

we had the idee of trying this on earlier versin of Xen, and it turns out that Xen 4.3 works fine. One bisect later, and a commit turns out.

commit 86781624f8df1d50eb4185cfc2ddce926798f7aa
x86_emulate: PUSH <mem> must read source operand just once ... for the case of accessing MMIO.

So after this commit, syslinux stop working correctly with the last version of QEMU. This happen if QEMU is calling track_dirty_vram.

I also have use xentrace/xenalyze to try to grab more information about the issue, it did not really help, but it's tell me that the guest is stock on a specific instruction (it result in vmexit EPT_VIOLATION over and over on xentrace). And that were the guest is stock:

   0xa126:  mov    %eax,%cr0
   0xa129:  ljmp   $0xf2e,$0xa12e
   0xa130:  mov    $0x26,%dl
   0xa132:  or     %bh,(%eax)
   0xa134:  movzww %sp,%sp
   0xa138:  mov    %edx,%ds
   0xa13a:  mov    %edx,%es
   0xa13c:  mov    %edx,%fs
   0xa13e:  mov    %edx,%gs
   0xa140:  jmp    *%ebx
   0xa142:  pushf  
=> 0xa143:  lcall  *%cs:(%si)
   0xa147:  mov    $0x0,%ch

Before trying on earlier version of Xen, I try to understand what when wrong on the Xen side, it turn out that, in the track_dirty_vram hypercall, a call to hap_enable_log_dirty() is all that needed to break the guest.

Jan, any idee of what the issue is?

Regards,

Signature · 1 line
Anthony PERARD
#7 lore raw
Quoted 81 lines · Anthony PERARD
Quoted 57 lines · Anthony PERARD
Quoted 37 lines · Anthony PERARD
Quoted 31 lines · Ian Campbell
Quoted 11 lines · Anthony PERARD
Quoted 10 lines · Ian Campbell
Quoted 8 lines · xen.org

flight 21375 qemu-upstream-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/21375/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-qemuu-rhel6hvm-intel 7 redhat-install fail REGR. vs. 20054

Quoted 8 lines
Quoted 2 lines

Anythony, have you made any progress on this? It's been failing for ages now...

Yes, looks like the bug it trigger during a vesa resolution change. I have try to use the vgabios blob that we use for qemu-traditionnal and it works fine. But with the vgabios blob provided by qemu, it does not work... I'm still not sure of what the bug is, but I'm getting closer to it.

Yay!

Quoted 7 lines

Also, this happen only on an Intel machine, on an AMD machine, everything works like a charm.

More detail, if anyone want to know:
It's look like syslinux is doing a int 10h call that never return to set video mode:
Int 0x10, with AX=0x4F02

Quoted 4 lines

This looks like it might be handled by SeaBIOS vgasrc/vbe.c:vbe_104f00 ? There seem to be a few changes in upstream seabios since the version referenced in xen.git:Config.mk. Many of them are cleanups/code motion but a few look worth investigating.

Quoted 6 lines

I've been able to get the things working by applying a patch to vgabios that is in xen tree: a0e7ccf6864c196906d58b54cd0996b4dbc1b022 This patch allow to clear the framebuffer much faster.

But it those not really help be to understand why the guest freeze. A couple more printf might.

I finally managed to have a better understanding of the issue.

So, the vgabios blob provided by QEMU have a routine to clear the video ram that take few seconds to run. That give enough time to QEMU to try to refresh is display, and this mean they will be a call to xc_hvm_track_dirty_vram(). If the function is called while the vgabios routine is running, then the guest is lost.

The issue appear only with an Intel machine on an HVM guest using EPT. Having the guest using shadow works fine. So I'm going to investigate the track_dirty code in Xen.

Quoted 5 lines

The vgabios routine is called by syslinux with an Int 0x10, I tryied to get some debug print after the call, either from the guest serial or by using the Xen debug ioport, nothing ever appear, and gdbsx only gave me some weird IP which does not appear to point to any usefull code (it's all zeros).

An other update,

we had the idee of trying this on earlier versin of Xen, and it turns out that Xen 4.3 works fine. One bisect later, and a commit turns out.

commit 86781624f8df1d50eb4185cfc2ddce926798f7aa
x86_emulate: PUSH <mem> must read source operand just once ... for the case of accessing MMIO.

So after this commit, syslinux stop working correctly with the last version of QEMU. This happen if QEMU is calling track_dirty_vram.

I also have use xentrace/xenalyze to try to grab more information about the issue, it did not really help, but it's tell me that the guest is stock on a specific instruction (it result in vmexit EPT_VIOLATION over and over on xentrace). And that were the guest is stock:

Quoted 13 lines
   0xa126:  mov    %eax,%cr0
   0xa129:  ljmp   $0xf2e,$0xa12e
   0xa130:  mov    $0x26,%dl
   0xa132:  or     %bh,(%eax)
   0xa134:  movzww %sp,%sp
   0xa138:  mov    %edx,%ds
   0xa13a:  mov    %edx,%es
   0xa13c:  mov    %edx,%fs
   0xa13e:  mov    %edx,%gs
   0xa140:  jmp    *%ebx
   0xa142:  pushf  
=> 0xa143:  lcall  *%cs:(%si)
   0xa147:  mov    $0x0,%ch

OOI what is the encoding of the bad instruction?

Quoted 10 lines

Before trying on earlier version of Xen, I try to understand what when wrong on the Xen side, it turn out that, in the track_dirty_vram hypercall, a call to hap_enable_log_dirty() is all that needed to break the guest.

Jan, any idee of what the issue is?

Regards,

#8 lore raw
Quoted 96 lines · Ian Campbell
Quoted 81 lines · Anthony PERARD
Quoted 57 lines · Anthony PERARD
Quoted 37 lines · Anthony PERARD
Quoted 31 lines · Ian Campbell
Quoted 11 lines · Anthony PERARD
Quoted 10 lines · Ian Campbell
Quoted 8 lines · xen.org

flight 21375 qemu-upstream-unstable real [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/21375/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-qemuu-rhel6hvm-intel 7 redhat-install fail REGR. vs. 20054

Quoted 8 lines
Quoted 2 lines

Anythony, have you made any progress on this? It's been failing for ages now...

Yes, looks like the bug it trigger during a vesa resolution change. I have try to use the vgabios blob that we use for qemu-traditionnal and it works fine. But with the vgabios blob provided by qemu, it does not work... I'm still not sure of what the bug is, but I'm getting closer to it.

Yay!

Quoted 7 lines

Also, this happen only on an Intel machine, on an AMD machine, everything works like a charm.

More detail, if anyone want to know:
It's look like syslinux is doing a int 10h call that never return to set video mode:
Int 0x10, with AX=0x4F02

Quoted 4 lines

This looks like it might be handled by SeaBIOS vgasrc/vbe.c:vbe_104f00 ? There seem to be a few changes in upstream seabios since the version referenced in xen.git:Config.mk. Many of them are cleanups/code motion but a few look worth investigating.

Quoted 6 lines

I've been able to get the things working by applying a patch to vgabios that is in xen tree: a0e7ccf6864c196906d58b54cd0996b4dbc1b022 This patch allow to clear the framebuffer much faster.

But it those not really help be to understand why the guest freeze. A couple more printf might.

I finally managed to have a better understanding of the issue.

So, the vgabios blob provided by QEMU have a routine to clear the video ram that take few seconds to run. That give enough time to QEMU to try to refresh is display, and this mean they will be a call to xc_hvm_track_dirty_vram(). If the function is called while the vgabios routine is running, then the guest is lost.

The issue appear only with an Intel machine on an HVM guest using EPT. Having the guest using shadow works fine. So I'm going to investigate the track_dirty code in Xen.

Quoted 5 lines

The vgabios routine is called by syslinux with an Int 0x10, I tryied to get some debug print after the call, either from the guest serial or by using the Xen debug ioport, nothing ever appear, and gdbsx only gave me some weird IP which does not appear to point to any usefull code (it's all zeros).

An other update,

we had the idee of trying this on earlier versin of Xen, and it turns out that Xen 4.3 works fine. One bisect later, and a commit turns out.

commit 86781624f8df1d50eb4185cfc2ddce926798f7aa
x86_emulate: PUSH <mem> must read source operand just once ... for the case of accessing MMIO.

So after this commit, syslinux stop working correctly with the last version of QEMU. This happen if QEMU is calling track_dirty_vram.

I also have use xentrace/xenalyze to try to grab more information about the issue, it did not really help, but it's tell me that the guest is stock on a specific instruction (it result in vmexit EPT_VIOLATION over and over on xentrace). And that were the guest is stock:

Quoted 13 lines
   0xa126:  mov    %eax,%cr0
   0xa129:  ljmp   $0xf2e,$0xa12e
   0xa130:  mov    $0x26,%dl
   0xa132:  or     %bh,(%eax)
   0xa134:  movzww %sp,%sp
   0xa138:  mov    %edx,%ds
   0xa13a:  mov    %edx,%es
   0xa13c:  mov    %edx,%fs
   0xa13e:  mov    %edx,%gs
   0xa140:  jmp    *%ebx
   0xa142:  pushf  
=> 0xa143:  lcall  *%cs:(%si)
   0xa147:  mov    $0x0,%ch
Quoted 1 line

OOI what is the encoding of the bad instruction?

That's what gdb give me:
0x0000a143: 2e 67 ff 1c lcall *%cs:(%si)

Quoted 11 lines
Quoted 9 lines

Before trying on earlier version of Xen, I try to understand what when wrong on the Xen side, it turn out that, in the track_dirty_vram hypercall, a call to hap_enable_log_dirty() is all that needed to break the guest.

Jan, any idee of what the issue is?

Regards,

Signature · 1 line
Anthony PERARD
#9 lore raw
In reply to Anthony PERARD
Quoted 32 lines
Quoted 1 line
Quoted 1 line · Anthony PERARD

An other update,

we had the idee of trying this on earlier versin of Xen, and it turns out that Xen 4.3 works fine. One bisect later, and a commit turns out.

commit 86781624f8df1d50eb4185cfc2ddce926798f7aa
x86_emulate: PUSH <mem> must read source operand just once ... for the case of accessing MMIO.

So after this commit, syslinux stop working correctly with the last version of QEMU. This happen if QEMU is calling track_dirty_vram.

I also have use xentrace/xenalyze to try to grab more information about the issue, it did not really help, but it's tell me that the guest is stock on a specific instruction (it result in vmexit EPT_VIOLATION over and over on xentrace). And that were the guest is stock:

   0xa126:  mov    %eax,%cr0
   0xa129:  ljmp   $0xf2e,$0xa12e
   0xa130:  mov    $0x26,%dl
   0xa132:  or     %bh,(%eax)
   0xa134:  movzww %sp,%sp
   0xa138:  mov    %edx,%ds
   0xa13a:  mov    %edx,%es
   0xa13c:  mov    %edx,%fs
   0xa13e:  mov    %edx,%gs
   0xa140:  jmp    *%ebx
   0xa142:  pushf  
=> 0xa143:  lcall  *%cs:(%si)
   0xa147:  mov    $0x0,%ch
Quoted 6 lines

Before trying on earlier version of Xen, I try to understand what when wrong on the Xen side, it turn out that, in the track_dirty_vram hypercall, a call to hap_enable_log_dirty() is all that needed to break the guest.

Jan, any idee of what the issue is?

Oh, indeed, I screwed this up without noticing. Please try the attached patch.

Jan

x86: fix emulation of indirect far calls and jumps

Commit 86781624 ("x86_emulate: PUSH <mem> must read source operand just once") corrected the operands of those of the operations of opcode extension group 5 that only read memory from SrcMem to DstMem, but failed to also switch the use of "dst" here to "src".

xen/arch/x86/x86_emulate/x86_emulate.c +3 -4
@@ -3571,7 +3571,6 @@ x86_emulate(
             _regs.eip = src.val;
             src.val = dst.val;
             goto push;
-            break;
         case 4: /* jmp (near) */
             _regs.eip = src.val;
             dst.type = OP_NONE;
@@ -3580,9 +3579,9 @@ x86_emulate(
         case 5: /* jmp (far, absolute indirect) */ {
             unsigned long sel;
 
-            generate_exception_if(dst.type != OP_MEM, EXC_UD, -1);
+            generate_exception_if(src.type != OP_MEM, EXC_UD, -1);
 
-            if ( (rc = read_ulong(dst.mem.seg, dst.mem.off+dst.bytes,
+            if ( (rc = read_ulong(src.mem.seg, src.mem.off + op_bytes,
                                   &sel, 2, ctxt, ops)) )
                 goto done;
 
@@ -3600,7 +3599,7 @@ x86_emulate(
 
             if ( (rc = load_seg(x86_seg_cs, sel, ctxt, ops)) != 0 )
                 goto done;
-            _regs.eip = dst.val;
+            _regs.eip = src.val;
 
             dst.type = OP_NONE;
             break;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#10 lore raw
Quoted 37 lines · Jan Beulich
Quoted 37 lines
Quoted 1 line
Quoted 1 line · Anthony PERARD

An other update,

we had the idee of trying this on earlier versin of Xen, and it turns out that Xen 4.3 works fine. One bisect later, and a commit turns out.

commit 86781624f8df1d50eb4185cfc2ddce926798f7aa
x86_emulate: PUSH <mem> must read source operand just once ... for the case of accessing MMIO.

So after this commit, syslinux stop working correctly with the last version of QEMU. This happen if QEMU is calling track_dirty_vram.

I also have use xentrace/xenalyze to try to grab more information about the issue, it did not really help, but it's tell me that the guest is stock on a specific instruction (it result in vmexit EPT_VIOLATION over and over on xentrace). And that were the guest is stock:

   0xa126:  mov    %eax,%cr0
   0xa129:  ljmp   $0xf2e,$0xa12e
   0xa130:  mov    $0x26,%dl
   0xa132:  or     %bh,(%eax)
   0xa134:  movzww %sp,%sp
   0xa138:  mov    %edx,%ds
   0xa13a:  mov    %edx,%es
   0xa13c:  mov    %edx,%fs
   0xa13e:  mov    %edx,%gs
   0xa140:  jmp    *%ebx
   0xa142:  pushf  
=> 0xa143:  lcall  *%cs:(%si)
   0xa147:  mov    $0x0,%ch

Before trying on earlier version of Xen, I try to understand what when wrong on the Xen side, it turn out that, in the track_dirty_vram hypercall, a call to hap_enable_log_dirty() is all that needed to break the guest.

Quoted 4 lines
Quoted 1 line

Jan, any idee of what the issue is?

Oh, indeed, I screwed this up without noticing. Please try the attached patch.

Looks like this patch fix the issue. The guest is now running fine.

Thanks.

Quoted 41 lines

x86: fix emulation of indirect far calls and jumps

Commit 86781624 ("x86_emulate: PUSH <mem> must read source operand just once") corrected the operands of those of the operations of opcode extension group 5 that only read memory from SrcMem to DstMem, but failed to also switch the use of "dst" here to "src".

xen/arch/x86/x86_emulate/x86_emulate.c +3 -4
@@ -3571,7 +3571,6 @@ x86_emulate(
             _regs.eip = src.val;
             src.val = dst.val;
             goto push;
-            break;
         case 4: /* jmp (near) */
             _regs.eip = src.val;
             dst.type = OP_NONE;
@@ -3580,9 +3579,9 @@ x86_emulate(
         case 5: /* jmp (far, absolute indirect) */ {
             unsigned long sel;
 
-            generate_exception_if(dst.type != OP_MEM, EXC_UD, -1);
+            generate_exception_if(src.type != OP_MEM, EXC_UD, -1);
 
-            if ( (rc = read_ulong(dst.mem.seg, dst.mem.off+dst.bytes,
+            if ( (rc = read_ulong(src.mem.seg, src.mem.off + op_bytes,
                                   &sel, 2, ctxt, ops)) )
                 goto done;
 
@@ -3600,7 +3599,7 @@ x86_emulate(
 
             if ( (rc = load_seg(x86_seg_cs, sel, ctxt, ops)) != 0 )
                 goto done;
-            _regs.eip = dst.val;
+            _regs.eip = src.val;
 
             dst.type = OP_NONE;
             break;
Signature · 1 line
Anthony PERARD
#11 lore raw

Anthony PERARD writes ("Re: [Xen-devel] [qemu-upstream-unstable test] 21375: regressions - FAIL"):

Quoted 1 line

Looks like this patch fix the issue. The guest is now running fine.

Hooray! Well done to Anthony for finding where to point the finger.

Thanks everyone.

Ian.