ia64/xen-unstable

changeset 11978:40107f658bd9

[LINUX] Exclude support for /proc/xen/xsd_kva when building a
non-privileged guest.

This is useful for PV-on-HVM because it removes code which would
otherwise require extra code in the compatability shim.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian Campbell <ian.campbell@xensource.com>
date Wed Oct 25 13:58:30 2006 +0100 (2006-10-25)
parents bd643d9db838
children 8102ccad440d
files linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Wed Oct 25 13:58:30 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Wed Oct 25 13:58:30 2006 +0100
     1.3 @@ -781,7 +781,7 @@ void xenbus_probe(void *unused)
     1.4  }
     1.5  
     1.6  
     1.7 -#ifdef CONFIG_PROC_FS
     1.8 +#if defined(CONFIG_PROC_FS) && defined(CONFIG_XEN_PRIVILEGED_GUEST)
     1.9  static struct file_operations xsd_kva_fops;
    1.10  static struct proc_dir_entry *xsd_kva_intf;
    1.11  static struct proc_dir_entry *xsd_port_intf;
    1.12 @@ -862,7 +862,7 @@ static int __init xenbus_probe_init(void
    1.13  		xen_store_evtchn = xen_start_info->store_evtchn =
    1.14  			alloc_unbound.port;
    1.15  
    1.16 -#ifdef CONFIG_PROC_FS
    1.17 +#if defined(CONFIG_PROC_FS) && defined(CONFIG_XEN_PRIVILEGED_GUEST)
    1.18  		/* And finally publish the above info in /proc/xen */
    1.19  		xsd_kva_intf = create_xen_proc_entry("xsd_kva", 0600);
    1.20  		if (xsd_kva_intf) {