libxl/xl: implement support for guest ioport and irq permissions.
authorIan Campbell <ian.campbell@citrix.com>
Mon, 3 Sep 2012 10:21:59 +0000 (11:21 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 3 Sep 2012 10:21:59 +0000 (11:21 +0100)
commit203fbef2fb5e60fe57347146ca20880aca6e5594
tree8f14c8d554c35fbc56928d332e800fd786ec44c4
parent8e66050e3223a9aa55ca29ec32b2e78c3e69e085
libxl/xl: implement support for guest ioport and irq permissions.

This is useful for passing legacy ISA devices (e.g. com ports,
parallel ports) to guests.

Supported syntax is as described in
http://cmrg.fifthhorseman.net/wiki/xen#grantingaccesstoserialhardwaretoadomU

I tested this using Xen's 'q' key handler which prints out the I/O
port and IRQ ranges allowed for each domain. e.g.:

(XEN) Rangesets belonging to domain 31:
(XEN)     I/O Ports  { 2e8-2ef, 2f8-2ff }
(XEN)     Interrupts { 3, 5-6 }

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Tested-by: Dieter Bloms <dieter@bloms.de>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
docs/man/xl.cfg.pod.5
tools/libxl/libxl_create.c
tools/libxl/libxl_types.idl
tools/libxl/xl_cmdimpl.c