aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>2004-08-18 16:59:54 +0000
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>2004-08-18 16:59:54 +0000
commitac4241f8e2a8885760d6b41928e71a83944f76ea (patch)
tree36644b48042ae849f49f6a1a3ea3e1c223932e74
parent10e86bfd12c52ba7de869a8429ad60975e5c2621 (diff)
downloadxen-ac4241f8e2a8885760d6b41928e71a83944f76ea.tar.gz
xen-ac4241f8e2a8885760d6b41928e71a83944f76ea.tar.bz2
xen-ac4241f8e2a8885760d6b41928e71a83944f76ea.zip
bitkeeper revision 1.1159.40.1 (41238b0aeIY1yNNg2yYui_jKDRtRPA)
dom_mem_ops fixup
-rw-r--r--linux-2.6.7-xen-sparse/drivers/xen/netfront/netfront.c2
-rw-r--r--xen/common/dom_mem_ops.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/linux-2.6.7-xen-sparse/drivers/xen/netfront/netfront.c b/linux-2.6.7-xen-sparse/drivers/xen/netfront/netfront.c
index 118577ef3e..176cd90dc3 100644
--- a/linux-2.6.7-xen-sparse/drivers/xen/netfront/netfront.c
+++ b/linux-2.6.7-xen-sparse/drivers/xen/netfront/netfront.c
@@ -285,7 +285,7 @@ static void network_alloc_rx_buffers(struct net_device *dev)
rx_mcl[nr_pfns].args[0] = MEMOP_decrease_reservation;
rx_mcl[nr_pfns].args[1] = (unsigned long)rx_pfn_array;
rx_mcl[nr_pfns].args[2] = (unsigned long)nr_pfns;
- rx_mcl[nr_pfns].args[3] = 0;
+ rx_mcl[nr_pfns].args[3] = DOMID_SELF;
/* Zap PTEs and give away pages in one big multicall. */
(void)HYPERVISOR_multicall(rx_mcl, nr_pfns+1);
diff --git a/xen/common/dom_mem_ops.c b/xen/common/dom_mem_ops.c
index e364a46a68..1f61c240fa 100644
--- a/xen/common/dom_mem_ops.c
+++ b/xen/common/dom_mem_ops.c
@@ -98,7 +98,7 @@ long do_dom_mem_op(unsigned int op,
struct domain *d;
long rc;
- d = (domid == DOMID_SELF) ? current : find_domain_by_id(domid);
+ d = ( (domid == DOMID_SELF) || (!IS_PRIV(current)) ) ? current : find_domain_by_id(domid);
if ( d == NULL )
return -ESRCH;