Received: from eggs.gnu.org ([2001:4830:134:3::10]:50835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3pUl-0006aO-Rx for qemu-devel@nongnu.org; Mon, 07 Nov 2016 14:22:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3pUi-0004Mo-MF for qemu-devel@nongnu.org; Mon, 07 Nov 2016 14:22:15 -0500 Received: from indium.canonical.com ([91.189.90.7]:34854) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c3pUi-0004Lf-Gc for qemu-devel@nongnu.org; Mon, 07 Nov 2016 14:22:12 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1c3pUY-00063F-9S for ; Mon, 07 Nov 2016 19:22:04 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 517112E81A5 for ; Mon, 7 Nov 2016 19:20:18 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 07 Nov 2016 19:08:40 -0000 From: Thomas Huth <732155@bugs.launchpad.net> Reply-To: Bug 732155 <732155@bugs.launchpad.net> Sender: bounces@canonical.com References: <20110309175642.31574.48661.malonedeb@wampee.canonical.com> Message-Id: <20161107190840.19733.37295.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 732155] Re: system_reset doesn't work with qemu-kvm and latest SeaBIOS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Sounds like this could have been a duplicate bug of https://bugs.launchpad.net/qemu/+bug/643430 ? If so, it should have been fixed in late 2011. Could you check with the latest version of QEMU / Seabios if the problem still persists? ** Changed in: qemu Status: New =3D> Incomplete -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/732155 Title: system_reset doesn't work with qemu-kvm and latest SeaBIOS Status in QEMU: Incomplete Bug description: I've built qemu-kvm and seabios from the latest git sources, and found that the system_reset monitor command causes a freeze if I start qemu- system-x86_64 with the -no-kvm flag. This is a serial log from an attempt at rebooting: $ ./x86_64-softmmu/qemu-system-x86_64 -monitor stdio -bios ../seabios/out= /bios.bin -serial /dev/stdout -no-kvm QEMU 0.14.50 monitor - type 'help' for more information (qemu) Changing serial settings was 0/0 now 3/0 Start bios (version pre-0.6.3-20110309_171929-desk4) Ram Size=3D0x08000000 (0x0000000000000000 high) CPU Mhz=3D2202 PCI: pci_bios_init_bus_rec bus =3D 0x0 PIIX3/PIIX4 init: elcr=3D00 0c PCI: bus=3D0 devfn=3D0x00: vendor_id=3D0x8086 device_id=3D0x1237 PCI: bus=3D0 devfn=3D0x08: vendor_id=3D0x8086 device_id=3D0x7000 PCI: bus=3D0 devfn=3D0x09: vendor_id=3D0x8086 device_id=3D0x7010 region 4: 0x0000c000 PCI: bus=3D0 devfn=3D0x0b: vendor_id=3D0x8086 device_id=3D0x7113 PCI: bus=3D0 devfn=3D0x10: vendor_id=3D0x1013 device_id=3D0x00b8 region 0: 0xf0000000 region 1: 0xf2000000 region 6: 0xf2010000 PCI: bus=3D0 devfn=3D0x18: vendor_id=3D0x10ec device_id=3D0x8139 region 0: 0x0000c100 region 1: 0xf2020000 region 6: 0xf2030000 Found 1 cpu(s) max supported 1 cpu(s) MP table addr=3D0x000fdb40 MPC table addr=3D0x000fdb50 size=3D224 SMBIOS ptr=3D0x000fdb20 table=3D0x07fffef0 ACPI tables: RSDP=3D0x000fdaf0 RSDT=3D0x07ffd6a0 Scan for VGA option rom Running option rom at c000:0003 Turning on vga text mode console SeaBIOS (version pre-0.6.3-20110309_171929-desk4) PS2 keyboard initialized Found 1 lpt ports Found 1 serial ports ATA controller 0 at 1f0/3f4/0 (irq 14 dev 9) ATA controller 1 at 170/374/0 (irq 15 dev 9) DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD] Searching bootorder for: /pci@i0cf8/*@1,1/drive@1/disk@0 Scan for option roms Running option rom at c900:0003 pnp call arg1=3D60 pmm call arg1=3D0 pmm call arg1=3D2 pmm call arg1=3D0 Searching bootorder for: /pci@i0cf8/*@3 Searching bootorder for: /rom@genroms/vapic.bin Running option rom at c980:0003 ebda moved from 9fc00 to 9f400 Returned 53248 bytes of ZoneHigh e820 map has 6 items: 0: 0000000000000000 - 000000000009f400 =3D 1 1: 000000000009f400 - 00000000000a0000 =3D 2 2: 00000000000f0000 - 0000000000100000 =3D 2 3: 0000000000100000 - 0000000007ffd000 =3D 1 4: 0000000007ffd000 - 0000000008000000 =3D 2 5: 00000000fffc0000 - 0000000100000000 =3D 2 enter handle_19: NULL Booting from DVD/CD... Device reports MEDIUM NOT PRESENT atapi_is_ready returned -1 Boot failed: Could not read from CDROM (code 0003) enter handle_18: NULL Booting from ROM... Booting from c900:0336 (qemu) = (qemu) system_reset (qemu) RESET REQUESTEDChanging serial settings was 0/0 now 3/0 Start bios (version pre-0.6.3-20110309_171929-desk4) Attempting a hard reboot prep_reset apm_shutdown? i8042_reboot i8042: wait to write... i8042: outb RESET REQUESTED (qemu) = (qemu) = (qemu) = (qemu) info cpus * CPU #0: pc=3D0x00000000fffffff0 thread_id=3D18125 = (qemu) system_reset (qemu) RESET REQUESTED (qemu) = (qemu) q I've tried fiddling a few build options in SeaBIOS but I'm not sure that's where the issue lies. The RESET REQUESTED is me adding some extra debug to vl.c:1477 in the clause that tests for a reset request, and the i8042: lines are debug lines from seabios tracing the execution of the reset request. This may be a bug in SeaBIOS of course, since I can replicate the behaviour on my distro's qemu and kvm packages. However it seems odd that qemu behaves differently with KVM turned on (i.e. system_reset works) than with it disabled. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/732155/+subscriptions