debuggers.hg

view xen/include/asm-x86/mem_event.h @ 22855:1d1eec7e1fb4

xl: Perform minimal validation of virtual disk file while parsing config file

This patch performs some very basic validation on the virtual disk
file passed through the config file. This validation ensures that we
don't go too far with the initialization like spawn qemu and more
while there could be some potentially fundamental issues.

[ Patch fixed up to work with PHYSTYPE_EMPTY 22808:6ec61438713a -iwj ]

Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Kamala Narasimhan <kamala.narasimhan@gmail.com>
date Tue Jan 25 18:09:49 2011 +0000 (2011-01-25)
parents 02efc054da7b
children
line source
1 /******************************************************************************
2 * include/asm-x86/mem_event.h
3 *
4 * Common interface for memory event support.
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 __MEM_EVENT_H__
25 #define __MEM_EVENT_H__
27 /* Pauses VCPU while marking pause flag for mem event */
28 void mem_event_mark_and_pause(struct vcpu *v);
29 int mem_event_check_ring(struct domain *d);
30 void mem_event_put_request(struct domain *d, mem_event_request_t *req);
31 void mem_event_get_response(struct domain *d, mem_event_response_t *rsp);
32 void mem_event_unpause_vcpus(struct domain *d);
34 int mem_event_domctl(struct domain *d, xen_domctl_mem_event_op_t *mec,
35 XEN_GUEST_HANDLE(void) u_domctl);
38 #endif /* __MEM_EVENT_H__ */
41 /*
42 * Local variables:
43 * mode: C
44 * c-set-style: "BSD"
45 * c-basic-offset: 4
46 * indent-tabs-mode: nil
47 * End:
48 */