From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin O'Connor Subject: Re: [PATCH] SeaBios: Fix reset procedure reentrancy problem on qemu-kvm platform Date: Tue, 22 Dec 2015 10:38:43 -0500 Message-ID: <20151222153843.GA18343@morn.lan> References: <33183CC9F5247A488A2544077AF19020B02B72BA@SZXEMA503-MBS.china.huawei.com> <20151218231326.GA4138@morn.lan> <33183CC9F5247A488A2544077AF19020B02B7A73@SZXEMA503-MBS.china.huawei.com> <20151219151159.GA22542@morn.lan> <33183CC9F5247A488A2544077AF19020B02B7BC2@SZXEMA503-MBS.china.huawei.com> <20151220143320.GA23942@morn.lan> <33183CC9F5247A488A2544077AF19020B02B7D39@SZXEMA503-MBS.china.huawei.com> <20151221184714.GB27329@morn.lan> <33183CC9F5247A488A2544077AF19020B02B81F5@SZXEMA503-MBS.china.huawei.com> <8E78D212B8C25246BE4CE7EA0E645FE52E3CE0@SZXEMI504-MBS.china.huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Huangweidong \(C\)" , "kvm@vger.kernel.org" , Radim Krcmar , "seabios@seabios.org" , qemu-devel , Paolo Bonzini To: "Xulei (Stone)" Return-path: Content-Disposition: inline In-Reply-To: <8E78D212B8C25246BE4CE7EA0E645FE52E3CE0@SZXEMI504-MBS.china.huawei.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org List-Id: kvm.vger.kernel.org On Tue, Dec 22, 2015 at 03:15:26AM +0000, Xulei (Stone) wrote: > Hi, Kevin, > Can you tell how to reset/reboot this VM, if it goes to the handle_hwpic1() > on its booting procedure? I mean, usually, SeaBIOS would not go to > handle_hwpic routine. But in my test case, SeaBIOS calls handle_hwpic when > KVM injects a #UD expcetion (not irq) and SeaBIOS will loop to handle this > if KVM persistently injects exception. > > Now, i just wish to reset/reboot this VM if it is fall into handle_hwpic. I > tried follwing patch and it seems not work. What can i do to force reset/reboot? Call the reset() function. -Kevin From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBP1U-0001lM-GF for qemu-devel@nongnu.org; Tue, 22 Dec 2015 10:38:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBP1R-0003R0-Qw for qemu-devel@nongnu.org; Tue, 22 Dec 2015 10:38:48 -0500 Received: from mail-qg0-x235.google.com ([2607:f8b0:400d:c04::235]:34157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBP1R-0003Qq-Lf for qemu-devel@nongnu.org; Tue, 22 Dec 2015 10:38:45 -0500 Received: by mail-qg0-x235.google.com with SMTP id 74so65625206qgh.1 for ; Tue, 22 Dec 2015 07:38:45 -0800 (PST) Date: Tue, 22 Dec 2015 10:38:43 -0500 From: Kevin O'Connor Message-ID: <20151222153843.GA18343@morn.lan> References: <33183CC9F5247A488A2544077AF19020B02B72BA@SZXEMA503-MBS.china.huawei.com> <20151218231326.GA4138@morn.lan> <33183CC9F5247A488A2544077AF19020B02B7A73@SZXEMA503-MBS.china.huawei.com> <20151219151159.GA22542@morn.lan> <33183CC9F5247A488A2544077AF19020B02B7BC2@SZXEMA503-MBS.china.huawei.com> <20151220143320.GA23942@morn.lan> <33183CC9F5247A488A2544077AF19020B02B7D39@SZXEMA503-MBS.china.huawei.com> <20151221184714.GB27329@morn.lan> <33183CC9F5247A488A2544077AF19020B02B81F5@SZXEMA503-MBS.china.huawei.com> <8E78D212B8C25246BE4CE7EA0E645FE52E3CE0@SZXEMI504-MBS.china.huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8E78D212B8C25246BE4CE7EA0E645FE52E3CE0@SZXEMI504-MBS.china.huawei.com> Subject: Re: [Qemu-devel] [PATCH] SeaBios: Fix reset procedure reentrancy problem on qemu-kvm platform List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Xulei (Stone)" Cc: "Huangweidong (C)" , "kvm@vger.kernel.org" , Radim Krcmar , "seabios@seabios.org" , qemu-devel , Paolo Bonzini On Tue, Dec 22, 2015 at 03:15:26AM +0000, Xulei (Stone) wrote: > Hi, Kevin, > Can you tell how to reset/reboot this VM, if it goes to the handle_hwpic1() > on its booting procedure? I mean, usually, SeaBIOS would not go to > handle_hwpic routine. But in my test case, SeaBIOS calls handle_hwpic when > KVM injects a #UD expcetion (not irq) and SeaBIOS will loop to handle this > if KVM persistently injects exception. > > Now, i just wish to reset/reboot this VM if it is fall into handle_hwpic. I > tried follwing patch and it seems not work. What can i do to force reset/reboot? Call the reset() function. -Kevin