From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiOl8-0002Iv-4V for qemu-devel@nongnu.org; Fri, 31 May 2013 08:48:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UiOl6-0005wC-SF for qemu-devel@nongnu.org; Fri, 31 May 2013 08:48:42 -0400 Received: from mail-vb0-x22f.google.com ([2607:f8b0:400c:c02::22f]:44032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiOl6-0005w6-OD for qemu-devel@nongnu.org; Fri, 31 May 2013 08:48:40 -0400 Received: by mail-vb0-f47.google.com with SMTP id x13so988562vbb.20 for ; Fri, 31 May 2013 05:48:40 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <51A89C1B.80700@redhat.com> Date: Fri, 31 May 2013 14:48:27 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1369816047-16384-1-git-send-email-jordan.l.justen@intel.com> <1369816047-16384-2-git-send-email-jordan.l.justen@intel.com> <20130531020612.GA18156@morn.localdomain> <51A89A29.4090004@redhat.com> In-Reply-To: <51A89A29.4090004@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v7 1/4] isapc: Fix non-KVM qemu boot (read/write memory for isapc BIOS) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laszlo Ersek Cc: Jordan Justen , Kevin O'Connor , Jordan Justen , David Woodhouse , qemu-devel Il 31/05/2013 14:40, Laszlo Ersek ha scritto: > I think we've been here before... > > - always resetting the PAM registers broke S3 resume: > http://thread.gmane.org/gmane.comp.emulators.qemu/195931/focus=195932 > http://thread.gmane.org/gmane.comp.emulators.qemu/195931/focus=196081 > > - there was a patch to distinguish soft reset from hard reset: > http://thread.gmane.org/gmane.comp.emulators.qemu/195351 This is still planned, but it won't touch the PAM registers so as not to break S3. Peter Stuge said that the memory controller registers keep their content across S3 in real machines too. > - another approach for soft vs. hard, and how it relates to resume: > http://thread.gmane.org/gmane.comp.emulators.qemu/198545/focus=198546 > > I believe currently qemu doesn't distinguish soft from hard reset. Hard > reset would have to reset PAM registers, soft reset must not. Hard reset = powerdown, soft reset = reset or S3. QEMU only cares about soft reset. There is one case where that matters, which is "-no-shutdown -no-reboot". Here you can go to S4 or S5 and then type "cont", and the machine will behave as if you actually did a soft reset. I don't think it matters much in practice, though. Paolo