Statistics
| Branch: | Revision:

root / ioport.c @ 992aeb8e

History | View | Annotate | Download (13.3 kB)

# Date Author Comment
022c62cb 12/19/2012 09:31 am Paolo Bonzini

exec: move include files to include/exec/

Signed-off-by: Paolo Bonzini <>

4200872b 03/19/2012 03:17 pm Blue Swirl

ioport: use INT64_MAX for IO ranges

Expression UINT64_MAX + 1 will make the range bigger than
what can be represented with a 64 bit type. This would
trigger an assert in int128_get64() after the next patch.

Signed-off-by: Blue Swirl <>...

c5b703ac 03/05/2012 05:36 pm Avi Kivity

ioport: add destructor method to IORange

Previously all callers had a containing object with a destructor that
could be used to trigger cleanup of the IORange objects (typically
just freeing the containing object), but a forthcoming memory API
change doesn't fit this pattern. Rather than setting up a new global...

de58ac72 02/29/2012 01:44 pm Avi Kivity

ioport: change portio_list not to use memory_region_set_offset()

memory_region_set_offset() will be going away soon, so don't use it.
Use an alias instead.

Signed-off-by: Avi Kivity <>
Reviewed-by: Richard Henderson <>

6bf9fd43 10/11/2011 04:57 pm Avi Kivity

Introduce PortioList

Add a type and methods for manipulating a list of disjoint I/O ports,
used in some older hardware devices.

Based on original patch by Richard Henderson.

Signed-off-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>

bf3fb0e1 07/29/2011 04:25 pm Avi Kivity

ioport: register ranges by byte aligned addresses always

The I/O port space is byte addressable, even for word and long accesses.

An example is the VMware svga card, which has long ports on offsets 0,
1, and 2.

Reviewed-by: Anthony Liguori <>...

6141dbfe 07/23/2011 06:56 pm Paolo Bonzini

report serial devices created with -device in the PIIX4 config space

Serial and parallel devices created with -device are not reported in
the PIIX4 configuration space, and are hence not picked up by the DSDT.
This upsets Windows, which hides them altogether from the guest....

f66a99d7 03/06/2011 10:01 pm Andreas Färber

ioport: Improve error output

When failing due to conflicting I/O port registrations,
include the offending I/O port address in the message.

Cc: Aurelien Jarno <>
Signed-off-by: Andreas Färber <>
Signed-off-by: Aurelien Jarno <>

acd1c812 11/21/2010 05:16 pm Avi Kivity

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...

bd3c9aa5 09/10/2010 12:22 am Prerna Saxena

trace: Trace port IO

Signed-off-by: Prerna Saxena

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>

c227f099 10/02/2009 12:12 am Anthony Liguori

Revert "Get rid of _t suffix"

In the very least, a change like this requires discussion on the list.

The naming convention is goofy and it causes a massive merge problem. Something
like this must be presented on the list first so people can provide input...

99a0949b 10/01/2009 09:45 pm malc

Get rid of _t suffix

Some not so obvious bits, slirp and Xen were left alone for the time
being.

Signed-off-by: malc <>

afcea8cb 09/20/2009 07:05 pm Blue Swirl

ioports: remove unused env parameter and compile only once

The CPU state parameter is not used, remove it and adjust callers. Now we
can compile ioport.c once for all targets.

Signed-off-by: Blue Swirl <>

1dde6fcc 09/06/2009 07:32 pm Blue Swirl

Make ioport default tables const

Signed-off-by: Blue Swirl <>

4a1418e0 08/24/2009 04:02 pm Anthony Liguori

Unbreak large mem support by removing kqemu

kqemu introduces a number of restrictions on the i386 target. The worst is that
it prevents large memory from working in the default build.

Furthermore, kqemu is fundamentally flawed in a number of ways. It relies on...

07323531 07/17/2009 01:28 am Isaku Yamahata

ioport: use uint{32, 16, 8}_t for ioport value and pio_addr_t for ioport address.

Using int for cpu_{in, out}[bwl] is inconsistent with other part
because for address or value, uintN_t is used by other qemu part.
At least, softmmu, CPU{Read, Write}MemoryFunc, pci, target_phys_addr_t...

fc7083b5 07/17/2009 01:28 am Isaku Yamahata

ioport: remove some #ifdef DEBUG_UNUSED_IOPORT.

remove some #ifdef DEBUG_UNUSED_IOPORT in ioport.c
and use PRIx32 where appropriate

Signed-off-by: Isaku Yamahata <>
Cc: Anthony Liguori <>
Cc: Paolo Bonzini <>...

d56dd6cf 07/10/2009 12:06 am Isaku Yamahata

use constant IOPORTS_MASK instead of 0xffff.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Anthony Liguori <>

23e0affd 07/10/2009 12:06 am Isaku Yamahata

ioport: consolidate duplicated logic in register_ioport_{read, write}().

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Anthony Liguori <>

32993977 07/10/2009 12:06 am Isaku Yamahata

split out ioport related stuffs from vl.c into ioport.c.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Anthony Liguori <>