ia64/xen-unstable

view tools/libxc/xc_physdev.c @ 4895:24dfd18ea63e

bitkeeper revision 1.1159.258.120 (42848bfe8kMyWWcBA64rq7h7l7AyoA)

Shadow code bug fix (found by Ian) that was breaking refcounts, and subsequently
causing migration problems.
author mafetter@fleming.research
date Fri May 13 11:14:06 2005 +0000 (2005-05-13)
parents 236a9f2698a3
children 49599761f3ce 39bfbd5ae9b8
line source
1 /******************************************************************************
2 * xc_physdev.c
3 *
4 * API for manipulating physical-device access permissions.
5 *
6 * Copyright (c) 2004, Rolf Neugebauer (Intel Research Cambridge)
7 * Copyright (c) 2004, K A Fraser (University of Cambridge)
8 */
10 #include "xc_private.h"
12 int xc_physdev_pci_access_modify(int xc_handle,
13 u32 domid,
14 int bus,
15 int dev,
16 int func,
17 int enable)
18 {
19 dom0_op_t op;
21 op.cmd = DOM0_PCIDEV_ACCESS;
22 op.u.pcidev_access.domain = (domid_t)domid;
23 op.u.pcidev_access.bus = bus;
24 op.u.pcidev_access.dev = dev;
25 op.u.pcidev_access.func = func;
26 op.u.pcidev_access.enable = enable;
28 return do_dom0_op(xc_handle, &op);
29 }