ia64/xen-unstable
view linux-2.6-xen-sparse/include/xen/hvm.h @ 13341:3040ba0f2d3d
When booting via xm, only run the bootloader if it's in non-interactive mode:
otherwise we lose the user's named kernel and try to bootload the temporary
file pygrub returned.
Signed-off-by: John Levon <john.levon@sun.com>
otherwise we lose the user's named kernel and try to bootload the temporary
file pygrub returned.
Signed-off-by: John Levon <john.levon@sun.com>
author | Tim Deegan <Tim.Deegan@xensource.com> |
---|---|
date | Tue Jan 09 13:24:45 2007 +0000 (2007-01-09) |
parents | 00a70786e550 |
children | 602d061ff51f |
line source
1 /* Simple wrappers around HVM functions */
2 #ifndef XEN_HVM_H__
3 #define XEN_HVM_H__
5 #include <xen/interface/hvm/params.h>
6 #include <asm/hypercall.h>
8 static inline unsigned long hvm_get_parameter(int idx)
9 {
10 struct xen_hvm_param xhv;
11 int r;
13 xhv.domid = DOMID_SELF;
14 xhv.index = idx;
15 r = HYPERVISOR_hvm_op(HVMOP_get_param, &xhv);
16 if (r < 0) {
17 printk(KERN_ERR "cannot get hvm parameter %d: %d.\n",
18 idx, r);
19 return 0;
20 }
21 return xhv.value;
22 }
24 #endif /* XEN_HVM_H__ */