[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [PATCH] ioport/memory: check that both .read and .wri
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-trivial] [PATCH] ioport/memory: check that both .read and .write callbacks are defined |
Date: |
Mon, 10 Jun 2013 07:27:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130513 Thunderbird/17.0.6 |
Hi,
> Maybe instead (or in addition to), we should provide a dummy
> read or write functions -- instead of fixing each such occurence
> to use its own dummy function
Makes sense, especially for write where we can just ignore what the
guest attempts to write. Not sure we can have a generic handler for
reads. Maybe two, one which returns 0xff and one which returns 0x00.
cheers,
Gerd