### tmem
> `= <boolean>`
+This option (and its underlying code) is going to go away in a future
+Xen version.
+
### tmem_compress
> `= <boolean>`
+This option (and its underlying code) is going to go away in a future
+Xen version.
+
### tsc (x86)
> `= unstable | skewed | stable:socket`
If unsure, say Y.
config TMEM
- def_bool y
- prompt "Transcendent Memory Support" if EXPERT = "y"
+ bool "Transcendent Memory Support (deprecated)" if EXPERT = "y"
---help---
Transcendent memory allows PV-aware guests to collaborate on memory
usage. Guests can 'swap' their memory to the hypervisor or have an
collective pool of memory shared across guests. The end result is
less memory usage by guests allowing higher guest density.
- You also have to enable it on the Xen commandline by using tmem=1
+ You also have to enable it on the Xen commandline by using tmem=1.
- If unsure, say Y.
+ WARNING: This option (and its underlying code) is going to go away
+ in a future Xen version.
+
+ If unsure, say N.
config XENOPROF
def_bool y
obj-y += lib.o
obj-$(CONFIG_NEEDS_LIST_SORT) += list_sort.o
obj-$(CONFIG_LIVEPATCH) += livepatch.o livepatch_elf.o
-obj-y += lzo.o
+obj-$(CONFIG_TMEM) += lzo.o
obj-$(CONFIG_MEM_ACCESS) += mem_access.o
obj-y += memory.o
obj-y += monitor.o
obj-$(CONFIG_XENOPROF) += xenoprof.o
obj-y += xmalloc_tlsf.o
-obj-bin-$(CONFIG_X86) += $(foreach n,decompress bunzip2 unxz unlzma unlzo unlz4 earlycpio,$(n).init.o)
-
+lzo-y := lzo
+lzo-$(CONFIG_TMEM) :=
+obj-bin-$(CONFIG_X86) += $(foreach n,decompress bunzip2 unxz unlzma $(lzo-y) unlzo unlz4 earlycpio,$(n).init.o)
obj-$(CONFIG_COMPAT) += $(addprefix compat/,domain.o kernel.o memory.o multicall.o xlat.o)
#define get_unaligned_le16(_p) (*(u16 *)(_p))
#define get_unaligned_le32(_p) (*(u32 *)(_p))
+#ifdef CONFIG_TMEM
+
static noinline size_t
lzo1x_1_do_compress(const unsigned char *in, size_t in_len,
unsigned char *out, size_t *out_len,
return LZO_E_OK;
}
+# define INIT
+#else /* CONFIG_TMEM */
+# include "decompress.h"
+#endif /* CONFIG_TMEM */
+
/*
* LZO1X Decompressor from LZO
*
*/
#define MAX_255_COUNT ((((size_t)~0) / 255) - 2)
-int lzo1x_decompress_safe(const unsigned char *in, size_t in_len,
- unsigned char *out, size_t *out_len)
+int INIT lzo1x_decompress_safe(const unsigned char *in, size_t in_len,
+ unsigned char *out, size_t *out_len)
{
unsigned char *op;
const unsigned char *ip;