ia64/linux-2.6.18-xen.hg

view include/xen/compat_ioctl.h @ 452:c7ed6fe5dca0

kexec: dont initialise regions in reserve_memory()

There is no need to initialise efi_memmap_res and boot_param_res in
reserve_memory() for the initial xen domain as it is done in
machine_kexec_setup_resources() using values from the kexec hypercall.

Signed-off-by: Simon Horman <horms@verge.net.au>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 28 10:55:18 2008 +0000 (2008-02-28)
parents e5f633c33025
children
line source
1 /*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License as
4 * published by the Free Software Foundation; either version 2 of the
5 * License, or (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15 *
16 * Copyright IBM Corp. 2007
17 *
18 * Authors: Jimi Xenidis <jimix@watson.ibm.com>
19 * Hollis Blanchard <hollisb@us.ibm.com>
20 */
22 #ifndef __LINUX_XEN_COMPAT_H__
23 #define __LINUX_XEN_COMPAT_H__
25 #include <linux/compat.h>
27 extern int privcmd_ioctl_32(int fd, unsigned int cmd, unsigned long arg);
28 struct privcmd_mmap_32 {
29 int num;
30 domid_t dom;
31 compat_uptr_t entry;
32 };
34 struct privcmd_mmapbatch_32 {
35 int num; /* number of pages to populate */
36 domid_t dom; /* target domain */
37 __u64 addr; /* virtual address */
38 compat_uptr_t arr; /* array of mfns - top nibble set on err */
39 };
40 #define IOCTL_PRIVCMD_MMAP_32 \
41 _IOC(_IOC_NONE, 'P', 2, sizeof(struct privcmd_mmap_32))
42 #define IOCTL_PRIVCMD_MMAPBATCH_32 \
43 _IOC(_IOC_NONE, 'P', 3, sizeof(struct privcmd_mmapbatch_32))
45 #endif /* __LINUX_XEN_COMPAT_H__ */