The gnttab specific union member in struct file is no longer
needed, so remove it.
The gnttab file type and its associated handling can be removed, too,
as libxengnttab is now supplying a struct file_ops via a call of
alloc_file_type().
This removes all contents of CONFIG_LIBXENGNTTAB guarded sections, so
this config option can be removed.
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
endif
# Support legacy CONFIG_XC value
CONFIG_XC ?= $(libc)
-CONFIG-$(CONFIG_XC) += CONFIG_LIBXENGNTTAB
CONFIG-$(lwip) += CONFIG_LWIP
CONFIG_CONSFRONT = n
CONFIG_XENBUS = n
CONFIG_LIBXS = n
-CONFIG_LIBXENGNTTAB = n
CONFIG_LWIP = n
CONFIG_BALLOON = n
CONFIG_USE_XEN_CONSOLE = n
CONFIG_BALLOON = y
CONFIG_USE_XEN_CONSOLE = y
# The following are special: they need support from outside
-CONFIG_LIBXENGNTTAB = n
CONFIG_LWIP = n
CONFIG_USE_XEN_CONSOLE = y
XEN_INTERFACE_VERSION=__XEN_LATEST_INTERFACE_VERSION__
# The following are special: they need support from outside
-CONFIG_LIBXENGNTTAB = n
CONFIG_LWIP = n
*
* Diego Ongaro <diego.ongaro@citrix.com>, July 2008
*
- * Files of type FTYPE_GNTMAP contain a gntmap, which is an array of
+ * Files of libxengnttab contain a gntmap, which is an array of
* (host address, grant handle) pairs. Grant handles come from a hypervisor map
* operation and are needed for the corresponding unmap.
*
#define FTYPE_TPMFRONT 10
#define FTYPE_TPM_TIS 11
#define FTYPE_XENBUS 12
-#define FTYPE_GNTMAP 13
-#define FTYPE_N 14
+#define FTYPE_N 13
#define FTYPE_SPARE 16
struct file {
union {
int fd; /* Any fd from an upper layer. */
void *dev;
- struct gntmap gntmap;
};
};
res = lwip_close(files[fd].fd);
break;
#endif
-#ifdef CONFIG_LIBXENGNTTAB
- case FTYPE_GNTMAP:
- minios_gnttab_close_fd(fd);
- break;
-#endif
#ifdef CONFIG_NETFRONT
case FTYPE_TAP:
shutdown_netfront(files[fd].dev);