debuggers.hg

view tools/xenpaging/mem_event.h @ 21067:b4a1832a916f

Update Xen version to 4.0.0-rc6
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 09 18:18:05 2010 +0000 (2010-03-09)
parents 47ec2d131c22
children 60782cefa154
line source
1 /******************************************************************************
2 * tools/xenpaging/mem_event.h
3 *
4 * Memory event structures.
5 *
6 * Copyright (c) 2009 Citrix Systems, Inc. (Patrick Colp)
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
24 #ifndef __XEN_MEM_EVENT_H__
25 #define __XEN_MEM_EVENT_H__
28 #include "spinlock.h"
29 #include "xc.h"
30 #include <xc_private.h>
32 #include <xen/event_channel.h>
33 #include <xen/mem_event.h>
36 #define mem_event_ring_lock_init(_m) spin_lock_init(&(_m)->ring_lock)
37 #define mem_event_ring_lock(_m) spin_lock(&(_m)->ring_lock)
38 #define mem_event_ring_unlock(_m) spin_unlock(&(_m)->ring_lock)
41 typedef struct mem_event {
42 domid_t domain_id;
43 int xce_handle;
44 int port;
45 mem_event_back_ring_t back_ring;
46 mem_event_shared_page_t *shared_page;
47 void *ring_page;
48 spinlock_t ring_lock;
49 } mem_event_t;
52 #endif // __XEN_MEM_EVENT_H__
55 /*
56 * Local variables:
57 * mode: C
58 * c-set-style: "BSD"
59 * c-basic-offset: 4
60 * tab-width: 4
61 * indent-tabs-mode: nil
62 * End:
63 */