Remove tmem
v2 cover Remove tmem
It is agreed that tmem can be removed from xen.git. See the thread starting from <[email protected]>.
In this version:
1. Remove some residuals from previous version and fix all build errors discovered by Gitlab CI.
2. Swap the order of patches to make sure bisection still works. This is verified by calling ./automation/scripts/build-test.sh origin/staging HEAD
3. Make sure Xen still boots and passes all XTF tests after the removal.
4. Keep public/tmem.h.
Wei Liu (3):
tools: remove tmem code and commands
xen: remove tmem from hypervisor
docs: remove tmem related text
docs/man/xl.conf.pod.5 | 9 +- docs/man/xl.pod.1.in | 68 - docs/misc/tmem-internals.html | 789 ---------- docs/misc/xen-command-line.markdown | 6 - docs/misc/xsm-flask.txt | 36 - tools/flask/policy/modules/dom0.te | 4 +- tools/flask/policy/modules/guest_features.te | 3 - tools/libxc/Makefile | 1 - tools/libxc/include/xenctrl.h | 17 - tools/libxc/xc_tmem.c | 507 ------- tools/libxl/libxl_tmem.c | 119 +- tools/misc/Makefile | 1 - tools/misc/xen-tmem-list-parse.c | 339 ----- tools/python/xen/lowlevel/xc/xc.c | 87 -- tools/xenstat/libxenstat/src/xenstat.c | 53 +- tools/xenstat/libxenstat/src/xenstat.h | 15 - tools/xenstat/libxenstat/src/xenstat_priv.h | 8 - tools/xenstat/xentop/xentop.c | 36 +- tools/xl/Makefile | 2 +- tools/xl/xl.h | 6 - tools/xl/xl_cmdtable.c | 40 - tools/xl/xl_tmem.c | 251 --- xen/arch/arm/configs/tiny64.conf | 1 - xen/arch/x86/configs/pvshim_defconfig | 1 - xen/arch/x86/guest/hypercall_page.S | 1 - xen/arch/x86/hvm/hypercall.c | 3 - xen/arch/x86/hypercall.c | 1 - xen/arch/x86/pv/hypercall.c | 3 - xen/arch/x86/setup.c | 8 - xen/common/Kconfig | 13 - xen/common/Makefile | 4 - xen/common/compat/tmem_xen.c | 23 - xen/common/domain.c | 3 - xen/common/memory.c | 5 +- xen/common/page_alloc.c | 40 +- xen/common/sysctl.c | 5 - xen/common/tmem.c | 2095 -------------------------- xen/common/tmem_control.c | 560 ------- xen/common/tmem_xen.c | 277 ---- xen/include/Makefile | 1 - xen/include/public/sysctl.h | 108 +- xen/include/public/tmem.h | 14 +- xen/include/xen/hypercall.h | 7 - xen/include/xen/mm.h | 2 + xen/include/xen/sched.h | 3 - xen/include/xen/tmem.h | 45 - xen/include/xen/tmem_control.h | 39 - xen/include/xen/tmem_xen.h | 343 ----- xen/include/xlat.lst | 2 - xen/include/xsm/dummy.h | 6 - xen/include/xsm/xsm.h | 6 - xen/xsm/dummy.c | 1 - xen/xsm/flask/hooks.c | 9 - xen/xsm/flask/policy/access_vectors | 4 - 54 files changed, 36 insertions(+), 5994 deletions(-) delete mode 100644 docs/misc/tmem-internals.html delete mode 100644 tools/libxc/xc_tmem.c delete mode 100644 tools/misc/xen-tmem-list-parse.c delete mode 100644 tools/xl/xl_tmem.c delete mode 100644 xen/common/compat/tmem_xen.c delete mode 100644 xen/common/tmem.c delete mode 100644 xen/common/tmem_control.c delete mode 100644 xen/common/tmem_xen.c delete mode 100644 xen/include/xen/tmem.h delete mode 100644 xen/include/xen/tmem_control.h delete mode 100644 xen/include/xen/tmem_xen.h
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH v2 1/3 tools: remove tmem code and commands
Remove all tmem related code in libxc.
Leave some stubs in libxl in case anyone has linked to those functions before the removal.
Remove all tmem related commands in xl, all tmem related code in other utilities we ship.
--- tools/libxc/Makefile | 1 - tools/libxc/include/xenctrl.h | 17 - tools/libxc/xc_tmem.c | 507 ---------------------------- tools/libxl/libxl_tmem.c | 119 +------ tools/misc/Makefile | 1 - tools/misc/xen-tmem-list-parse.c | 339 ------------------- tools/python/xen/lowlevel/xc/xc.c | 87 ----- tools/xenstat/libxenstat/src/xenstat.c | 53 +-- tools/xenstat/libxenstat/src/xenstat.h | 15 - tools/xenstat/libxenstat/src/xenstat_priv.h | 8 - tools/xenstat/xentop/xentop.c | 36 +- tools/xl/Makefile | 2 +- tools/xl/xl.h | 6 - tools/xl/xl_cmdtable.c | 40 --- tools/xl/xl_tmem.c | 251 -------------- 15 files changed, 18 insertions(+), 1464 deletions(-) delete mode 100644 tools/libxc/xc_tmem.c delete mode 100644 tools/misc/xen-tmem-list-parse.c delete mode 100644 tools/xl/xl_tmem.c
tools/libxc/Makefile +0 -1
@@ -30,7 +30,6 @@ CTRL_SRCS-y += xc_tbuf.c CTRL_SRCS-y += xc_pm.c CTRL_SRCS-y += xc_cpu_hotplug.c CTRL_SRCS-y += xc_resume.c -CTRL_SRCS-y += xc_tmem.c CTRL_SRCS-y += xc_vm_event.c CTRL_SRCS-y += xc_monitor.c CTRL_SRCS-y += xc_mem_paging.c
tools/libxc/include/xenctrl.h +0 -17
@@ -44,7 +44,6 @@#include <xen/hvm/dm_op.h> #include <xen/hvm/params.h> #include <xen/xsm/flask_op.h> -#include <xen/tmem.h> #include <xen/kexec.h> #include <xen/platform.h>
@@ -1907,22 +1906,6 @@ int xc_set_cpuidle_max_cstate(xc_interface *xch, uint32_t value);int xc_enable_turbo (xc_interface *xch,int cpuid);int xc_disable_turbo (xc_interface *xch,int cpuid); -/** -* tmem operations -*/ - -int xc_tmem_control_oid (xc_interface *xch,int32_t pool_id,uint32_t subop, -uint32_t cli_id,uint32_t len,uint32_t arg, -struct xen_tmem_oid oid,void *buf); -int xc_tmem_control (xc_interface *xch, -int32_t pool_id,uint32_t subop,uint32_t cli_id, -uint32_t len,uint32_t arg,void *buf); -int xc_tmem_auth (xc_interface *xch,int cli_id,char *uuid_str,int enable); -int xc_tmem_save (xc_interface *xch,uint32_t domid,int live,int fd,int field_marker); -int xc_tmem_save_extra (xc_interface *xch,uint32_t domid,int fd,int field_marker); -void xc_tmem_save_done (xc_interface *xch,uint32_t domid); -int xc_tmem_restore (xc_interface *xch,uint32_t domid,int fd); -int xc_tmem_restore_extra (xc_interface *xch,uint32_t domid,int fd);/** * altp2m operations
tools/libxc/xc_tmem.c deleted +0 -507
507 lines not on this page · raw message
tools/libxl/libxl_tmem.c +14 -105
160 lines not on this page · raw message
tools/misc/Makefile +0 -1
@@ -24,7 +24,6 @@ INSTALL_SBIN-$(CONFIG_X86) += xen-hvmctx INSTALL_SBIN-$(CONFIG_X86) += xen-lowmemd INSTALL_SBIN-$(CONFIG_X86) += xen-mfndump INSTALL_SBIN += xen-ringwatch -INSTALL_SBIN += xen-tmem-list-parse INSTALL_SBIN += xencov INSTALL_SBIN += xenlockprof INSTALL_SBIN += xenperf
tools/misc/xen-tmem-list-parse.c deleted +0 -339
339 lines not on this page · raw message
tools/python/xen/lowlevel/xc/xc.c +0 -87
105 lines not on this page · raw message
tools/xenstat/libxenstat/src/xenstat.c +1 -52
83 lines not on this page · raw message
tools/xenstat/libxenstat/src/xenstat.h +0 -15
@@ -27,7 +27,6 @@ typedef struct xenstat_node xenstat_node;typedef struct xenstat_vcpu xenstat_vcpu ;typedef struct xenstat_network xenstat_network ;typedef struct xenstat_vbd xenstat_vbd ; -typedef struct xenstat_tmem xenstat_tmem ;/* Initialize the xenstat library. Returns a handle to be used with * subsequent calls to the xenstat library, or NULL if an error occurs. */
@@ -70,9 +69,6 @@ unsigned long long xenstat_node_tot_mem(xenstat_node * node);/* Get amount of free memory on a node */ unsigned long long xenstat_node_free_mem (xenstat_node * node); -/* Get amount of tmem freeable memory (in MiB) on a node */ -long xenstat_node_freeable_mb (xenstat_node * node); -/* Find the number of domains existing on a node */ unsigned int xenstat_node_num_domains (xenstat_node * node);
@@ -133,9 +129,6 @@ unsigned int xenstat_domain_num_vbds(xenstat_domain *);xenstat_vbd *xenstat_domain_vbd (xenstat_domain * domain,unsigned int vbd); -/* Get the tmem information for a given domain */ -xenstat_tmem *xenstat_domain_tmem (xenstat_domain * domain); -/* * VCPU functions - extract information from a xenstat_vcpu */
@@ -193,12 +186,4 @@ unsigned long long xenstat_vbd_wr_reqs(xenstat_vbd * vbd);unsigned long long xenstat_vbd_rd_sects (xenstat_vbd * vbd);unsigned long long xenstat_vbd_wr_sects (xenstat_vbd * vbd); -/* -* Tmem functions - extract tmem information -*/ -unsigned long long xenstat_tmem_curr_eph_pages (xenstat_tmem *tmem); -unsigned long long xenstat_tmem_succ_eph_gets (xenstat_tmem *tmem); -unsigned long long xenstat_tmem_succ_pers_puts (xenstat_tmem *tmem); -unsigned long long xenstat_tmem_succ_pers_gets (xenstat_tmem *tmem); -#endif /* XENSTAT_H */
tools/xenstat/libxenstat/src/xenstat_priv.h +0 -8
@@ -52,13 +52,6 @@ struct xenstat_node {long freeable_mb; }; -struct xenstat_tmem { -unsigned long long curr_eph_pages; -unsigned long long succ_eph_gets; -unsigned long long succ_pers_puts; -unsigned long long succ_pers_gets; -}; -struct xenstat_domain {unsigned int id;char *name;
@@ -73,7 +66,6 @@ struct xenstat_domain {xenstat_network *networks;/* Array of length num_networks */ unsigned int num_vbds;xenstat_vbd *vbds; -xenstat_tmem tmem_stats; };struct xenstat_vcpu {
tools/xenstat/xentop/xentop.c +2 -34
@@ -209,7 +209,6 @@ unsigned int iterations = 0;int show_vcpus =0 ;int show_networks =0 ;int show_vbds =0 ; -int show_tmem =0 ;int repeat_header =0 ;int show_full_name =0 ;#define PROMPT_VAL_LEN 80
@@ -362,9 +361,6 @@ static int handle_key(int ch)case 'b' :case 'B' : show_vbds ^=1 ;break ; -case 't' :case 'T' : - show_tmem ^=1 ; -break ;case 'r' :case 'R' : repeat_header ^=1 ;break ;
@@ -893,8 +889,8 @@ void do_summary(void)"%u crashed, %u dying, %u shutdown \n" , num_domains, run, block, pause, crash, dying, shutdown); - used =xenstat_node_tot_mem (cur_node)-xenstat_node_free_mem (cur_node); - freeable_mb =xenstat_node_freeable_mb (cur_node); + used =xenstat_node_tot_mem (cur_node); + freeable_mb =0 ;/* Dump node memory and cpu information */ if ( freeable_mb <=0 )
@@ -952,12 +948,6 @@ void do_bottom_line(void)attr_addstr (show_vbds ?COLOR_PAIR (1 ) :0 ,"ds" );addstr (" " ); -/* tmem */ -addch (A_REVERSE |'T' ); -attr_addstr (show_tmem ?COLOR_PAIR (1 ) :0 ,"mem" ); -addstr (" " ); - -/* vcpus */ addch (A_REVERSE |'V' );attr_addstr (show_vcpus ?COLOR_PAIR (1 ) :0 ,"CPUs" );
@@ -1086,23 +1076,6 @@ void do_vbd(xenstat_domain *domain) } } -/* Output all tmem information */ -void do_tmem (xenstat_domain *domain) -{ -xenstat_tmem *tmem =xenstat_domain_tmem (domain); -unsigned long long curr_eph_pages =xenstat_tmem_curr_eph_pages (tmem); -unsigned long long succ_eph_gets =xenstat_tmem_succ_eph_gets (tmem); -unsigned long long succ_pers_puts =xenstat_tmem_succ_pers_puts (tmem); -unsigned long long succ_pers_gets =xenstat_tmem_succ_pers_gets (tmem); - -if (curr_eph_pages | succ_eph_gets | succ_pers_puts | succ_pers_gets) -"Tmem: Curr eph pages: %8llu Succ eph gets: %8llu " -"Succ pers puts: %8llu Succ pers gets: %8llu\n" , - curr_eph_pages, succ_eph_gets, - succ_pers_puts, succ_pers_gets); - -} -static void top (void ) {xenstat_domain **domains;
@@ -1155,8 +1128,6 @@ static void top(void)do_network (domains[i]);if (show_vbds)do_vbd (domains[i]); -if (show_tmem) -do_tmem (domains[i]); }if (!batch)
@@ -1232,9 +1203,6 @@ int main(int argc, char **argv)case 'f' : show_full_name =1 ;break ; -case 't' : - show_tmem =1 ; -break ; } }
tools/xl/Makefile +1 -1
@@ -17,7 +17,7 @@ CFLAGS_XL += -Wshadow XL_OBJS-$(CONFIG_X86) = xl_psr.o XL_OBJS = xl.o xl_cmdtable.o xl_sxp.o xl_utils.o $(XL_OBJS-y) -XL_OBJS += xl_tmem.o xl_parse.o xl_cpupool.o xl_flask.o +XL_OBJS += xl_parse.o xl_cpupool.o xl_flask.o XL_OBJS += xl_vtpm.o xl_block.o xl_nic.o xl_usb.o XL_OBJS += xl_sched.o xl_pci.o xl_vcpu.o xl_cdrom.o xl_mem.o XL_OBJS += xl_info.o xl_console.o xl_misc.o
tools/xl/xl.h +0 -6
@@ -184,12 +184,6 @@ int main_usbdev_detach(int argc, char **argv);int main_usblist (int argc,char **argv);int main_uptime (int argc,char **argv);int main_claims (int argc,char **argv); -int main_tmem_list (int argc,char **argv); -int main_tmem_freeze (int argc,char **argv); -int main_tmem_thaw (int argc,char **argv); -int main_tmem_set (int argc,char **argv); -int main_tmem_shared_auth (int argc,char **argv); -int main_tmem_freeable (int argc,char **argv);int main_network2attach (int argc,char **argv);int main_network2list (int argc,char **argv);int main_network2detach (int argc,char **argv);
tools/xl/xl_cmdtable.c +0 -40
@@ -443,46 +443,6 @@ struct cmd_spec cmd_table[] = {"" ,"" , }, - { "tmem-list", - &main_tmem_list,0 ,0 , -"List tmem pools" , -"[-l] [<Domain>|-a]" , -" -l List tmem stats" , - }, - { "tmem-freeze", - &main_tmem_freeze,0 ,1 , -"Freeze tmem pools" , -"[<Domain>|-a]" , -" -a Freeze all tmem" , - }, - { "tmem-thaw", - &main_tmem_thaw,0 ,1 , -"Thaw tmem pools" , -"[<Domain>|-a]" , -" -a Thaw all tmem" , - }, - { "tmem-set", - &main_tmem_set,0 ,1 , -"Change tmem settings" , -"[<Domain>|-a] [-w[=WEIGHT]|-c[=CAP]|-p[=COMPRESS]]" , -" -a Operate on all tmem\n" -" -w WEIGHT Weight (int)\n" -" -p COMPRESS Compress (int)" , - }, - { "tmem-shared-auth", - &main_tmem_shared_auth,0 ,1 , -"De/authenticate shared tmem pool" , -"[<Domain>|-a] [-u[=UUID] [-A[=AUTH]" , -" -a Authenticate for all tmem pools\n" -" -u UUID Specify uuid\n" -" (abcdef01-2345-6789-1234-567890abcdef)\n" -" -A AUTH 0=deauth,1=auth" , - }, - { "tmem-freeable", - &main_tmem_freeable,0 ,0 , -"Get information about how much freeable memory (MB) is in-use by tmem" , -"" , - }, { "cpupool-create", &main_cpupoolcreate,1 ,1 , "Create a new CPU pool",
tools/xl/xl_tmem.c deleted +0 -251
251 lines not on this page · raw message
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH v2 1/3] tools: remove tmem code and commands
Wei Liu writes ("[PATCH v2 1/3] tools: remove tmem code and commands"):
Quoted 7 lines
Remove all tmem related code in libxc.
Leave some stubs in libxl in case anyone has linked to those functions before the removal.
Remove all tmem related commands in xl, all tmem related code in other utilities we ship.
Amazingly I see nothing in the libxl domain config about this. If there were then we would have to decide what to do if the domain had tmem-related config. But AFAICT there is could be no such thing.
On a technical level therefore, there is nothing wrong with this patch. However, for the process reasons I have explained in my other message,
Sorry,
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH v2 2/3 xen: remove tmem from hypervisor
In reply to Wei LiuThis patch removes all tmem related code and CONFIG_TMEM from the hypervisor. Also remove tmem hypercalls from the default XSM policy.
It is written as if tmem is disabled and tmem freeable pages is 0.
We will need to keep public/tmem.h around forever to avoid breaking guests. Remove the hypervisor only part and put guest visible part under a xen version check. Take the chance to remove trailing whitespaces.
---
v2:
1. remove some more residuals
2. fix errors discovered by Gitlab CI
3. keep public/tmem.h
--- tools/flask/policy/modules/dom0.te | 4 +- tools/flask/policy/modules/guest_features.te | 3 - xen/arch/arm/configs/tiny64.conf | 1 - xen/arch/x86/configs/pvshim_defconfig | 1 - xen/arch/x86/guest/hypercall_page.S | 1 - xen/arch/x86/hvm/hypercall.c | 3 - xen/arch/x86/hypercall.c | 1 - xen/arch/x86/pv/hypercall.c | 3 - xen/arch/x86/setup.c | 8 - xen/common/Kconfig | 13 - xen/common/Makefile | 4 - xen/common/compat/tmem_xen.c | 23 - xen/common/domain.c | 3 - xen/common/memory.c | 5 +- xen/common/page_alloc.c | 40 +- xen/common/sysctl.c | 5 - xen/common/tmem.c | 2095 -------------------------- xen/common/tmem_control.c | 560 ------- xen/common/tmem_xen.c | 277 ---- xen/include/Makefile | 1 - xen/include/public/sysctl.h | 108 +- xen/include/public/tmem.h | 14 +- xen/include/xen/hypercall.h | 7 - xen/include/xen/mm.h | 2 + xen/include/xen/sched.h | 3 - xen/include/xen/tmem.h | 45 - xen/include/xen/tmem_control.h | 39 - xen/include/xen/tmem_xen.h | 343 ----- xen/include/xlat.lst | 2 - xen/include/xsm/dummy.h | 6 - xen/include/xsm/xsm.h | 6 - xen/xsm/dummy.c | 1 - xen/xsm/flask/hooks.c | 9 - xen/xsm/flask/policy/access_vectors | 4 - 34 files changed, 16 insertions(+), 3624 deletions(-) delete mode 100644 xen/common/compat/tmem_xen.c delete mode 100644 xen/common/tmem.c delete mode 100644 xen/common/tmem_control.c delete mode 100644 xen/common/tmem_xen.c delete mode 100644 xen/include/xen/tmem.h delete mode 100644 xen/include/xen/tmem_control.h delete mode 100644 xen/include/xen/tmem_xen.h
tools/flask/policy/modules/dom0.te +2 -2
@@ -10,8 +10,8 @@ allow dom0_t xen_t:xen { settime tbufcontrol readconsole clearconsole perfcontrol mtrr_add mtrr_del mtrr_read microcode physinfo quirk writeconsole readapic writeapic privprofile nonprivprofile kexec firmware sleep frequency - getidle debug getcpuinfo heap pm_op mca_op lockprof cpupool_op tmem_op - tmem_control getscheduler setscheduler + getidle debug getcpuinfo heap pm_op mca_op lockprof cpupool_op + getscheduler setscheduler }; allow dom0_t xen_t:xen2 { resource_op psr_cmt_op psr_alloc pmu_ctrl get_symbol
tools/flask/policy/modules/guest_features.te +0 -3
@@ -1,6 +1,3 @@ -# Allow all domains to use (unprivileged parts of) the tmem hypercall -allow domain_type xen_t:xen tmem_op; - # Allow all domains to use PMU (but not to change its settings --- that's what # pmu_ctrl is for) allow domain_type xen_t:xen2 pmu_use;
xen/arch/arm/configs/tiny64.conf +0 -1
@@ -11,7 +11,6 @@ CONFIG_ARM=y # # Common Features # -# CONFIG_TMEM is not set CONFIG_SCHED_CREDIT=y # CONFIG_SCHED_CREDIT2 is not set # CONFIG_SCHED_RTDS is not set
xen/arch/x86/configs/pvshim_defconfig +0 -1
@@ -11,7 +11,6 @@ CONFIG_NR_CPUS=32 # CONFIG_HVM_FEP is not set # CONFIG_TBOOT is not set # CONFIG_KEXEC is not set -# CONFIG_TMEM is not set # CONFIG_XENOPROF is not set # CONFIG_XSM is not set # CONFIG_SCHED_CREDIT2 is not set
xen/arch/x86/guest/hypercall_page.S +0 -1
@@ -58,7 +58,6 @@ DECLARE_HYPERCALL(hvm_op) DECLARE_HYPERCALL(sysctl) DECLARE_HYPERCALL(domctl) DECLARE_HYPERCALL(kexec_op) -DECLARE_HYPERCALL(tmem_op) DECLARE_HYPERCALL(xc_reserved_op) DECLARE_HYPERCALL(xenpmu_op)
xen/arch/x86/hvm/hypercall.c +0 -3
@@ -131,9 +131,6 @@ static const hypercall_table_t hvm_hypercall_table[] = {HYPERCALL (hvm_op),HYPERCALL (sysctl),HYPERCALL (domctl), -#ifdef CONFIG_TMEM -HYPERCALL (tmem_op), -#endifCOMPAT_CALL (platform_op), #ifdef CONFIG_PV COMPAT_CALL(mmuext_op),
xen/arch/x86/hypercall.c +0 -1
@@ -63,7 +63,6 @@ const hypercall_args_t hypercall_args_table[NR_hypercalls] =ARGS (sysctl,1 ),ARGS (domctl,1 ),ARGS (kexec_op,2 ), -ARGS (tmem_op,1 ),ARGS (xenpmu_op,2 ), #ifdef CONFIG_HVM ARGS(hvm_op, 2),
xen/arch/x86/pv/hypercall.c +0 -3
@@ -74,9 +74,6 @@ const hypercall_table_t pv_hypercall_table[] = {#ifdef CONFIG_KEXEC COMPAT_CALL(kexec_op), #endif -#ifdef CONFIG_TMEM - HYPERCALL(tmem_op), -#endif HYPERCALL(xenpmu_op),#ifdef CONFIG_HVM HYPERCALL(hvm_op),
xen/arch/x86/setup.c +0 -8
@@ -25,7 +25,6 @@#include <xen/dmi.h> #include <xen/pfn.h> #include <xen/nodemask.h> -#include <xen/tmem_xen.h> #include <xen/virtual_region.h> #include <xen/watchdog.h> #include <public/version.h>
@@ -1478,13 +1477,6 @@ void __init noreturn __start_xen(unsigned long mbi_p) s =pfn_to_paddr (limit +1 );init_domheap_pages (s, e); } - -if (tmem_enabled () ) - { -printk (XENLOG_WARNING -"TMEM physical RAM limit exceeded, disabling TMEM\n" ); -tmem_disable (); - } }else end_boot_allocator ();
xen/common/Kconfig +0 -13
@@ -77,19 +77,6 @@ config KEXEC If unsure, say Y. -config TMEM - def_bool y - prompt "Transcendent Memory Support" 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 - - If unsure, say Y. - config XENOPROF def_bool y prompt "Xen Oprofile Support" if EXPERT = "y"
xen/common/Makefile +0 -4
@@ -71,10 +71,6 @@ obj-bin-$(CONFIG_X86) += $(foreach n,decompress bunzip2 unxz unlzma unlzo unlz4 obj-$(CONFIG_COMPAT) += $(addprefix compat/,domain.o kernel.o memory.o multicall.o xlat.o) -tmem-y := tmem.o tmem_xen.o tmem_control.o -tmem-$(CONFIG_COMPAT) += compat/tmem_xen.o -obj-$(CONFIG_TMEM) += $(tmem-y) - extra-y := symbols-dummy.o subdir-$(CONFIG_COVERAGE) += coverage
xen/common/compat/tmem_xen.c deleted +0 -23
@@ -1,23 +0,0 @@ -/****************************************************************************** -* tmem_xen.c -* -*/ - -#include <xen/lib.h> -#include <xen/sched.h> -#include <xen/domain.h> -#include <xen/guest_access.h> -#include <xen/hypercall.h> -#include <compat/tmem.h> - -CHECK_tmem_oid; - -/* -* Local variables: -* mode: C -* c-file-style: "BSD" -* c-basic-offset: 4 -* tab-width: 4 -* indent-tabs-mode: nil -* End: -*/
xen/common/domain.c +0 -3
@@ -40,7 +40,6 @@#include <public/vcpu.h> #include <xsm/xsm.h> #include <xen/trace.h> -#include <xen/tmem.h> #include <asm/setup.h> #ifdef CONFIG_X86
@@ -719,10 +718,8 @@ int domain_kill(struct domain *d) d->is_dying = DOMDYING_dying;evtchn_destroy (d);gnttab_release_mappings (d); -tmem_destroy (d->tmem_client);vnuma_destroy (d->vnuma);domain_set_outstanding_pages (d,0 ); - d->tmem_client =NULL ;/* fallthrough */ case DOMDYING_dying: rc =domain_relinquish_resources (d);
xen/common/memory.c +2 -3
@@ -7,6 +7,7 @@* Copyright (c) 2003-2005, K A Fraser */ +#include <xen/domain_page.h> #include <xen/types.h> #include <xen/lib.h> #include <xen/mm.h>
@@ -18,8 +19,6 @@#include <xen/guest_access.h> #include <xen/hypercall.h> #include <xen/errno.h> -#include <xen/tmem.h> -#include <xen/tmem_xen.h> #include <xen/numa.h> #include <xen/mem_access.h> #include <xen/trace.h>
@@ -250,7 +249,7 @@ static void populate_physmap(struct memop_args *a)if (unlikely (!page) ) { -if ( !tmem_enabled () || a->extent_order ) +if ( a->extent_order ) gdprintk(XENLOG_INFO, "Could not allocate order=%u extent: id=%d memflags=%#x (%u of %u)\n", a->extent_order, d->domain_id, a->memflags,
xen/common/page_alloc.c +3 -37
@@ -135,8 +135,6 @@#include <xen/numa.h> #include <xen/nodemask.h> #include <xen/event.h> -#include <xen/tmem.h> -#include <xen/tmem_xen.h> #include <public/sysctl.h> #include <public/sched.h> #include <asm/page.h>
@@ -529,16 +527,6 @@ int domain_set_outstanding_pages(struct domain *d, unsigned long pages)/* how much memory is available? */ avail_pages = total_avail_pages; -/* Note: The usage of claim means that allocation from a guest *might* -* have to come from freeable memory. Using free memory is always better, if -* it is available, than using freeable memory. -* -* But that is OK as once the claim has been made, it still can take minutes -* before the claim is fully satisfied. Tmem can make use of the unclaimed -* pages during this time (to store ephemeral/freeable pages only, -* not persistent pages). -*/ - avail_pages +=tmem_freeable_pages (); avail_pages -= outstanding_claims;/*
@@ -710,8 +698,7 @@ static void __init setup_low_mem_virq(void)static void check_low_mem_virq (void ) { -unsigned long avail_pages = total_avail_pages + -tmem_freeable_pages () - outstanding_claims; +unsigned long avail_pages = total_avail_pages - outstanding_claims;if (unlikely (avail_pages <= low_mem_virq_th) ) {
@@ -940,8 +927,7 @@ static struct page_info *alloc_heap_pages(* Claimed memory is considered unavailable unless the request * is made by a domain with sufficient unclaimed pages. */ -if ( (outstanding_claims + request > - total_avail_pages +tmem_freeable_pages ()) && +if ( (outstanding_claims + request > total_avail_pages) && ((memflags & MEMF_no_refcount) || !d || d->outstanding_pages < request) ) {
@@ -949,22 +935,6 @@ static struct page_info *alloc_heap_pages(return NULL ; } -/* -* TMEM: When available memory is scarce due to tmem absorbing it, allow -* only mid-size allocations to avoid worst of fragmentation issues. -* Others try tmem pools then fail. This is a workaround until all -* post-dom0-creation-multi-page allocations can be eliminated. -*/ -if ( ((order ==0 ) || (order >=9 )) && - (total_avail_pages <= midsize_alloc_zone_pages) && -tmem_freeable_pages () ) - { -/* Try to free memory from tmem. */ - pg =tmem_relinquish_pages (order, memflags); -spin_unlock (&heap_lock); -return pg; - } - pg =get_free_buddy (zone_lo, zone_hi, order, memflags, d);/* Try getting a dirty buddy if we couldn't get a clean one. */ if ( !pg && !(memflags & MEMF_no_scrub) )
@@ -1444,10 +1414,6 @@ static void free_heap_pages(else pg->u.free.first_dirty =INVALID_DIRTY_IDX ; -if (tmem_enabled () ) - midsize_alloc_zone_pages =max ( - midsize_alloc_zone_pages, total_avail_pages /MIDSIZE_ALLOC_FRAC ); -/* Merge chunks as far as possible. */ while ( order <MAX_ORDER ) {
@@ -2265,7 +2231,7 @@ int assign_pages( {if (unlikely ((d->tot_pages + (1 << order)) > d->max_pages) ) { -if ( !tmem_enabled () || order !=0 || d->tot_pages != d->max_pages ) +if ( order !=0 || d->tot_pages != d->max_pages )gprintk (XENLOG_INFO ,"Over-allocation for domain %u: " "%u > %u\n" , d->domain_id, d->tot_pages + (1 << order), d->max_pages);
xen/common/sysctl.c +0 -5
@@ -13,7 +13,6 @@#include <xen/domain.h> #include <xen/event.h> #include <xen/domain_page.h> -#include <xen/tmem.h> #include <xen/trace.h> #include <xen/console.h> #include <xen/iocap.h>
@@ -456,10 +455,6 @@ long do_sysctl(XEN_GUEST_HANDLE_PARAM(xen_sysctl_t) u_sysctl) }#endif -case XEN_SYSCTL_tmem_op: - ret =tmem_control (&op->u.tmem_op); -break ; -case XEN_SYSCTL_livepatch_op: ret =livepatch_op (&op->u.livepatch);if ( ret != -ENOSYS && ret != -EOPNOTSUPP )
xen/common/tmem.c deleted +0 -2095
2,095 lines not on this page · raw message
xen/common/tmem_control.c deleted +0 -560
560 lines not on this page · raw message
xen/common/tmem_xen.c deleted +0 -277
72 lines not on this page · raw message
xen/include/public/sysctl.h +1 -107
108 lines not on this page · raw message
xen/include/xen/tmem.h deleted +0 -45
45 lines not on this page · raw message
xen/include/xen/tmem_control.h deleted +0 -39
Lines of this file are not shown. View the raw message.
xen/include/xen/tmem_xen.h deleted +0 -343
343 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Part of the diff is not shown here. View the raw message.
Re: [PATCH v2 2/3] xen: remove tmem from hypervisor
xen/common/memory.c static void populate_physmap(struct memop_args *a) · line 255
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 28.11.18 at 14:58, <[email protected]> wrote:
xen/common/memory.c +1
-1@@ -250,7 +249,7 @@ static void populate_physmap(struct memop_args *a)if (unlikely (!page) ) { -if ( !tmem_enabled () || a->extent_order ) +if ( a->extent_order ) gdprintk(XENLOG_INFO, "Could not allocate order=%u extent: id=%d memflags=%#x (%u of %u)\n", a->extent_order, d->domain_id, a->memflags,
From an abstract pov without tmem tmem_enabled() should return constant "false". Which seems to mean that the if() should go away rather than its condition getting changed.
Quoted 24 lines
xen/common/page_alloc.c +0
-16@@ -949,22 +935,6 @@ static struct page_info *alloc_heap_pages(return NULL ; } -/* -* TMEM: When available memory is scarce due to tmem absorbing it, allow -* only mid-size allocations to avoid worst of fragmentation issues. -* Others try tmem pools then fail. This is a workaround until all -* post-dom0-creation-multi-page allocations can be eliminated. -*/ -if ( ((order ==0 ) || (order >=9 )) && - (total_avail_pages <= midsize_alloc_zone_pages) && -tmem_freeable_pages () ) - { -/* Try to free memory from tmem. */ - pg =tmem_relinquish_pages (order, memflags); -spin_unlock (&heap_lock); -return pg; - } - pg =get_free_buddy (zone_lo, zone_hi, order, memflags, d);/* Try getting a dirty buddy if we couldn't get a clean one. */ if ( !pg && !(memflags & MEMF_no_scrub) )
xen/common/page_alloc.c static void free_heap_pages( · line 1449
Quoted 6 lines
xen/common/page_alloc.c +0
-3@@ -1444,10 +1414,6 @@ static void free_heap_pages(else pg->u.free.first_dirty =INVALID_DIRTY_IDX ; -if (tmem_enabled () ) - midsize_alloc_zone_pages =max ( - midsize_alloc_zone_pages, total_avail_pages /MIDSIZE_ALLOC_FRAC );
Seeing these two hunks I think midsize_alloc_zone_pages and MIDSIZE_ALLOC_FRAC want to go away altogether.
xen/include/xen/mm.h struct npfec { · line 254
Quoted 10 lines
xen/include/xen/mm.h +2
-0@@ -248,8 +248,10 @@ struct npfec {#define MEMF_no_refcount (1U<<_MEMF_no_refcount)#define _MEMF_populate_on_demand 1#define MEMF_populate_on_demand (1U<<_MEMF_populate_on_demand) +#if 0 #define _MEMF_tmem 2#define MEMF_tmem (1U<<_MEMF_tmem) +#endif
Why "#if 0" rather than removing the two lines?
With these suitably taken care of feel free to add
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH v2 2/3] xen: remove tmem from hypervisor
Quoted 14 lines · Jan Beulich
xen/common/memory.c static void populate_physmap(struct memop_args *a) · line 255
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 28.11.18 at 14:58, <[email protected]> wrote:
xen/common/memory.c +1
-1@@ -250,7 +249,7 @@ static void populate_physmap(struct memop_args *a)if (unlikely (!page) ) { -if ( !tmem_enabled () || a->extent_order ) +if ( a->extent_order ) gdprintk(XENLOG_INFO, "Could not allocate order=%u extent: id=%d memflags=%#x (%u of %u)\n", a->extent_order, d->domain_id, a->memflags,From an abstract pov without tmem
tmem_enabled()should return constant "false". Which seems to mean that theif()should go away rather than its condition getting changed.
Ack.
Quoted 28 lines
Quoted 28 lines
xen/common/page_alloc.c +0
-16@@ -949,22 +935,6 @@ static struct page_info *alloc_heap_pages(return NULL ; } -/* -* TMEM: When available memory is scarce due to tmem absorbing it, allow -* only mid-size allocations to avoid worst of fragmentation issues. -* Others try tmem pools then fail. This is a workaround until all -* post-dom0-creation-multi-page allocations can be eliminated. -*/ -if ( ((order ==0 ) || (order >=9 )) && - (total_avail_pages <= midsize_alloc_zone_pages) && -tmem_freeable_pages () ) - { -/* Try to free memory from tmem. */ - pg =tmem_relinquish_pages (order, memflags); -spin_unlock (&heap_lock); -return pg; - } - pg =get_free_buddy (zone_lo, zone_hi, order, memflags, d);/* Try getting a dirty buddy if we couldn't get a clean one. */ if ( !pg && !(memflags & MEMF_no_scrub) )@@ -1444,10 +1414,6 @@ static void free_heap_pages(else pg->u.free.first_dirty =INVALID_DIRTY_IDX ;
Quoted 6 lines
xen/common/page_alloc.c static void free_heap_pages( · line 1449
Quoted 3 lines
xen/common/page_alloc.c +0
-3-if (tmem_enabled () ) - midsize_alloc_zone_pages =max ( - midsize_alloc_zone_pages, total_avail_pages /MIDSIZE_ALLOC_FRAC );Seeing these two hunks I think
midsize_alloc_zone_pagesandMIDSIZE_ALLOC_FRACwant to go away altogether.
Ack.
Quoted 13 lines
xen/include/xen/mm.h struct npfec { · line 254
Quoted 11 lines
xen/include/xen/mm.h +2
-0@@ -248,8 +248,10 @@ struct npfec {#define MEMF_no_refcount (1U<<_MEMF_no_refcount)#define _MEMF_populate_on_demand 1#define MEMF_populate_on_demand (1U<<_MEMF_populate_on_demand) +#if 0 #define _MEMF_tmem 2#define MEMF_tmem (1U<<_MEMF_tmem) +#endif Why "#if 0" rather than removing the two lines?
I wanted to keep it around so that later when someone reads the code they won't be asking "why is 2 not used".
But yes I'm fine with just deleting these two lines.
Quoted 3 lines
With these suitably taken care of feel free to add
Acked-by Jan Beulich <[email protected]>
Thanks.
Quoted 4 lines
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH v2 2/3] xen: remove tmem from hypervisor
Quoted 16 lines · Wei Liu
Quoted 14 lines · Jan Beulich
xen/common/memory.c static void populate_physmap(struct memop_args *a) · line 255
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 28.11.18 at 14:58, <[email protected]> wrote:
xen/common/memory.c +1
-1@@ -250,7 +249,7 @@ static void populate_physmap(struct memop_args *a)if (unlikely (!page) ) { -if ( !tmem_enabled () || a->extent_order ) +if ( a->extent_order ) gdprintk(XENLOG_INFO, "Could not allocate order=%u extent: id=%d memflags=%#x (%u of %u)\n", a->extent_order, d->domain_id, a->memflags,From an abstract pov without tmem
tmem_enabled()should return constant "false". Which seems to mean that theif()should go away rather than its condition getting changed.
Quoted 1 line
Ack.
BTW there is another hunk in this patch which should get the same treatment:
@@ -2265,7 +2231,7 @@ int assign_pages(
{
if ( unlikely((d->tot_pages + (1 << order)) > d->max_pages) )
{
- if ( !tmem_enabled() || order != 0 || d->tot_pages != d->max_pages )
+ if ( order != 0 || d->tot_pages != d->max_pages )
gprintk(XENLOG_INFO, "Over-allocation for domain %u: "
"%u > %u\n", d->domain_id,
d->tot_pages + (1 << order), d->max_pages); I will fix it as well.
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH v2 2/3] xen: remove tmem from hypervisor
In reply to Wei LiuQuoted 11 lines · Wei Liu
This patch removes all tmem related code and
CONFIG_TMEMfrom the hypervisor. Also remove tmem hypercalls from the default XSM policy.It is written as if tmem is disabled and tmem freeable pages is 0.
We will need to keep
public/tmem.haround forever to avoid breaking guests. Remove the hypervisor only part and put guest visible part under a xen version check. Take the chance to remove trailing whitespaces.Signed-off-by Wei Liu <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH v2 3/3 docs: remove tmem related text
In reply to Wei Liu--- docs/man/xl.conf.pod.5 | 9 +- docs/man/xl.pod.1.in | 68 ---- docs/misc/tmem-internals.html | 789 ------------------------------------ docs/misc/xen-command-line.markdown | 6 - docs/misc/xsm-flask.txt | 36 -- 5 files changed, 2 insertions(+), 906 deletions(-) delete mode 100644 docs/misc/tmem-internals.html
docs/man/xl.conf.pod.5 +2 -7
@@ -148,10 +148,8 @@ The default choice is "xvda". =item B<claim_mode=BOOLEAN> If this option is enabled then when a guest is created there will be an -guarantee that there is memory available for the guest. This is an -particularly acute problem on hosts with memory over-provisioned guests -that use tmem and have self-balloon enabled (which is the default -option). The self-balloon mechanism can deflate/inflate the balloon +guarantee that there is memory available for the guest. +The self-balloon mechanism can deflate/inflate the balloon quickly and the amount of free memory (which C<xl info> can show) is stale the moment it is printed. When claim is enabled a reservation for the amount of memory (see 'memory' in xl.conf(5)) is set, which is then
@@ -163,9 +161,6 @@ If the reservation cannot be meet the guest creation fails immediately instead of taking seconds/minutes (depending on the size of the guest) while the guest is populated. -Note that to enable tmem type guests, one needs to provide C<tmem> on the -Xen hypervisor argument and as well on the Linux kernel command line. - Default: C<1> =over 4
docs/man/xl.pod.1.in +0 -68
74 lines not on this page · raw message
docs/misc/tmem-internals.html deleted +0 -789
789 lines not on this page · raw message
docs/misc/xen-command-line.markdown +0 -6
@@ -1993,12 +1993,6 @@ pages) must also be specified via the tbuf\_size parameter. ### timer\_slop > `= <integer>` -### tmem -> `= <boolean>` - -### tmem\_compress -> `= <boolean>` - ### tsc (x86) > `= unstable | skewed | stable:socket`
docs/misc/xsm-flask.txt +0 -36
@@ -81,42 +81,6 @@ __HYPERVISOR_memory_op (xen/include/public/memory.h) * XENMEM_get_pod_target * XENMEM_claim_pages -__HYPERVISOR_tmem_op (xen/include/public/tmem.h) - - The following tmem control ops, that is the sub-subops of - TMEM_CONTROL, are covered by this statement. - - Note that TMEM is also subject to a similar policy arising from - XSA-15 http://lists.xen.org/archives/html/xen-announce/2012-09/msg00006.html. - Due to this existing policy all TMEM Ops are already subject to - reduced security support. - - * TMEMC_THAW - * TMEMC_FREEZE - * TMEMC_FLUSH - * TMEMC_DESTROY - * TMEMC_LIST - * TMEMC_SET_WEIGHT - * TMEMC_SET_CAP - * TMEMC_SET_COMPRESS - * TMEMC_QUERY_FREEABLE_MB - * TMEMC_SAVE_BEGIN - * TMEMC_SAVE_GET_VERSION - * TMEMC_SAVE_GET_MAXPOOLS - * TMEMC_SAVE_GET_CLIENT_WEIGHT - * TMEMC_SAVE_GET_CLIENT_CAP - * TMEMC_SAVE_GET_CLIENT_FLAGS - * TMEMC_SAVE_GET_POOL_FLAGS - * TMEMC_SAVE_GET_POOL_NPAGES - * TMEMC_SAVE_GET_POOL_UUID - * TMEMC_SAVE_GET_NEXT_PAGE - * TMEMC_SAVE_GET_NEXT_INV - * TMEMC_SAVE_END - * TMEMC_RESTORE_BEGIN - * TMEMC_RESTORE_PUT_PAGE - * TMEMC_RESTORE_FLUSH_PAGE - - Setting up FLASK ----------------
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH v2 3/3] docs: remove tmem related text
Quoted 1 line · Wei Liu
Signed-off-by Wei Liu <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 5 lines · Wei Liu
It is agreed that tmem can be removed from xen.git. See the thread starting from <[email protected]>.
In this version:
Quoted 7 lines
1. Remove some residuals from previous version and fix all build errors discovered by Gitlab CI.
2. Swap the order of patches to make sure bisection still works. This is verified by calling./automation/scripts/build-test.sh origin/staging HEAD
3. Make sure Xen still boots and passes all XTF tests after the removal.
4. Keeppublic/tmem.h.
Please also remove the entry in the MAINTAINERS file.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 14 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Wei Liu
It is agreed that tmem can be removed from xen.git. See the thread starting from <[email protected]>.
In this version:
Quoted 7 lines
1. Remove some residuals from previous version and fix all build errors discovered by Gitlab CI.
2. Swap the order of patches to make sure bisection still works. This is verified by calling./automation/scripts/build-test.sh origin/staging HEAD
3. Make sure Xen still boots and passes all XTF tests after the removal.
4. Keeppublic/tmem.h.
Quoted 1 line
Please also remove the entry in the
MAINTAINERSfile.
Sure. I will fold that into the hypervisor patch.
Quoted 2 lines
Thank you!
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Wei Liu writes ("[PATCH v2 0/3] Remove tmem"):
Quoted 2 lines
It is agreed that tmem can be removed from xen.git. See the thread starting from <[email protected]>.
Those are notes from some phone call amongst industry stakeholders. None of the messages have a Subject line mentioning tmem. There is no explanation of the basis for the decision; just a confirmation from the current maintainers that they will ack the removal.
I think this is not really an appropriate way to carry on! What if there is someone else who wants to step up to maintain this ? What about user communication ? Going straight from Supported' to Deleted' seems rather vigorous.
In summary I think the claim that "It is agreed" in this cover letter is false (or, at least, if it is true, the cover letter provides no references to any basis for thinking that it is true).
If it didn't happen on the mailing list it didn't happen.
Unfortunately, therefore, on process grounds,
I dare say the decision to remove it now might be right.
Can we please start this again with a proper explanation of why this should be summarily deleted, rather than (say) made unmaintained and deprecated for a release ? Can someone explain why we don't feel the need to consult anyone by (say) posting to xen-announce ? etc.
Then we can actually have an on-list discussion where the decision would be taken.
Next time I suggest a good first step would be a patch which deletes the M: line from MAINTAINERS and changes the status to Orphan, since obviously the current maintainers don't want it. That patch should be uncontroversial. Also in general, depending who we think might be using a feature, a plan which gives some warning to users (by deprecating the feature, for example) would often be a good idea.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 9 lines · Ian Jackson
Wei Liu writes ("[PATCH v2 0/3] Remove tmem"):
Quoted 2 lines
It is agreed that tmem can be removed from xen.git. See the thread starting from <[email protected]>.
Those are notes from some phone call amongst industry stakeholders. None of the messages have a Subject line mentioning tmem. There is no explanation of the basis for the decision; just a confirmation from the current maintainers that they will ack the removal.
Quoted 4 lines
I think this is not really an appropriate way to carry on! What if there is someone else who wants to step up to maintain this ? What about user communication ? Going straight from
Supported' toDeleted' seems rather vigorous.
Step up to maintain> I would rather say step up to develop.
The status in MAINTAINERS is wrong. According to SUPPORT.md, it is only experimental. Our definition of "experimental" is:
Functional completeness: No
Functional stability: Here be dragons
Interface stability: Not stable
Security supported: No
(https://wiki.xenproject.org/wiki/Xen_Project_Release_Features/Definitions)
This means without putting in significant effort, no-one would be able to use TMEM. There is no stability guarantee at all for TMEM interface. Deleting something experimental doesn't seem controversial to me.
I dare say no-one cared because it has got zero development effort in years since 4.6. Also as you already noticed, no-one can possibly uses TMEM since the switch to xl (that' even earlier than 4.6).
Quoted 6 lines
In summary I think the claim that "It is agreed" in this cover letter is false (or, at least, if it is true, the cover letter provides no references to any basis for thinking that it is true).
Quoted 7 lines
If it didn't happen on the mailing list it didn't happen.
Unfortunately, therefore, on process grounds,
Nacked-by Ian Jackson <[email protected]>
Yet the removal of ia64 port wasn't warned or announced on xen-announce, so I disagree the removal is wrong on process grounds -- since there has already been a precedence.
If there is a policy file, I would be happy to comply.
Quoted 8 lines
I dare say the decision to remove it now might be right.
Can we please start this again with a proper explanation of why this should be summarily deleted, rather than (say) made unmaintained and deprecated for a release ? Can someone explain why we don't feel the need to consult anyone by (say) posting to xen-announce ? etc.
See above.
Quoted 10 lines
Then we can actually have an on-list discussion where the decision would be taken.
Next time I suggest a good first step would be a patch which deletes the M: line from
MAINTAINERSand changes the status to Orphan, since obviously the current maintainers don't want it. That patch should be uncontroversial. Also in general, depending who we think might be using a feature, a plan which gives some warning to users (by deprecating the feature, for example) would often be a good idea.
Can we not invent policy and ask for compliance on the fly?
Wei.
Quoted 1 line
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 20 lines
Quoted 1 line
Quoted 1 line · On 30.11.18 at 19:01, <[email protected]> wrote:
Quoted 11 lines · Ian Jackson
Wei Liu writes ("[PATCH v2 0/3] Remove tmem"):
Quoted 4 lines
It is agreed that tmem can be removed from xen.git. See the thread starting
from <[email protected]>.
Those are notes from some phone call amongst industry stakeholders. None of the messages have a Subject line mentioning tmem. There is no explanation of the basis for the decision; just a confirmation from the current maintainers that they will ack the removal.
Quoted 4 lines
I think this is not really an appropriate way to carry on! What if there is someone else who wants to step up to maintain this ? What about user communication ? Going straight from
Supported' toDeleted' seems rather vigorous.Step up to maintain> I would rather say step up to develop.
Quoted 7 lines
The status in
MAINTAINERSis wrong. According to SUPPORT.md, it is only experimental. Our definition of "experimental" is:Functional completeness: No
Functional stability: Here be dragons
Interface stability: Not stable
Security supported: No
Exactly. Plus my proposal to remove it was posted to xen-devel on Aug 30th. I don't think removal of an experimental feature requires posting to xen-announce. Ian - please reconsider your nack.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 21 lines · Jan Beulich
Quoted 21 lines
Quoted 1 line
Quoted 1 line · On 30.11.18 at 19:01, <[email protected]> wrote:
Quoted 10 lines · Ian Jackson
Wei Liu writes ("[PATCH v2 0/3] Remove tmem"):
Quoted 4 lines
It is agreed that tmem can be removed from xen.git. See the thread starting
from <[email protected]>.
Those are notes from some phone call amongst industry stakeholders. None of the messages have a Subject line mentioning tmem. There is no explanation of the basis for the decision; just a confirmation from the current maintainers that they will ack the removal.
Quoted 4 lines
I think this is not really an appropriate way to carry on! What if there is someone else who wants to step up to maintain this ? What about user communication ? Going straight from
Supported' toDeleted' seems rather vigorous.Step up to maintain> I would rather say step up to develop.
The status in
MAINTAINERSis wrong. According to SUPPORT.md, it is only experimental. Our definition of "experimental" is:
Quoted 8 lines
Quoted 4 lines
Functional completeness: No
Functional stability: Here be dragons
Interface stability: Not stable
Security supported: NoExactly. Plus my proposal to remove it was posted to xen-devel on Aug 30th. I don't think removal of an experimental feature requires posting to xen-announce. Ian - please reconsider your nack.
I concur with Wei and Jan. TMEM has been off by default due to being declared "full of security holes - don't use" since XSA-15. That was in 2012, and TMEM hasn't made its way back into security support in that time.
In addition, it was never fixed to work with Migration v2. The save side doesn't query any TMEM state, and convert-legacy-stream raises TODO on encountering legacy TMEM data.
I don't know about other distributions, but it has been compiled out of XenServer for all versions which have Kconfig.
tl;dr It doesn't work, and at this point, it looks very unlikely to change. There is a non-zero cost for retaining obsolete functionality, and the hypervisor maintainers want it gone in 4.12, which we think is entirely reasonable given the circumstances.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 39 lines · Andrew Cooper
Quoted 21 lines · Jan Beulich
Quoted 21 lines
Quoted 1 line
Quoted 1 line · On 30.11.18 at 19:01, <[email protected]> wrote:
Quoted 10 lines · Ian Jackson
Wei Liu writes ("[PATCH v2 0/3] Remove tmem"):
Quoted 4 lines
It is agreed that tmem can be removed from xen.git. See the thread starting
from <[email protected]>.
Those are notes from some phone call amongst industry stakeholders. None of the messages have a Subject line mentioning tmem. There is no explanation of the basis for the decision; just a confirmation from the current maintainers that they will ack the removal.
Quoted 4 lines
I think this is not really an appropriate way to carry on! What if there is someone else who wants to step up to maintain this ? What about user communication ? Going straight from
Supported' toDeleted' seems rather vigorous.Step up to maintain> I would rather say step up to develop.
The status in
MAINTAINERSis wrong. According to SUPPORT.md, it is only experimental. Our definition of "experimental" is:Quoted 8 lines
Quoted 4 lines
Functional completeness: No
Functional stability: Here be dragons
Interface stability: Not stable
Security supported: NoExactly. Plus my proposal to remove it was posted to xen-devel on Aug 30th. I don't think removal of an experimental feature requires posting to xen-announce. Ian - please reconsider your nack.
I concur with Wei and Jan. TMEM has been off by default due to being declared "full of security holes - don't use" since XSA-15. That was in 2012, and TMEM hasn't made its way back into security support in that time.
In addition, it was never fixed to work with Migration v2. The save side doesn't query any TMEM state, and convert-legacy-stream raises TODO on encountering legacy TMEM data.
Quoted 7 lines
I don't know about other distributions, but it has been compiled out of XenServer for all versions which have
Kconfig.tl;dr It doesn't work, and at this point, it looks very unlikely to change. There is a non-zero cost for retaining obsolete functionality, and the hypervisor maintainers want it gone in 4.12, which we think is entirely reasonable given the circumstances.
I agree on all counts. Can we please remove it?
Quoted 2 lines
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 5 lines · Wei Liu
It is agreed that tmem can be removed from xen.git. See the thread starting from <[email protected]>.
In this version:
Quoted 7 lines
1. Remove some residuals from previous version and fix all build errors discovered by Gitlab CI.
2. Swap the order of patches to make sure bisection still works. This is verified by calling./automation/scripts/build-test.sh origin/staging HEAD
3. Make sure Xen still boots and passes all XTF tests after the removal.
4. Keeppublic/tmem.h.
Now that 4.13 is open. What needs to be done regarding this series?
FAOD I still think its support status requires no prior announcement of its removal.
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 17 lines
Quoted 1 line
Quoted 1 line · On 12.03.19 at 13:21, <[email protected]> wrote:
Quoted 7 lines · Wei Liu
It is agreed that tmem can be removed from xen.git. See the thread starting
from <[email protected]>.
In this version:
Quoted 7 lines
1. Remove some residuals from previous version and fix all build errors discovered by Gitlab CI.
2. Swap the order of patches to make sure bisection still works. This is verified by calling./automation/scripts/build-test.sh origin/staging HEAD
3. Make sure Xen still boots and passes all XTF tests after the removal.
4. Keeppublic/tmem.h.
Quoted 4 lines
Now that 4.13 is open. What needs to be done regarding this series?
FAOD I still think its support status requires no prior announcement of its removal.
Depending on what exactly "announcement" means, commit a67ce55a3e ("tmem: default to off") was meant to serve as such. But in the end iirc it was Ian who objected to outright deleting the code, so I think he should clarify what further steps (if any) he expects to be taken.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel