# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 15dc55145e5582de59f22ff7af03e32cf26d623a
# Parent f41c33671a43627efaf3f563a2e66b06a1731531
Added xc_domain_ioport_permission to libxc, which wraps the dom0 op
Signed-off-by: Jody Belka <knew (at) pimb (dot) org>
diff -r f41c33671a43 -r 15dc55145e55 tools/libxc/xc_domain.c
--- a/tools/libxc/xc_domain.c Sun Nov 6 15:39:02 2005
+++ b/tools/libxc/xc_domain.c Sun Nov 6 15:39:55 2005
@@ -364,6 +364,23 @@
return rc;
}
+int xc_domain_ioport_permission(int xc_handle,
+ uint32_t domid,
+ uint16_t first_port,
+ uint16_t nr_ports,
+ uint16_t allow_access)
+{
+ dom0_op_t op;
+
+ op.cmd = DOM0_IOPORT_PERMISSION;
+ op.u.ioport_permission.domain = (domid_t)domid;
+ op.u.ioport_permission.first_port = first_port;
+ op.u.ioport_permission.nr_ports = nr_ports;
+ op.u.ioport_permission.allow_access = allow_access;
+
+ return do_dom0_op(xc_handle, &op);
+}
+
/*
* Local variables:
* mode: C
diff -r f41c33671a43 -r 15dc55145e55 tools/libxc/xenctrl.h
--- a/tools/libxc/xenctrl.h Sun Nov 6 15:39:02 2005
+++ b/tools/libxc/xenctrl.h Sun Nov 6 15:39:55 2005
@@ -371,6 +371,12 @@
unsigned int extent_order,
unsigned long *extent_start);
+int xc_domain_ioport_permission(int xc_handle,
+ uint32_t domid,
+ uint16_t first_port,
+ uint16_t nr_ports,
+ uint16_t allow_access);
+
unsigned long xc_make_page_below_4G(int xc_handle, uint32_t domid,
unsigned long mfn);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|