Message ID | 1556554590-25358-2-git-send-email-andrew.cooper3@citrix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Backport fixes | expand |
>>> On 29.04.19 at 18:16, <andrew.cooper3@citrix.com> wrote: > These were missed as a consequence of being rebased over other cmdline > cleanup. > > Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com>
diff --git a/xen/arch/x86/dom0_build.c b/xen/arch/x86/dom0_build.c index b744791..dbd7d0d 100644 --- a/xen/arch/x86/dom0_build.c +++ b/xen/arch/x86/dom0_build.c @@ -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 diff --git a/xen/arch/x86/hvm/vmx/vmcs.c b/xen/arch/x86/hvm/vmx/vmcs.c index 49c916b..19755f2 100644 --- a/xen/arch/x86/hvm/vmx/vmcs.c +++ b/xen/arch/x86/hvm/vmx/vmcs.c @@ -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;
These were missed as a consequence of being rebased over other cmdline cleanup. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> --- CC: Jan Beulich <JBeulich@suse.com> xen/arch/x86/dom0_build.c | 4 ++-- xen/arch/x86/hvm/vmx/vmcs.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)