kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kevin O'Connor <kevin@koconnor.net>
To: "Gonglei (Arei)" <arei.gonglei@huawei.com>
Cc: "Huangweidong \(C\)" <weidong.huang@huawei.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	Radim Krcmar <rkrcmar@redhat.com>,
	"seabios@seabios.org" <seabios@seabios.org>,
	"Xulei \(Stone\)" <stone.xulei@huawei.com>,
	qemu-devel <qemu-devel@nongnu.org>,
	Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH] SeaBios: Fix reset procedure reentrancy problem on qemu-kvm platform
Date: Mon, 21 Dec 2015 13:47:14 -0500	[thread overview]
Message-ID: <20151221184714.GB27329@morn.lan> (raw)
In-Reply-To: <33183CC9F5247A488A2544077AF19020B02B7D39@SZXEMA503-MBS.china.huawei.com>

On Mon, Dec 21, 2015 at 09:41:32AM +0000, Gonglei (Arei) wrote:
> When the gurb of OS is booting, then the softirq and C function send_disk_op()
> may use extra stack of SeaBIOS. If we inject a NMI, romlayout.S: irqentry_extrastack
> is invoked, and the extra stack will be used again. And the stack of first calling
> will be broken, so that the SeaBIOS stuck. 
> 
> You can easily reproduce the problem.
> 
> 1. start on guest
> 2. reset the guest
> 3. inject a NMI when the guest show the grub surface
> 4. then the guest stuck

Does the SeaBIOS patch below help?  I'm not familiar with how to
"inject a NMI" - can you describe the process in more detail?

-Kevin


--- a/src/romlayout.S
+++ b/src/romlayout.S
@@ -548,7 +548,9 @@ entry_post:
         ENTRY_INTO32 _cfunc32flat_handle_post   // Normal entry point
 
         ORG 0xe2c3
-        IRQ_ENTRY 02
+        .global entry_02
+entry_02:
+        ENTRY handle_02  // NMI handler does not switch onto extra stack
 
         ORG 0xe3fe
         .global entry_13_official

  reply	other threads:[~2015-12-21 18:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8E78D212B8C25246BE4CE7EA0E645FE5291A08@SZXEMI504-MBS.china.huawei.com>
     [not found] ` <563955D4.7080000@huawei.com>
     [not found]   ` <20151104174201.GA17784@morn.lan>
     [not found]     ` <8E78D212B8C25246BE4CE7EA0E645FE52977E8@SZXEMI504-MBS.china.huawei.com>
     [not found]       ` <20151109133253.GA1790@morn.lan>
     [not found]         ` <20151109200618.GA29129@morn.lan>
     [not found]           ` <20151109202726.GA31490@morn.lan>
     [not found]             ` <8E78D212B8C25246BE4CE7EA0E645FE52B5BE3@SZXEMI504-MBS.china.huawei.com>
     [not found]               ` <8E78D212B8C25246BE4CE7EA0E645FE52B72B7@SZXEMI504-MBS.china.huawei.com>
     [not found]                 ` <20151119134039.GA27717@morn.lan>
     [not found]                   ` <33183CC9F5247A488A2544077AF19020B02B72BA@SZXEMA503-MBS.china.huawei.com>
2015-12-18 23:13                     ` [Qemu-devel] [PATCH] SeaBios: Fix reset procedure reentrancy problem on qemu-kvm platform Kevin O'Connor
2015-12-19  6:28                       ` Gonglei (Arei)
2015-12-19 12:03                       ` Gonglei (Arei)
2015-12-19 15:11                         ` [Qemu-devel] " Kevin O'Connor
2015-12-20  9:49                           ` Gonglei (Arei)
2015-12-20 14:33                             ` [Qemu-devel] " Kevin O'Connor
2015-12-21  9:41                               ` Gonglei (Arei)
2015-12-21 18:47                                 ` Kevin O'Connor [this message]
2015-12-22  2:14                                   ` [Qemu-devel] " Gonglei (Arei)
2015-12-22  3:15                                     ` Xulei (Stone)
2015-12-22 15:38                                       ` Kevin O'Connor
2015-12-22 15:51                                     ` [Qemu-devel] " Kevin O'Connor
2015-12-23  6:40                                       ` Gonglei (Arei)
2015-12-23 18:06                                         ` [Qemu-devel] " Kevin O'Connor
2015-12-19  1:08                   ` Gonglei (Arei)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151221184714.GB27329@morn.lan \
    --to=kevin@koconnor.net \
    --cc=arei.gonglei@huawei.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rkrcmar@redhat.com \
    --cc=seabios@seabios.org \
    --cc=stone.xulei@huawei.com \
    --cc=weidong.huang@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).