x86/pv: Deprecate support for paging out the LDT
PATCH 1/1 x86/pv: Deprecate support for paging out the LDT
This code is believed to be vestigial remnant of the PV Windows XP port. It is not used by Linux, NetBSD, Solaris or MiniOS. Furthermore the implementation is incomplete; it only functions for a present => not-present transition, rather than a present => read/write transition.
The for_each_vcpu() is one scalability limitation for PV guests, which can't reasonably be altered to be continuable. Most importantly however, is that this only codepath which plays with descriptor frames of a remote vcpu.
A side effect of dropping support for paging the LDT out is that the LDT no longer automatically cleans itself up on domain destruction. Cover this by explicitly releasing the LDT frames at the same time as the GDT frames.
Finally, leave some asserts around to confirm the expected behaviour of all the functions playing with PGT_seg_desc_page references.
---
CC: Jan Beulich <[email protected]>
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>
--- xen/arch/x86/Kconfig | 21 +++++++++++++++++++++ xen/arch/x86/domain.c | 7 ++----- xen/arch/x86/mm.c | 4 +++- xen/arch/x86/pv/descriptor-tables.c | 10 ++++++++++ xen/arch/x86/pv/domain.c | 2 ++ xen/arch/x86/pv/mm.c | 6 ++++++ xen/include/asm-x86/domain.h | 2 ++ 7 files changed, 46 insertions(+), 6 deletions(-)
xen/arch/x86/Kconfig +21 -0
@@ -161,3 +161,24 @@ endmenu source "common/Kconfig" source "drivers/Kconfig" + +menu "Deprecated Functionality" + +config LEGACY_PV_LDT_PAGING + def_bool n + prompt "PV LDT Paging-out support" + ---help--- + For a very long time, the PV ABI has included the ability to page + out the LDT by transitioning its mapping to not-present. This + functionality is believed to only exist for the PV Windows XP port + which never came to anything. + + The implementation contains a vCPU scalability limitation in a + position which is prohibitively complicated to resolve. As the + feature is believed to be unused in practice, removing the feature + is the easiest remediation. + + If you discover a usecase which is broken by this option being off, + please contact [email protected] urgently. Baring + something unexpected, the code and this option will be removed. +endmenu
xen/arch/x86/domain.c +2 -5
@@ -1980,11 +1980,8 @@ int domain_relinquish_resources(struct domain *d) { for_each_vcpu ( d, v ) { -/* -* Relinquish GDT mappings. No need for explicit unmapping of -* the LDT as it automatically gets squashed with the guest -* mappings. -*/ +/* Relinquish GDT/LDT mappings. */ +pv_destroy_ldt (v);pv_destroy_gdt (v); } }
xen/arch/x86/mm.c +3 -1
@@ -1204,7 +1204,6 @@ void put_page_from_l1e(l1_pgentry_t l1e, struct domain *l1e_owner)unsigned long pfn =l1e_get_pfn (l1e);struct page_info *page;struct domain *pg_owner; -struct vcpu *v;if ( !(l1e_get_flags (l1e) & _PAGE_PRESENT) ||is_iomem_page (_mfn (pfn)) )return ;
@@ -1245,12 +1244,14 @@ void put_page_from_l1e(l1_pgentry_t l1e, struct domain *l1e_owner) }else { +#ifdef CONFIG_LEGACY_PV_LDT_PAGING /* We expect this is rare so we blow the entire shadow LDT. */ if (unlikely (((page->u.inuse.type_info & PGT_type_mask) == PGT_seg_desc_page)) &&unlikely (((page->u.inuse.type_info & PGT_count_mask) !=0 )) && (l1e_owner == pg_owner) ) { +struct vcpu *v;cpumask_t *mask =this_cpu (scratch_cpumask);cpumask_clear (mask);
@@ -1269,6 +1270,7 @@ void put_page_from_l1e(l1_pgentry_t l1e, struct domain *l1e_owner)if ( !cpumask_empty (mask) ) flush_tlb_mask(mask); } +#endif /* CONFIG_LEGACY_PV_LDT_PAGING */ put_page (page); } }
xen/arch/x86/pv/descriptor-tables.c +10 -0
@@ -37,10 +37,14 @@ bool pv_destroy_ldt(struct vcpu *v)ASSERT (!in_irq ()); +#ifdef CONFIG_LEGACY_PV_LDT_PAGING spin_lock (&v->arch.pv_vcpu.shadow_ldt_lock);if ( v->arch.pv_vcpu.shadow_ldt_mapcnt ==0 ) goto out; +#else +ASSERT (v == current || !vcpu_cpu_dirty (v)); +#endif pl1e =pv_ldt_ptes (v);
@@ -58,11 +62,13 @@ bool pv_destroy_ldt(struct vcpu *v)put_page_and_type (page); } +#ifdef CONFIG_LEGACY_PV_LDT_PAGING ASSERT (v->arch.pv_vcpu.shadow_ldt_mapcnt == mappings_dropped); v->arch.pv_vcpu.shadow_ldt_mapcnt =0 ; out:spin_unlock (&v->arch.pv_vcpu.shadow_ldt_lock); +#endif return mappings_dropped; }
@@ -74,6 +80,8 @@ void pv_destroy_gdt(struct vcpu *v)l1_pgentry_t zero_l1e =l1e_from_mfn (zero_mfn, __PAGE_HYPERVISOR_RO);unsigned int i; +ASSERT (v == current || !vcpu_cpu_dirty (v)); + v->arch.pv_vcpu.gdt_ents =0 ;for ( i =0 ; i <FIRST_RESERVED_GDT_PAGE ; i++ ) {
@@ -94,6 +102,8 @@ long pv_set_gdt(struct vcpu *v, unsigned long *frames, unsigned int entries)l1_pgentry_t *pl1e;unsigned int i, nr_frames =DIV_ROUND_UP (entries,512 ); +ASSERT (v == current || !vcpu_cpu_dirty (v)); +if ( entries >FIRST_RESERVED_GDT_ENTRY )return -EINVAL ;
xen/arch/x86/pv/domain.c +2 -0
@@ -171,7 +171,9 @@ int pv_vcpu_initialise(struct vcpu *v)ASSERT (!is_idle_domain (d)); +#ifdef CONFIG_LEGACY_PV_LDT_PAGING spin_lock_init (&v->arch.pv_vcpu.shadow_ldt_lock); +#endif rc =pv_create_gdt_ldt_l1tab (v);if ( rc )
xen/arch/x86/pv/mm.c +6 -0
@@ -119,10 +119,16 @@ bool pv_map_ldt_shadow_page(unsigned int offset) pl1e = &pv_ldt_ptes (curr)[offset >>PAGE_SHIFT ];l1e_add_flags (gl1e, _PAGE_RW); +#ifdef CONFIG_LEGACY_PV_LDT_PAGING spin_lock (&curr->arch.pv_vcpu.shadow_ldt_lock); +#endif +l1e_write (pl1e, gl1e); + +#ifdef CONFIG_LEGACY_PV_LDT_PAGING curr->arch.pv_vcpu.shadow_ldt_mapcnt++;spin_unlock (&curr->arch.pv_vcpu.shadow_ldt_lock); +#endif return true; }
xen/include/asm-x86/domain.h +2 -0
@@ -496,9 +496,11 @@ struct pv_vcpuunsigned int iopl;/* Current IOPL for this VCPU, shifted left by * 12 to match the eflags register. */ +#ifdef CONFIG_LEGACY_PV_LDT_PAGING /* Current LDT details. */ unsigned long shadow_ldt_mapcnt;spinlock_t shadow_ldt_lock; +#endif /* data breakpoint extension MSRs */ uint32_t dr_mask[4 ];
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 17 lines
Quoted 1 line
Quoted 1 line · On 26.06.18 at 13:35, <[email protected]> wrote:
xen/arch/x86/Kconfig +10
-0@@ -161,3 +161,24 @@ endmenu source "common/Kconfig" source "drivers/Kconfig" + +menu "Deprecated Functionality" + +config LEGACY_PV_LDT_PAGING + def_bool n + prompt "PV LDT Paging-out support" + ---help--- + For a very long time, the PV ABI has included the ability to page + out the LDT by transitioning its mapping to not-present. This + functionality is believed to only exist for the PV Windows XP port
xen/arch/x86/Kconfig endmenu · line 183
Quoted 10 lines
xen/arch/x86/Kconfig +10
-0+ which never came to anything. + + The implementation contains a vCPU scalability limitation in a + position which is prohibitively complicated to resolve. As the + feature is believed to be unused in practice, removing the feature + is the easiest remediation. + + If you discover a usecase which is broken by this option being off, + please contact [email protected] urgently. Baring + something unexpected, the code and this option will be removed.
I think it should be said here explicitly when (or to be precise, no earlier than when) this is going to happen.
I also think the security support status with the option enabled needs to be clarified. Perhaps we'd go in stages: Introduce the (default off) option, then (e.g. for 4.13) switch its use to security unsupported, and finally drop the code (e.g. for 4.14).
The code changes themselves look fine to me.
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 26.06.18 at 13:35, <[email protected]> wrote:
xen/arch/x86/Kconfig +14
-0@@ -161,3 +161,24 @@ endmenu source "common/Kconfig" source "drivers/Kconfig" + +menu "Deprecated Functionality" + +config LEGACY_PV_LDT_PAGING + def_bool n + prompt "PV LDT Paging-out support" + ---help--- + For a very long time, the PV ABI has included the ability to page + out the LDT by transitioning its mapping to not-present. This + functionality is believed to only exist for the PV Windows XP port + which never came to anything. + + The implementation contains a vCPU scalability limitation in a + position which is prohibitively complicated to resolve. As the
Quoted 8 lines
xen/arch/x86/Kconfig endmenu · line 183
Quoted 6 lines
xen/arch/x86/Kconfig +6
-0+ feature is believed to be unused in practice, removing the feature + is the easiest remediation. + + If you discover a usecase which is broken by this option being off, + please contact [email protected] urgently. Baring + something unexpected, the code and this option will be removed.I think it should be said here explicitly when (or to be precise, no earlier than when) this is going to happen.
I'm open to suggests, but decided not to name a specific release (if only to avoid second-guessing our future numbering and release schedule).
Quoted 4 lines
I also think the security support status with the option enabled needs to be clarified. Perhaps we'd go in stages: Introduce the (default off) option, then (e.g. for 4.13) switch its use to security unsupported, and finally drop the code (e.g. for 4.14).
I presume you mean that we should hide it behind EXPERT at that point?
What does the middle step gets us. If its going to be off by default and unable to be enabled by default, that is as good as deleted.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 35 lines
Quoted 1 line
Quoted 1 line
Andrew Cooper <[email protected]> 06/28/18 6:10 PM >>>
Quoted 21 lines · Jan Beulich
Quoted 21 lines
Quoted 1 line
Quoted 1 line · On 26.06.18 at 13:35, <[email protected]> wrote:
xen/arch/x86/Kconfig +14
-0@@ -161,3 +161,24 @@ endmenu source "common/Kconfig" source "drivers/Kconfig" + +menu "Deprecated Functionality" + +config LEGACY_PV_LDT_PAGING + def_bool n + prompt "PV LDT Paging-out support" + ---help--- + For a very long time, the PV ABI has included the ability to page + out the LDT by transitioning its mapping to not-present. This + functionality is believed to only exist for the PV Windows XP port + which never came to anything. + + The implementation contains a vCPU scalability limitation in a + position which is prohibitively complicated to resolve. As theQuoted 8 lines
xen/arch/x86/Kconfig endmenu · line 183
Quoted 6 lines
xen/arch/x86/Kconfig +6
-0+ feature is believed to be unused in practice, removing the feature + is the easiest remediation. + + If you discover a usecase which is broken by this option being off, + please contact [email protected] urgently. Baring + something unexpected, the code and this option will be removed.I think it should be said here explicitly when (or to be precise, no earlier than when) this is going to happen.
I'm open to suggests, but decided not to name a specific release (if only to avoid second-guessing our future numbering and release schedule).
Quoted 6 lines
Quoted 4 lines
I also think the security support status with the option enabled needs to be clarified. Perhaps we'd go in stages: Introduce the (default off) option, then (e.g. for 4.13) switch its use to security unsupported, and finally drop the code (e.g. for 4.14).
I presume you mean that we should hide it behind EXPERT at that point?
That's the best way to express it I guess, yes. Plus some form of remark in SUPPORT.md.
Quoted 2 lines
What does the middle step gets us. If its going to be off by default and unable to be enabled by default, that is as good as deleted.
Think of people only using released code: They'd notice the removed functionality only in 4.12. Removing the code right away for 4.13 could therefore be too early.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 1/1 x86/pv: Deprecate support for paging out the LDT
Quoted 43 lines · Jan Beulich
Quoted 31 lines
Quoted 1 line
Quoted 1 line
Andrew Cooper <[email protected]> 06/28/18 6:10 PM >>>
Quoted 21 lines · Jan Beulich
Quoted 21 lines
Quoted 1 line
Quoted 1 line · On 26.06.18 at 13:35, <[email protected]> wrote:
xen/arch/x86/Kconfig +14
-0@@ -161,3 +161,24 @@ endmenu source "common/Kconfig" source "drivers/Kconfig" + +menu "Deprecated Functionality" + +config LEGACY_PV_LDT_PAGING + def_bool n + prompt "PV LDT Paging-out support" + ---help--- + For a very long time, the PV ABI has included the ability to page + out the LDT by transitioning its mapping to not-present. This + functionality is believed to only exist for the PV Windows XP port + which never came to anything. + + The implementation contains a vCPU scalability limitation in a + position which is prohibitively complicated to resolve. As theQuoted 8 lines
xen/arch/x86/Kconfig endmenu · line 183
Quoted 6 lines
xen/arch/x86/Kconfig +6
-0+ feature is believed to be unused in practice, removing the feature + is the easiest remediation. + + If you discover a usecase which is broken by this option being off, + please contact [email protected] urgently. Baring + something unexpected, the code and this option will be removed.I think it should be said here explicitly when (or to be precise, no earlier than when) this is going to happen.
Quoted 8 lines
I'm open to suggests, but decided not to name a specific release (if only to avoid second-guessing our future numbering and release schedule).
Quoted 4 lines
I also think the security support status with the option enabled needs to be clarified. Perhaps we'd go in stages: Introduce the (default off) option, then (e.g. for 4.13) switch its use to security unsupported, and finally drop the code (e.g. for 4.14).
I presume you mean that we should hide it behind EXPERT at that point?
That's the best way to express it I guess, yes. Plus some form of remark in SUPPORT.md.
Quoted 5 lines
Quoted 2 lines
What does the middle step gets us. If its going to be off by default and unable to be enabled by default, that is as good as deleted.
Think of people only using released code: They'd notice the removed functionality only in 4.12. Removing the code right away for 4.13 could therefore be too early.
How can we unblock this patch? I stand by my original point of "that's as good as deleted and isn't actually useful for distros".
CC'ing the rest.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 45 lines
Quoted 1 line
Quoted 1 line · On 25.07.18 at 14:08, <[email protected]> wrote:
Quoted 43 lines · Jan Beulich
Quoted 31 lines
Quoted 1 line
Quoted 1 line
Andrew Cooper <[email protected]> 06/28/18 6:10 PM >>>
Quoted 21 lines · Jan Beulich
Quoted 21 lines
Quoted 1 line
Quoted 1 line · On 26.06.18 at 13:35, <[email protected]> wrote:
xen/arch/x86/Kconfig +14
-0@@ -161,3 +161,24 @@ endmenu source "common/Kconfig" source "drivers/Kconfig" + +menu "Deprecated Functionality" + +config LEGACY_PV_LDT_PAGING + def_bool n + prompt "PV LDT Paging-out support" + ---help--- + For a very long time, the PV ABI has included the ability to page + out the LDT by transitioning its mapping to not-present. This + functionality is believed to only exist for the PV Windows XP port + which never came to anything. + + The implementation contains a vCPU scalability limitation in a + position which is prohibitively complicated to resolve. As theQuoted 8 lines
xen/arch/x86/Kconfig endmenu · line 183
Quoted 6 lines
xen/arch/x86/Kconfig +6
-0+ feature is believed to be unused in practice, removing the feature + is the easiest remediation. + + If you discover a usecase which is broken by this option being off, + please contact [email protected] urgently. Baring + something unexpected, the code and this option will be removed.I think it should be said here explicitly when (or to be precise, no earlier than when) this is going to happen.
Quoted 8 lines
I'm open to suggests, but decided not to name a specific release (if only to avoid second-guessing our future numbering and release schedule).
Quoted 4 lines
I also think the security support status with the option enabled needs to be clarified. Perhaps we'd go in stages: Introduce the (default off) option, then (e.g. for 4.13) switch its use to security unsupported, and finally drop the code (e.g. for 4.14).
I presume you mean that we should hide it behind EXPERT at that point?
That's the best way to express it I guess, yes. Plus some form of remark in SUPPORT.md.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
What does the middle step gets us. If its going to be off by default and unable to be enabled by default, that is as good as deleted.
Think of people only using released code: They'd notice the removed functionality only in 4.12. Removing the code right away for 4.13 could therefore be too early.
How can we unblock this patch? I stand by my original point of "that's as good as deleted and isn't actually useful for distros".
I don't see how the patch is blocked - I've clearly outlined how I think this (or in fact any such) removal should be done.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 47 lines · Jan Beulich
Quoted 47 lines
Quoted 1 line
Quoted 1 line · On 25.07.18 at 14:08, <[email protected]> wrote:
Quoted 45 lines · Jan Beulich
Quoted 31 lines
Quoted 1 line
Quoted 1 line
Andrew Cooper <[email protected]> 06/28/18 6:10 PM >>>
Quoted 21 lines · Jan Beulich
Quoted 21 lines
Quoted 1 line
Quoted 1 line · On 26.06.18 at 13:35, <[email protected]> wrote:
xen/arch/x86/Kconfig +14
-0@@ -161,3 +161,24 @@ endmenu source "common/Kconfig" source "drivers/Kconfig" + +menu "Deprecated Functionality" + +config LEGACY_PV_LDT_PAGING + def_bool n + prompt "PV LDT Paging-out support" + ---help--- + For a very long time, the PV ABI has included the ability to page + out the LDT by transitioning its mapping to not-present. This + functionality is believed to only exist for the PV Windows XP port + which never came to anything. + + The implementation contains a vCPU scalability limitation in a + position which is prohibitively complicated to resolve. As theQuoted 8 lines
xen/arch/x86/Kconfig endmenu · line 183
Quoted 6 lines
xen/arch/x86/Kconfig +6
-0+ feature is believed to be unused in practice, removing the feature + is the easiest remediation. + + If you discover a usecase which is broken by this option being off, + please contact [email protected] urgently. Baring + something unexpected, the code and this option will be removed.I think it should be said here explicitly when (or to be precise, no earlier than when) this is going to happen.
Quoted 8 lines
I'm open to suggests, but decided not to name a specific release (if only to avoid second-guessing our future numbering and release schedule).
Quoted 4 lines
I also think the security support status with the option enabled needs to be clarified. Perhaps we'd go in stages: Introduce the (default off) option, then (e.g. for 4.13) switch its use to security unsupported, and finally drop the code (e.g. for 4.14).
I presume you mean that we should hide it behind EXPERT at that point?
That's the best way to express it I guess, yes. Plus some form of remark in SUPPORT.md.
Quoted 2 lines
What does the middle step gets us. If its going to be off by default and unable to be enabled by default, that is as good as deleted.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Think of people only using released code: They'd notice the removed functionality only in 4.12. Removing the code right away for 4.13 could therefore be too early.
How can we unblock this patch? I stand by my original point of "that's as good as deleted and isn't actually useful for distros".
I don't see how the patch is blocked - I've clearly outlined how I think this (or in fact any such) removal should be done.
... which I disagree with and thing should be done in the way presented in this path.
Hence the blockage.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 52 lines
Quoted 1 line
Quoted 1 line · On 25.07.18 at 14:18, <[email protected]> wrote:
Quoted 50 lines · Jan Beulich
Quoted 50 lines
Quoted 1 line
Quoted 1 line · On 25.07.18 at 14:08, <[email protected]> wrote:
Quoted 48 lines · Jan Beulich
Quoted 31 lines
Quoted 1 line
Quoted 1 line
Andrew Cooper <[email protected]> 06/28/18 6:10 PM >>>
Quoted 21 lines · Jan Beulich
Quoted 21 lines
Quoted 1 line
Quoted 1 line · On 26.06.18 at 13:35, <[email protected]> wrote:
xen/arch/x86/Kconfig +14
-0@@ -161,3 +161,24 @@ endmenu source "common/Kconfig" source "drivers/Kconfig" + +menu "Deprecated Functionality" + +config LEGACY_PV_LDT_PAGING + def_bool n + prompt "PV LDT Paging-out support" + ---help--- + For a very long time, the PV ABI has included the ability to page + out the LDT by transitioning its mapping to not-present. This + functionality is believed to only exist for the PV Windows XP port + which never came to anything. + + The implementation contains a vCPU scalability limitation in a + position which is prohibitively complicated to resolve. As theQuoted 8 lines
xen/arch/x86/Kconfig endmenu · line 183
Quoted 6 lines
xen/arch/x86/Kconfig +6
-0+ feature is believed to be unused in practice, removing the feature + is the easiest remediation. + + If you discover a usecase which is broken by this option being off, + please contact [email protected] urgently. Baring + something unexpected, the code and this option will be removed.I think it should be said here explicitly when (or to be precise, no earlier than when) this is going to happen.
Quoted 8 lines
I'm open to suggests, but decided not to name a specific release (if only to avoid second-guessing our future numbering and release schedule).
Quoted 4 lines
I also think the security support status with the option enabled needs to be clarified. Perhaps we'd go in stages: Introduce the (default off) option, then (e.g. for 4.13) switch its use to security unsupported, and finally drop the code (e.g. for 4.14).
I presume you mean that we should hide it behind EXPERT at that point?
That's the best way to express it I guess, yes. Plus some form of remark in SUPPORT.md.
Quoted 2 lines
What does the middle step gets us. If its going to be off by default and unable to be enabled by default, that is as good as deleted.
Think of people only using released code: They'd notice the removed functionality only in 4.12. Removing the code right away for 4.13 could therefore be too early.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
How can we unblock this patch? I stand by my original point of "that's as good as deleted and isn't actually useful for distros".
I don't see how the patch is blocked - I've clearly outlined how I think this (or in fact any such) removal should be done.
... which I disagree with and thing should be done in the way presented in this path.
First of all - the end result (in a couple of years time) is going to be the same.
And then note how I did say "perhaps" in my original reply. I'm not going to insist on the middle step. What I demand though is that two full release cycles lie between deprecation and removal, to allow people (of which we hope there to be none) relying on the functionality but not trying out development versions to be able notice the issue and report their needs. And I strongly think this should be spelled out, as suggested, in a "no earlier than" form. The doc aspect can hardly be controversial, and with this I'm having difficulty seeing much of a disagreement here.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 62 lines · Jan Beulich
Quoted 52 lines
Quoted 1 line
Quoted 1 line · On 25.07.18 at 14:18, <[email protected]> wrote:
Quoted 50 lines · Jan Beulich
Quoted 50 lines
Quoted 1 line
Quoted 1 line · On 25.07.18 at 14:08, <[email protected]> wrote:
Quoted 48 lines · Jan Beulich
Quoted 31 lines
Quoted 1 line
Quoted 1 line
Andrew Cooper <[email protected]> 06/28/18 6:10 PM >>>
Quoted 21 lines · Jan Beulich
Quoted 21 lines
Quoted 1 line
Quoted 1 line · On 26.06.18 at 13:35, <[email protected]> wrote:
xen/arch/x86/Kconfig +14
-0@@ -161,3 +161,24 @@ endmenu source "common/Kconfig" source "drivers/Kconfig" + +menu "Deprecated Functionality" + +config LEGACY_PV_LDT_PAGING + def_bool n + prompt "PV LDT Paging-out support" + ---help--- + For a very long time, the PV ABI has included the ability to page + out the LDT by transitioning its mapping to not-present. This + functionality is believed to only exist for the PV Windows XP port + which never came to anything. + + The implementation contains a vCPU scalability limitation in a + position which is prohibitively complicated to resolve. As theQuoted 8 lines
xen/arch/x86/Kconfig endmenu · line 183
Quoted 6 lines
xen/arch/x86/Kconfig +6
-0+ feature is believed to be unused in practice, removing the feature + is the easiest remediation. + + If you discover a usecase which is broken by this option being off, + please contact [email protected] urgently. Baring + something unexpected, the code and this option will be removed.I think it should be said here explicitly when (or to be precise, no earlier than when) this is going to happen.
Quoted 8 lines
I'm open to suggests, but decided not to name a specific release (if only to avoid second-guessing our future numbering and release schedule).
Quoted 4 lines
I also think the security support status with the option enabled needs to be clarified. Perhaps we'd go in stages: Introduce the (default off) option, then (e.g. for 4.13) switch its use to security unsupported, and finally drop the code (e.g. for 4.14).
I presume you mean that we should hide it behind EXPERT at that point?
That's the best way to express it I guess, yes. Plus some form of remark in SUPPORT.md.
Quoted 2 lines
What does the middle step gets us. If its going to be off by default and unable to be enabled by default, that is as good as deleted.
Think of people only using released code: They'd notice the removed functionality only in 4.12. Removing the code right away for 4.13 could therefore be too early.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
How can we unblock this patch? I stand by my original point of "that's as good as deleted and isn't actually useful for distros".
I don't see how the patch is blocked - I've clearly outlined how I think this (or in fact any such) removal should be done.
... which I disagree with and thing should be done in the way presented in this path.
First of all - the end result (in a couple of years time) is going to be the same.
Quoted 8 lines
And then note how I did say "perhaps" in my original reply. I'm not going to insist on the middle step. What I demand though is that two full release cycles lie between deprecation and removal, to allow people (of which we hope there to be none) relying on the functionality but not trying out development versions to be able notice the issue and report their needs. And I strongly think this should be spelled out, as suggested, in a "no earlier than" form. The doc aspect can hardly be controversial, and with this I'm having difficulty seeing much of a disagreement here.
Since Andy seems to be soliciting other opinions:
* If it were entirely up to me, I'd probably go with deprecating it over 2 releases instead of 3. I don't see much benefit in a release without security support.
* But I don't think it hurts that much to have it 'deprecated' for two releases.
* On the whole I don't think this matters much; I'd be happy with flipping a coin to settle it.
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel