[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/2] lan9118: log and ignore access to invalid r
From: |
Andrew Baumann |
Subject: |
Re: [Qemu-devel] [PATCH 2/2] lan9118: log and ignore access to invalid registers, rather than aborting |
Date: |
Mon, 7 Dec 2015 05:20:07 +0000 |
> From: Jason Wang [mailto:address@hidden
> Sent: Sunday, 6 December 2015 18:44
> On 12/05/2015 02:58 AM, Andrew Baumann wrote:
> > With this change, access to invalid/unimplemented device registers are
> > logged as a "guest error" rather than aborting qemu with
> > hw_error. This enables drivers for similar devices (e.g. SMSC 9221),
> > by simply ignoring the unimplemented writes. It's also closer to what
> > real hardware does.
> >
> > Signed-off-by: Andrew Baumann <address@hidden>
> > ---
> > hw/net/lan9118.c | 12 ++++++++----
> > 1 file changed, 8 insertions(+), 4 deletions(-)
>
> Applied in my -net for 2.5. Thanks
>
> Btw, looks like there're two more hw_error() in this file, better remove
> them also?
Yeah, I considered doing that, but figured that those cases (incorrectly-sized
register writes in 16-bit mode) are indicative of a pretty badly screwed-up
guest, and was going for a minimal patch. It probably makes sense to change
them for consistency, though.
Andrew
- [Qemu-devel] [PATCH 0/2] minor fixes to lan9118 emulation, Andrew Baumann, 2015/12/04
- [Qemu-devel] [PATCH 1/2] lan9118: fix emulation of MAC address loaded bit in E2P_CMD register, Andrew Baumann, 2015/12/04
- [Qemu-devel] [PATCH 2/2] lan9118: log and ignore access to invalid registers, rather than aborting, Andrew Baumann, 2015/12/04
- Re: [Qemu-devel] [PATCH 2/2] lan9118: log and ignore access to invalid registers, rather than aborting, Jason Wang, 2015/12/06
- Re: [Qemu-devel] [PATCH 2/2] lan9118: log and ignore access to invalid registers, rather than aborting,
Andrew Baumann <=
- Re: [Qemu-devel] [PATCH 2/2] lan9118: log and ignore access to invalid registers, rather than aborting, Paolo Bonzini, 2015/12/07
- Re: [Qemu-devel] [PATCH 2/2] lan9118: log and ignore access to invalid registers, rather than aborting, Andrew Baumann, 2015/12/07
- Re: [Qemu-devel] [PATCH 2/2] lan9118: log and ignore access to invalid registers, rather than aborting, Paolo Bonzini, 2015/12/09