Avi Kivity acd1c812b5 Type-safe ioport callbacks
The current ioport callbacks are not type-safe, in that they accept an "opaque"
pointer as an argument whose type must match the argument to the registration
function; this is not checked by the compiler.

This patch adds an alternative that is type-safe.  Instead of an opaque
argument, both registation and the callback use a new IOPort type.  The
callback then uses container_of() to access its main structures.

Currently the old and new methods exist side by side; once the old way is gone,
we can also save a bunch of memory since the new method requires one pointer
per ioport instead of 6.

Acked-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2010-11-21 09:16:57 -06:00
2010-11-07 15:10:40 +00:00
2010-07-13 18:18:23 +02:00
2010-11-21 09:16:57 -06:00
2010-11-21 09:16:57 -06:00
2010-10-22 10:08:37 -02:00
2010-10-23 14:47:13 +00:00
2010-11-04 12:52:16 +01:00
2010-11-01 00:54:06 +03:00
2010-09-10 18:47:31 +00:00
2010-10-20 16:15:04 -05:00
2010-10-20 16:15:04 -05:00
2010-10-20 16:15:04 -05:00
2010-10-03 06:34:51 +00:00
2010-10-20 16:15:04 -05:00
2010-11-21 09:16:57 -06:00
2010-11-21 09:16:57 -06:00
2010-11-21 09:16:57 -06:00
2010-10-20 16:15:04 -05:00
2010-10-20 16:15:04 -05:00
2010-09-07 13:46:17 +02:00
2010-10-06 18:24:37 +02:00
2010-10-30 08:02:40 +00:00
2010-09-22 20:05:23 +00:00
2010-10-03 06:34:51 +00:00
2010-10-08 12:49:51 +02:00
2010-09-21 18:36:42 +02:00
2010-11-02 00:41:04 +03:00
2010-10-22 14:49:35 +02:00
2010-10-22 14:49:35 +02:00
2010-09-21 15:39:42 +02:00
2010-10-03 06:34:51 +00:00
2010-10-03 06:34:51 +00:00
2010-10-01 10:12:43 -03:00
2010-09-18 05:53:14 +00:00
2010-10-23 14:47:13 +00:00
2010-11-01 17:57:12 +03:00
2010-11-21 09:16:57 -06:00
2010-07-28 07:58:15 -05:00
2010-11-21 09:16:57 -06:00

Read the documentation in qemu-doc.html.

Fabrice Bellard.
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%