Backport fixes
cover Backport fixes
Patch 1 is applicable to Xen 4.10 and 4.11
Patch 2 is applicable to just Xen 4.11
Andrew Cooper (2):
xen: Fix backport of "xen/cmdline: Fix buggy strncmp(s, LITERAL, ss - s) construct"
xen: Fix backport of "x86/tsx: Implement controls for RTM force-aborte mode"
xen/arch/x86/cpu/vpmu.c | 4 ++++ xen/arch/x86/dom0_build.c | 4 ++-- xen/arch/x86/hvm/vmx/vmcs.c | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-)
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 1/2 xen: Fix backport of "xen/cmdline: Fix buggy strncmp(s, LITERAL, ss - s) construct"
These were missed as a consequence of being rebased over other cmdline cleanup.
---
CC: Jan Beulich <[email protected]>
xen/arch/x86/dom0_build.c | 4 ++-- xen/arch/x86/hvm/vmx/vmcs.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
xen/arch/x86/dom0_build.c +2 -2
@@ -237,10 +237,10 @@ static int __init parse_dom0_param(const char *s)if ( !ss ) ss =strchr (s,'\0' ); -if ( !strncmp (s,"pvh" , ss - s) ) +if ( !cmdline_strcmp (s,"pvh" ) ) dom0_pvh = true;#ifdef CONFIG_SHADOW_PAGING - else if ( !strncmp(s, "shadow", ss - s) ) + else if ( !cmdline_strcmp(s, "shadow") ) opt_dom0_shadow = true;#endif else
xen/arch/x86/hvm/vmx/vmcs.c +2 -2
@@ -90,9 +90,9 @@ static int __init parse_ept_param(const char *s)if ( !ss ) ss =strchr (s,'\0' ); -if ( !strncmp (s,"pml" , ss - s) ) +if ( !cmdline_strcmp (s,"pml" ) ) opt_pml_enabled = val; -else if ( !strncmp (s,"ad" , ss - s) ) +else if ( !cmdline_strcmp (s,"ad" ) ) opt_ept_ad = val;else rc = -EINVAL ;
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH for-4.{11, 10} 1/2] xen: Fix backport of "xen/cmdline: Fix buggy strncmp(s, LITERAL, ss - s) construct"
Quoted 5 lines
Quoted 1 line
Quoted 1 line · On 29.04.19 at 18:16, <[email protected]> wrote:
These were missed as a consequence of being rebased over other cmdline cleanup.
Signed-off-by Andrew Cooper <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 2/2 xen: Fix backport of "x86/tsx: Implement controls for RTM force-abort mode"
In reply to Andrew CooperThe posted version of this patch depends on c/s 3c555295 "x86/vpmu: Improve documentation and parsing for vpmu=" (Xen 4.12 and later) to prevent vpmu=rtm-abort impliying vpmu=1, which is outside of security support.
---
CC: Jan Beulich <[email protected]>
xen/arch/x86/cpu/vpmu.c | 4 ++++ 1 file changed, 4 insertions(+)
xen/arch/x86/cpu/vpmu.c +4 -0
@@ -91,6 +91,10 @@ static int __init parse_vpmu_params(const char *s) s = ss +1 ; }while ( *ss ); + +if ( !vpmu_features )/* rtm-abort doesn't imply vpmu=1 */ +break ; +/* fall through */ case 1 :/* Default VPMU mode */
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH for 4.11 2/2] xen: Fix backport of "x86/tsx: Implement controls for RTM force-abort mode"
Quoted 6 lines
Quoted 1 line
Quoted 1 line · On 29.04.19 at 18:16, <[email protected]> wrote:
The posted version of this patch depends on c/s
3c555295"x86/vpmu: Improve documentation and parsing for vpmu=" (Xen 4.12 and later) to preventvpmu=rtm-abortimpliyingvpmu=1, which is outside of security support.Signed-off-by Andrew Cooper <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel