[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCHv3] qxl: abort on panic instead of exit
From: |
Alon Levy |
Subject: |
Re: [Qemu-devel] [PATCHv3] qxl: abort on panic instead of exit |
Date: |
Wed, 29 Jun 2011 16:24:08 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Jun 29, 2011 at 02:44:11PM +0200, Gerd Hoffmann wrote:
> On 06/29/11 13:57, Alon Levy wrote:
> >---
> > hw/qxl.h | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> >diff --git a/hw/qxl.h b/hw/qxl.h
> >index 7df594e..bf875a0 100644
> >--- a/hw/qxl.h
> >+++ b/hw/qxl.h
> >@@ -89,7 +89,7 @@ typedef struct PCIQXLDevice {
> >
> > #define PANIC_ON(x) if ((x)) { \
> > printf("%s: PANIC %s failed\n", __FUNCTION__, #x); \
> >- exit(-1); \
> >+ abort(); \
> > }
>
> Not urgent, but I think this should change. A bunch of the PANIC_ON
> checks are guest-triggerable. Long-term I want invalid requests
> from the guest just be ignored by default. Keeping an option to do
> something else is fine (log a message, abort, write out guest dump,
> whatever), I see that this can be quite useful for guest driver
> debugging.
Agreed. So keep PANIC_ON but remove a lot of it's users, or add some wrapper
that depends on a "guest_panic" parameter that defaults off.
>
> cheers,
> Gerd
- [Qemu-devel] [PATCHv3] qxl S3&S4 (suspend and hibernate) support, Alon Levy, 2011/06/29
- [Qemu-devel] [PATCHv3] async io: suggested fixes, Alon Levy, 2011/06/29
- [Qemu-devel] [PATCHv3] async thread fix - handle EAGAIN/EINTR, remove fprintf, Alon Levy, 2011/06/29
- [Qemu-devel] [PATCHv3] qxl: use track_lock instead of wlock for guest_surfaces, Alon Levy, 2011/06/29
- [Qemu-devel] [PATCHv3] qxl: add mode to debugprint on destroy primary, Alon Levy, 2011/06/29
- [Qemu-devel] [PATCHv3] qxl: allow QXL_IO_LOG also in vga, Alon Levy, 2011/06/29
- [Qemu-devel] [PATCHv3] qxl: abort on panic instead of exit, Alon Levy, 2011/06/29
- [Qemu-devel] [PATCHv3] qxl-logger: add timestamp to command log, Alon Levy, 2011/06/29
- [Qemu-devel] [PATCHv3] qxl: update and add debug prints, Alon Levy, 2011/06/29
[Qemu-devel] [PATCHv3] qxl: add dev id to guest prints, Alon Levy, 2011/06/29
[Qemu-devel] [PATCHv3] qxl: add io_port_to_string, Alon Levy, 2011/06/29