Message ID | 20170809070706.13481-12-jgross@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/xen/arch/x86/io_apic.c b/xen/arch/x86/io_apic.c index 2838f6bd99..f790579dbd 100644 --- a/xen/arch/x86/io_apic.c +++ b/xen/arch/x86/io_apic.c @@ -1581,7 +1581,7 @@ static unsigned int startup_level_ioapic_irq(struct irq_desc *desc) return 0; /* don't check for pending */ } -static void __init setup_ioapic_ack(char *s) +static int __init setup_ioapic_ack(char *s) { if ( !strcmp(s, "old") ) { @@ -1594,7 +1594,12 @@ static void __init setup_ioapic_ack(char *s) ioapic_ack_forced = true; } else + { printk("Unknown ioapic_ack value specified: '%s'\n", s); + return -EINVAL; + } + + return 0; } custom_param("ioapic_ack", setup_ioapic_ack);
Modify the custom parameter parsing routines in: xen/arch/x86/io_apic.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich <jbeulich@suse.com> Cc: Andrew Cooper <andrew.cooper3@citrix.com> Signed-off-by: Juergen Gross <jgross@suse.com> --- xen/arch/x86/io_apic.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)