[Xen-devel] [PATCH v2 14/52] xen/arch/x86/mm.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/mm.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/mm.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion

[Xen-devel] [PATCH v2 38/52] xen/xsm/flask/flask_op.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/xsm/flask/flask_op.c to indicate whether the parameter value was parsed successfully. Cc: Daniel De Graaf Signed-off-by: Juergen Gross Acked-by: Daniel De Graaf Acked-by: Wei Liu --- xen/xsm/flask/flask_op.c | 6 -- 1 file changed, 4

[Xen-devel] [PATCH v2 22/52] xen/arch/x86/x86_64/mmconfig-shared.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/x86_64/mmconfig-shared.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/x86_64/mmconfig-shared.c | 19 +++

[Xen-devel] [PATCH v2 01/52] xen/arch/arm/acpi/boot.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/arm/acpi/boot.c to indicate whether the parameter value was parsed successfully. Cc: Stefano Stabellini Cc: Julien Grall Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/arm/acpi/boot.c | 8 ++-- 1 file changed, 6 inse

[Xen-devel] [PATCH v2 39/52] xen: check parameter validity when parsing command line

2017-08-14 Thread Juergen Gross
Where possible check validity of parameters in _cmdline_parse() and issue a warning message in case of an error detected. Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu Signed-off-by: Juergen G

[Xen-devel] [PATCH v2 03/52] xen/arch/arm/traps.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/arm/traps.c to indicate whether the parameter value was parsed successfully. Cc: Stefano Stabellini Cc: Julien Grall Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/arm/traps.c | 8 +--- 1 file changed, 5 insertions(+

[Xen-devel] [PATCH v2 24/52] xen/common/domain.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/common/domain.c to indicate whether the parameter value was parsed successfully. Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu Signed-off

[Xen-devel] [PATCH v2 27/52] xen/common/memory.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/common/memory.c to indicate whether the parameter value was parsed successfully. Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu Signed-off

[Xen-devel] [PATCH v2 26/52] xen/common/kexec.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/common/kexec.c to indicate whether the parameter value was parsed successfully. Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/common/kexec.c | 30 ++ 1 file changed, 26 insertions(+),

[Xen-devel] [PATCH v2 04/52] xen/arch/x86/apic.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/apic.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/apic.c | 11 --- 1 file changed, 8 insertions(+), 3

[Xen-devel] [PATCH v2 19/52] xen/arch/x86/setup.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/setup.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/setup.c | 32 ++-- 1 file chan

[Xen-devel] [PATCH v2 13/52] xen/arch/x86/microcode.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/microcode.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/microcode.c | 10 +++--- 1 file changed, 7 inserti

[Xen-devel] [PATCH v2 42/52] xen/arch/x86/hvm/viridian.c: remove custom_param() error messages

2017-08-14 Thread Juergen Gross
With _cmdline_parse() now issuing error messages in case of illegal parameters signalled by parsing functions specified in custom_param() the message issued by parse_viridian_version() can be removed. Cc: Paul Durrant Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Reviewed-by:

[Xen-devel] [PATCH v2 34/52] xen/drivers/passthrough/pci.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/drivers/passthrough/pci.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/drivers/passthrough/pci.c | 17 - 1 file changed, 12 insertio

[Xen-devel] [PATCH v2 15/52] xen/arch/x86/nmi.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/nmi.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/nmi.c | 20 ++-- 1 file changed, 14 insertio

[Xen-devel] [PATCH v2 30/52] xen/drivers/char/console.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/drivers/char/console.c to indicate whether the parameter value was parsed successfully. Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu Sig

[Xen-devel] [PATCH v2 49/52] libxc: add function to set hypervisor parameters

2017-08-14 Thread Juergen Gross
Add a new libxc function to set hypervisor parameters at runtime similar to boot time parameters via command line. Cc: Ian Jackson Cc: Wei Liu Signed-off-by: Juergen Gross Acked-by: Wei Liu --- tools/libxc/include/xenctrl.h | 1 + tools/libxc/xc_misc.c | 20 2 fi

[Xen-devel] [PATCH v2 11/52] xen/arch/x86/io_apic.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
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 Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/io_apic.c | 7 ++- 1 file changed, 6 insertions(+),

[Xen-devel] [PATCH v2 44/52] xen/common/kexec.c: remove custom_param() error messages

2017-08-14 Thread Juergen Gross
With _cmdline_parse() now issuing error messages in case of illegal parameters signalled by parsing functions specified in custom_param() some messages issued by parse_low_crashinfo() and parse_crashinfo_maxaddr() can be removed. Cc: Andrew Cooper Signed-off-by: Juergen Gross --- xen/common/kex

[Xen-devel] [PATCH v2 35/52] xen/drivers/passthrough/vtd/dmar.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/drivers/passthrough/vtd/dmar.c to indicate whether the parameter value was parsed successfully. Cc: Kevin Tian Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/drivers/passthrough/vtd/dmar.c | 4 +++- 1 file changed, 3 insertions(+),

[Xen-devel] [PATCH v2 20/52] xen/arch/x86/shutdown.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/shutdown.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/shutdown.c | 6 +- 1 file changed, 5 insertions(+),

[Xen-devel] [PATCH v2 40/52] xen/arch/x86/apic.c: remove custom_param() error messages

2017-08-14 Thread Juergen Gross
With _cmdline_parse() now issuing error messages in case of illegal parameters signalled by parsing functions specified in custom_param() the message issued by apic_set_verbosity() can be removed. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross --- xen/arch/x86/apic.c | 5 +

[Xen-devel] [PATCH v2 50/52] libxl: add libxl_set_parameters() function

2017-08-14 Thread Juergen Gross
Add a new libxl function to set hypervisor parameters at runtime similar to boot time parameters via command line. Cc: Ian Jackson Cc: Wei Liu Signed-off-by: Juergen Gross --- V2: - corrected coding style (Wei Liu) - removed superfluous #ifdef (Wei Liu) --- tools/libxl/libxl.c | 15 +++

[Xen-devel] [PATCH v2 25/52] xen/common/efi/boot.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/common/efi/boot.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/common/efi/boot.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --

[Xen-devel] [PATCH v2 31/52] xen/drivers/cpufreq/cpufreq.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/drivers/cpufreq/cpufreq.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/drivers/cpufreq/cpufreq.c | 18 +- xen/include/acpi/cpuf

[Xen-devel] [PATCH v2 37/52] xen/drivers/video/vesa.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/drivers/video/vesa.c to indicate whether the parameter value was parsed successfully. Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu Signe

[Xen-devel] [PATCH v2 29/52] xen/drivers/acpi/tables.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/drivers/acpi/tables.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/drivers/acpi/tables.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)

[Xen-devel] [PATCH v2 08/52] xen/arch/x86/genapic/probe.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/genapic/probe.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/genapic/probe.c | 8 ++-- 1 file changed, 6 in

[Xen-devel] [PATCH v2 00/52] Support for modifying parameters at runtime

2017-08-14 Thread Juergen Gross
Currently parameters of the hypervisor (e.g. console log level) can be set via boot command line. Instead of having to reboot the system in case another setting is desired, being able to modify many of those parameters at runtime would be the better option. This patch series addresses this by addi

[Xen-devel] [PATCH v2 41/52] xen/arch/x86/cpu/mcheck/mce.c: remove custom_param() error messages

2017-08-14 Thread Juergen Gross
With _cmdline_parse() now issuing error messages in case of illegal parameters signalled by parsing functions specified in custom_param() the message issued by mce_set_verbosity() can be removed. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross --- xen/arch/x86/cpu/mcheck/mce.c |

[Xen-devel] [PATCH v2 52/52] xen: make some console related parameters settable at runtime

2017-08-14 Thread Juergen Gross
Support modifying conswitch, console_timestamps, loglvl and guest_loglvl at runtime. Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu Signed-off-by: Juergen Gross Reviewed-by: Wei Liu --- docs

[Xen-devel] [PATCH v2 48/52] xen: add hypercall for setting parameters at runtime

2017-08-14 Thread Juergen Gross
Add a sysctl hypercall to support setting parameters similar to command line parameters, but at runtime. The parameters to set are specified as a string, just like the boot parameters. Cc: Daniel De Graaf Cc: Ian Jackson Cc: Wei Liu Cc: Andrew Cooper Cc: George Dunlap Cc: Jan Beulich Cc: Kon

[Xen-devel] [PATCH v2 10/52] xen/arch/x86/hvm/vmx/vmcs.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/hvm/vmx/vmcs.c to indicate whether the parameter value was parsed successfully. Cc: Jun Nakajima Cc: Kevin Tian Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/hvm/vmx/vmcs.c |

[Xen-devel] [PATCH v2 33/52] xen/drivers/passthrough/iommu.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/drivers/passthrough/iommu.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/drivers/passthrough/iommu.c | 15 ++- 1 file changed, 10 insert

[Xen-devel] [PATCH v2 02/52] xen/arch/arm/domain_build.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/arm/domain_build.c to indicate whether the parameter value was parsed successfully. Cc: Stefano Stabellini Cc: Julien Grall Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/arm/domain_build.c | 4 +++- 1 file changed, 3 in

[Xen-devel] [PATCH v2 28/52] xen/common/sched_credit2.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/common/sched_credit2.c to indicate whether the parameter value was parsed successfully. Cc: George Dunlap Cc: Dario Faggioli Signed-off-by: Juergen Gross Acked-by: Dario Faggioli Acked-by: Wei Liu --- xen/common/sched_credit2.c | 6 -

[Xen-devel] [PATCH v2 12/52] xen/arch/x86/irq.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/irq.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/irq.c | 9 +++-- 1 file changed, 7 insertions(+), 2 dele

[Xen-devel] [PATCH v2 18/52] xen/arch/x86/psr.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/psr.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/psr.c | 28 +--- 1 file changed, 21

[Xen-devel] [PATCH v2 51/52] xl: add new xl command set-parameters

2017-08-14 Thread Juergen Gross
Add a new xl command "set-parameters" to set hypervisor parameters at runtime similar to boot time parameters via command line. Cc: Ian Jackson Cc: Wei Liu Signed-off-by: Juergen Gross Acked-by: Wei Liu --- docs/man/xl.pod.1.in | 5 + tools/xl/xl.h | 1 + tools/xl/xl_cmdtable

[Xen-devel] [PATCH v2 21/52] xen/arch/x86/time.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/time.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/time.c | 6 +- 1 file changed, 5 insertions(+), 1 delet

[Xen-devel] [PATCH v2 45/52] xen/common/sched_credit2.c: remove custom_param() error messages

2017-08-14 Thread Juergen Gross
With _cmdline_parse() now issuing error messages in case of illegal parameters signalled by parsing functions specified in custom_param() the message issued by parse_credit2_runqueue() can be removed. Cc: George Dunlap Cc: Dario Faggioli Signed-off-by: Juergen Gross Acked-by: Dario Faggioli --

[Xen-devel] [PATCH v2 23/52] xen/common/core_parking.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/common/core_parking.c to indicate whether the parameter value was parsed successfully. Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu Sign

[Xen-devel] [PATCH v2 36/52] xen/drivers/passthrough/vtd/quirks.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/drivers/passthrough/vtd/quirks.c to indicate whether the parameter value was parsed successfully. Cc: Kevin Tian Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/drivers/passthrough/vtd/quirks.c | 7 --- 1 file changed, 4 inserti

[Xen-devel] [PATCH v2 09/52] xen/arch/x86/hvm/viridian.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/hvm/viridian.c to indicate whether the parameter value was parsed successfully. Cc: Paul Durrant Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Reviewed-by: Paul Durrant Acked-by: Wei Liu --- xen/arch/x86/hvm/vi

[Xen-devel] [PATCH v2 47/52] xen: add basic support for runtime parameter changing

2017-08-14 Thread Juergen Gross
Add the needed infrastructure for runtime parameter changing similar to that used at boot time via cmdline. We are using the same parsing functions as for cmdline parsing, but with a different array of parameter definitions. Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich C

[Xen-devel] [PATCH v2 32/52] xen/drivers/passthrough/amd/iommu_acpi.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/drivers/passthrough/amd/iommu_acpi.c to indicate whether the parameter value was parsed successfully. Cc: Suravee Suthikulpanit Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/drivers/passthrough/amd/iommu_acpi.c | 26 ++

[Xen-devel] [PATCH v2 43/52] xen/arch/x86/io_apic.c: remove custom_param() error messages

2017-08-14 Thread Juergen Gross
With _cmdline_parse() now issuing error messages in case of illegal parameters signalled by parsing functions specified in custom_param() the message issued by setup_ioapic_ack() can be removed. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross --- xen/arch/x86/io_apic.c | 3 ---

[Xen-devel] [PATCH v2 46/52] xen: carve out a generic parsing function from _cmdline_parse()

2017-08-14 Thread Juergen Gross
In order to support generic parameter parsing carve out the parser from _cmdline_parse(). As this generic function might be called after boot remove the __init annotations from all called sub-functions. Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wi

[Xen-devel] [PATCH v2 06/52] xen/arch/x86/cpu/vpmu.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/cpu/vpmu.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/cpu/vpmu.c | 7 --- 1 file changed, 4 insertions(+)

[Xen-devel] [PATCH v2 05/52] xen/arch/x86/cpu/mcheck/mce.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/cpu/mcheck/mce.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/cpu/mcheck/mce.c | 7 ++- 1 file changed, 6 i

[Xen-devel] [PATCH v2 07/52] xen/arch/x86/dom0_build.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/dom0_build.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/dom0_build.c | 19 +++ 1 file changed

[Xen-devel] [PATCH v2 17/52] xen/arch/x86/oprofile/nmi_int.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/oprofile/nmi_int.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/oprofile/nmi_int.c | 2 ++ 1 file changed, 2 in

[Xen-devel] [PATCH v2 16/52] xen/arch/x86/numa.c: let custom parameter parsing routines return errno

2017-08-14 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/arch/x86/numa.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich Cc: Andrew Cooper Signed-off-by: Juergen Gross Acked-by: Wei Liu --- xen/arch/x86/numa.c | 10 ++ 1 file changed, 6 insertions(+), 4

[Xen-devel] [linux-4.9 test] 112621: regressions - trouble: blocked/broken/fail/pass

2017-08-14 Thread osstest service owner
flight 112621 linux-4.9 real [real] http://logs.test-lab.xenproject.org/osstest/logs/112621/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-pvops 6 kernel-build fail REGR. vs. 112513 Tests which did not s

Re: [Xen-devel] [PATCH v1 01/13] docs: create Memory Bandwidth Allocation (MBA) feature document

2017-08-14 Thread Chao Peng
> + Linear mode: the input precision is defined as 100-(MBA_MAX). > For instance, > + if the MBA_MAX value is 90, the input precision is 10%. Values > not an even > + multiple of the precision (e.g., 12%) will be rounded down > (e.g., to 10% > + delay applied) by HW automatically.

[Xen-devel] [ovmf test] 112623: all pass - PUSHED

2017-08-14 Thread osstest service owner
flight 112623 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/112623/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 79de8c79cdef26e5578050b7f1a206745c6cff14 baseline version: ovmf 0795920568ca2efbea71b

Re: [Xen-devel] [PATCH 00/25 v7] SBSA UART emulation support in Xen

2017-08-14 Thread Bhupinder Thakur
Hi Julien, >> After that I tried to stress the emulation a bit with "find ." to get a lot >> of output. And I noticed a lot of message similar to the one below on xen >> console: >> >> d6v0 vpl011: Unexpected OUT ring buffer full >> >> Associated to that the character have been eaten resulting to

Re: [Xen-devel] [PATCH v1 01/13] docs: create Memory Bandwidth Allocation (MBA) feature document

2017-08-14 Thread Yi Sun
On 17-08-14 15:35:38, Chao Peng wrote: > > > + Linear mode: the input precision is defined as 100-(MBA_MAX). > > For instance, > > + if the MBA_MAX value is 90, the input precision is 10%. Values > > not an even > > + multiple of the precision (e.g., 12%) will be rounded down > > (e.g.

Re: [Xen-devel] [PATCH v2 44/52] xen/common/kexec.c: remove custom_param() error messages

2017-08-14 Thread Jan Beulich
>>> On 14.08.17 at 09:08, wrote: > With _cmdline_parse() now issuing error messages in case of illegal > parameters signalled by parsing functions specified in custom_param() > some messages issued by parse_low_crashinfo() and > parse_crashinfo_maxaddr() can be removed. But you realize this resul

Re: [Xen-devel] [PATCH v2 44/52] xen/common/kexec.c: remove custom_param() error messages

2017-08-14 Thread Juergen Gross
On 14/08/17 10:39, Jan Beulich wrote: On 14.08.17 at 09:08, wrote: >> With _cmdline_parse() now issuing error messages in case of illegal >> parameters signalled by parsing functions specified in custom_param() >> some messages issued by parse_low_crashinfo() and >> parse_crashinfo_maxaddr()

Re: [Xen-devel] [PATCH v2 44/52] xen/common/kexec.c: remove custom_param() error messages

2017-08-14 Thread Jan Beulich
>>> On 14.08.17 at 11:07, wrote: > On 14/08/17 10:39, Jan Beulich wrote: > On 14.08.17 at 09:08, wrote: >>> With _cmdline_parse() now issuing error messages in case of illegal >>> parameters signalled by parsing functions specified in custom_param() >>> some messages issued by parse_low_crash

[Xen-devel] [distros-debian-sid test] 71972: tolerable trouble: blocked/broken/fail/pass

2017-08-14 Thread Platform Team regression test user
flight 71972 distros-debian-sid real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/71972/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-arm64-arm64-armhf-sid-netboot-pygrub 1 build-check(1)blocked n/a build-arm64-pvops

Re: [Xen-devel] [PATCH 3/5] xen: RCU/x86/ARM: discount CPUs that were idle when grace period started.

2017-08-14 Thread Dario Faggioli
On Wed, 2017-08-09 at 12:38 +0100, Tim Deegan wrote: > Hi, > > At 10:01 +0200 on 27 Jul (1501149684), Dario Faggioli wrote: > > In Xen, that is impossible, and that's particularly problematic > > when system is idle (or lightly loaded) systems, as CPUs that > > are idle may never have the chance t

[Xen-devel] [libvirt test] 112624: tolerable trouble: blocked/broken/pass - PUSHED

2017-08-14 Thread osstest service owner
flight 112624 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/112624/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-arm64-arm64-libvirt-xsm 1 build-check(1) blocked n/a build-arm64-libvirt 1 build-check(1)

Re: [Xen-devel] [PATCH v1 01/13] docs: create Memory Bandwidth Allocation (MBA) feature document

2017-08-14 Thread Chao Peng
> > > + > > > +# Areas for improvement > > > + > > > +A hexadecimal number is used to show THRTL for a domain now. It > > > may > > > not be user- > > > +friendly. > > > + > > > +To improve this, the libxl interfaces can be wrapped in libvirt > > > to > > > provide more > > > +usr-friendly interfac

[Xen-devel] [ovmf baseline-only test] 71973: regressions - FAIL

2017-08-14 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 71973 ovmf real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/71973/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-xsm6 xen-build

[Xen-devel] [PATCH] include/public: add new elf note for support of huge physical addresses

2017-08-14 Thread Juergen Gross
Current pv guests will only see physical addresses up to 46 bits wide. In order to be able to run on a host supporting 5 level paging and to make use of any possible memory page there, physical addresses with up to 52 bits have to be supported. As Xen needs to know whether a pv guest can handle su

Re: [Xen-devel] [PATCH] include/public: add new elf note for support of huge physical addresses

2017-08-14 Thread Jan Beulich
>>> On 14.08.17 at 12:21, wrote: > Current pv guests will only see physical addresses up to 46 bits wide. > In order to be able to run on a host supporting 5 level paging and to > make use of any possible memory page there, physical addresses with up > to 52 bits have to be supported. Is this a X

Re: [Xen-devel] [PATCH v7 1/9] mm: Clean up free_heap_pages()

2017-08-14 Thread Jan Beulich
>>> On 08.08.17 at 23:44, wrote: > Make buddy merging part of free_heap_pages() a bit more readable. > > Signed-off-by: Boris Ostrovsky Reviewed-by: Jan Beulich ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH XTF v2] Functional: Add a UMIP test

2017-08-14 Thread Andrew Cooper
On 14/08/17 06:08, Boqun Feng (Intel) wrote: > Add a "umip" test for the User-Model Instruction Prevention. The test > simply tries to run sgdt/sidt/sldt/str/smsw in guest user-mode with > CR4_UMIP = 1. > > Signed-off-by: Boqun Feng (Intel) Thankyou for this. Its looking much better. Just a few

Re: [Xen-devel] [PATCH] include/public: add new elf note for support of huge physical addresses

2017-08-14 Thread Juergen Gross
On 14/08/17 12:29, Jan Beulich wrote: On 14.08.17 at 12:21, wrote: >> Current pv guests will only see physical addresses up to 46 bits wide. >> In order to be able to run on a host supporting 5 level paging and to >> make use of any possible memory page there, physical addresses with up >> to

Re: [Xen-devel] [PATCH v7 2/9] mm: Place unscrubbed pages at the end of pagelist

2017-08-14 Thread Jan Beulich
>>> On 08.08.17 at 23:45, wrote: > .. so that it's easy to find pages that need to be scrubbed (those pages are > now marked with _PGC_need_scrub bit). > > We keep track of the first unscrubbed page in a page buddy using first_dirty > field. For now it can have two values, 0 (whole buddy needs sc

Re: [Xen-devel] [PATCH 3/5] xen: RCU/x86/ARM: discount CPUs that were idle when grace period started.

2017-08-14 Thread Tim Deegan
Hi, At 11:19 +0200 on 14 Aug (1502709563), Dario Faggioli wrote: > Basically, for the race to occur (in [3]), it is necessary that [2] > (CPU1 doing rcp->cur++) happens after [1] (last call to rcu_pending() > of CPU2, before clearing the mask and going idle). In fact, it that is > not the case, rc

Re: [Xen-devel] [PATCH v7 7/9] mm: Keep heap accessible to others while scrubbing

2017-08-14 Thread Jan Beulich
>>> On 08.08.17 at 23:45, wrote: > Instead of scrubbing pages while holding heap lock we can mark > buddy's head as being scrubbed and drop the lock temporarily. > If someone (most likely alloc_heap_pages()) tries to access > this chunk it will signal the scrubber to abort scrub by setting > head'

Re: [Xen-devel] [PATCH] include/public: add new elf note for support of huge physical addresses

2017-08-14 Thread Jan Beulich
>>> On 14.08.17 at 12:35, wrote: > On 14/08/17 12:29, Jan Beulich wrote: > On 14.08.17 at 12:21, wrote: >>> Current pv guests will only see physical addresses up to 46 bits wide. >>> In order to be able to run on a host supporting 5 level paging and to >>> make use of any possible memory page

[Xen-devel] [PATCH 2/2] x86/page: Introduce and use PAGE_HYPERVISOR_UC

2017-08-14 Thread Andrew Cooper
Always map the PCI MMCFG region as strongly uncacheable. Nothing good will happen if stray MTRR settings end up converting UC- to WC. Signed-off-by: Andrew Cooper --- CC: Jan Beulich --- xen/arch/x86/x86_64/mmconfig_64.c | 2 +- xen/include/asm-x86/page.h| 1 + xen/include/asm-x86/x86_

[Xen-devel] [PATCH 1/2] x86/page: Rename PAGE_HYPERVISOR_NOCACHE to PAGE_HYPERVISOR_UCMINUS

2017-08-14 Thread Andrew Cooper
To better describe its actual function. No functional change. Signed-off-by: Andrew Cooper --- CC: Jan Beulich --- xen/arch/x86/boot/x86_64.S| 2 +- xen/arch/x86/mm.c | 2 +- xen/arch/x86/x86_64/mmconfig_64.c | 2 +- xen/include/asm-arm/mm.h | 2 +- xen/include

[Xen-devel] [PATCH 0/2] x86/page: Minor adustments to uncacheable mappings

2017-08-14 Thread Andrew Cooper
Andrew Cooper (2): x86/page: Rename PAGE_HYPERVISOR_NOCACHE to PAGE_HYPERVISOR_UCMINUS x86/page: Introduce and use PAGE_HYPERVISOR_UC xen/arch/x86/boot/x86_64.S| 2 +- xen/arch/x86/mm.c | 2 +- xen/arch/x86/x86_64/mmconfig_64.c | 2 +- xen/include/asm-arm/mm.h

Re: [Xen-devel] [PATCH 1/2] x86/page: Rename PAGE_HYPERVISOR_NOCACHE to PAGE_HYPERVISOR_UCMINUS

2017-08-14 Thread Andrew Cooper
On 14/08/17 11:57, Andrew Cooper wrote: > diff --git a/xen/include/asm-arm/mm.h b/xen/include/asm-arm/mm.h > index ef84b72..8999ae7 100644 > --- a/xen/include/asm-arm/mm.h > +++ b/xen/include/asm-arm/mm.h > @@ -176,7 +176,7 @@ void __iomem *ioremap_attr(paddr_t start, size_t len, > unsigned attrib

Re: [Xen-devel] [PATCH] include/public: add new elf note for support of huge physical addresses

2017-08-14 Thread Juergen Gross
On 14/08/17 12:48, Jan Beulich wrote: On 14.08.17 at 12:35, wrote: >> On 14/08/17 12:29, Jan Beulich wrote: >> On 14.08.17 at 12:21, wrote: Current pv guests will only see physical addresses up to 46 bits wide. In order to be able to run on a host supporting 5 level paging and

[Xen-devel] [xen-unstable test] 112622: regressions - trouble: blocked/broken/fail/pass

2017-08-14 Thread osstest service owner
flight 112622 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/112622/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-pvops 6 kernel-build fail in 112608 REGR. vs. 112544 Tests which are fa

Re: [Xen-devel] [PATCH v7 2/9] mm: Place unscrubbed pages at the end of pagelist

2017-08-14 Thread Julien Grall
Hi Boris, On 08/08/17 22:45, Boris Ostrovsky wrote: .. so that it's easy to find pages that need to be scrubbed (those pages are now marked with _PGC_need_scrub bit). We keep track of the first unscrubbed page in a page buddy using first_dirty field. For now it can have two values, 0 (whole bud

Re: [Xen-devel] [PATCH v7 6/9] spinlock: Introduce spin_lock_cb()

2017-08-14 Thread Julien Grall
Hi Boris, On 08/08/17 22:45, Boris Ostrovsky wrote: While waiting for a lock we may want to periodically run some code. This code may, for example, allow the caller to release resources held by it that are no longer needed in the critical section protected by the lock. Specifically, this featur

Re: [Xen-devel] Regression PCI passthrough from 4.5.5 to 4.6.0-rc1

2017-08-14 Thread Andreas Kinzler
On Mon, 31 Jul 2017 12:12:45 +0200, Jan Beulich wrote: "Andreas Kinzler" 07/17/17 6:32 PM >>> Jan, I still have access to the hardware so perhaps we can finally solve this problem. Feel free to go ahead; I'll be on vacation for the next three weeks. Perhaps we can shortcut debugging a bit

Re: [Xen-devel] [PATCH] include/public: add new elf note for support of huge physical addresses

2017-08-14 Thread Jan Beulich
>>> On 14.08.17 at 13:05, wrote: > On 14/08/17 12:48, Jan Beulich wrote: > On 14.08.17 at 12:35, wrote: >>> On 14/08/17 12:29, Jan Beulich wrote: >>> On 14.08.17 at 12:21, wrote: > Current pv guests will only see physical addresses up to 46 bits wide. > In order to be able to run

Re: [Xen-devel] Regression PCI passthrough from 4.5.5 to 4.6.0-rc1

2017-08-14 Thread Jan Beulich
>>> On 14.08.17 at 13:31, wrote: > On Mon, 31 Jul 2017 12:12:45 +0200, Jan Beulich wrote: > "Andreas Kinzler" 07/17/17 6:32 PM >>> > Jan, I still have access to the hardware so perhaps we can finally > solve > this problem. Feel free to go ahead; I'll be on vacation for th

[Xen-devel] [xen-unstable-smoke test] 112630: tolerable trouble: broken/pass - PUSHED

2017-08-14 Thread osstest service owner
flight 112630 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/112630/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-arm64-arm64-xl-xsm 1 build-check(1) blocked n/a build-arm64-pvops 2 hos

Re: [Xen-devel] Regarding changing memory for DOM0

2017-08-14 Thread Julien Grall
On 11/08/17 09:55, Andrii Anisov wrote: Hello George, Hello, On 11.08.17 10:16, George John wrote: I checked with xen version 4.9, Still the error for the filesystem persists. What seems to be the problem?. I am attaching the log for the above error and also the dts file I am using. I've

Re: [Xen-devel] [PATCH 1/2] x86/page: Rename PAGE_HYPERVISOR_NOCACHE to PAGE_HYPERVISOR_UCMINUS

2017-08-14 Thread Jan Beulich
>>> On 14.08.17 at 12:57, wrote: > --- a/xen/arch/x86/boot/x86_64.S > +++ b/xen/arch/x86/boot/x86_64.S > @@ -92,7 +92,7 @@ l1_identmap: > .rept L1_PAGETABLE_ENTRIES > /* VGA hole (0xa-0xc) should be mapped UC. */ > .if pfn >= 0xa0 && pfn < 0xc0 > -.quad (

Re: [Xen-devel] [PATCH 2/2] x86/page: Introduce and use PAGE_HYPERVISOR_UC

2017-08-14 Thread Jan Beulich
>>> On 14.08.17 at 12:57, wrote: > Always map the PCI MMCFG region as strongly uncacheable. Nothing good will > happen if stray MTRR settings end up converting UC- to WC. I was tempted to ask the question on patch 1. > Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich

Re: [Xen-devel] Regression PCI passthrough from 4.5.5 to 4.6.0-rc1

2017-08-14 Thread Roger Pau Monné
On Mon, Aug 14, 2017 at 05:44:00AM -0600, Jan Beulich wrote: > >>> On 14.08.17 at 13:31, wrote: > > On Mon, 31 Jul 2017 12:12:45 +0200, Jan Beulich wrote: > > "Andreas Kinzler" 07/17/17 6:32 PM >>> > > Jan, I still have access to the hardware so perhaps we can finally > > solve > >

Re: [Xen-devel] Regression PCI passthrough from 4.5.5 to 4.6.0-rc1

2017-08-14 Thread Andreas Kinzler
On Mon, 14 Aug 2017 13:56:58 +0200, Roger Pau Monné wrote: > I defined XEN_PT_LOGGING_ENABLED in xen_pt.h as requested without the > "hack" patch. Log is attached. Does it help? It tells me that there's nothing unexpected on that side. As I think I had indicated before, we really need to see bo

Re: [Xen-devel] [PATCH v2] x86: fix printed messages in arch_set_info_hvm_guest

2017-08-14 Thread Jan Beulich
>>> On 09.08.17 at 12:50, wrote: > Append the target vCPU in the messages printed by > arch_set_info_hvm_guest. While this is a good idea, I'm not convinced of the use of these messages in non-debug builds. And if they're to stay, I'd really like to ask to make them as short as possible (without

Re: [Xen-devel] Regarding changing memory for DOM0

2017-08-14 Thread Andrii Anisov
Hello Julien, On 14.08.17 14:50, Julien Grall wrote: The kernel should really be able to deal with memory below and above 4GB. Yes, it should. I suppose a bug somewhere in Renesas eth driver. Meanwhile George John could make some investigations. Otherwise the problem would be exactly the same

Re: [Xen-devel] [PATCH] include/public: add new elf note for support of huge physical addresses

2017-08-14 Thread Juergen Gross
On 14/08/17 13:40, Jan Beulich wrote: On 14.08.17 at 13:05, wrote: >> On 14/08/17 12:48, Jan Beulich wrote: >> On 14.08.17 at 12:35, wrote: On 14/08/17 12:29, Jan Beulich wrote: On 14.08.17 at 12:21, wrote: >> Current pv guests will only see physical addresses up to 46

Re: [Xen-devel] [PATCH] include/public: add new elf note for support of huge physical addresses

2017-08-14 Thread Andrew Cooper
On 14/08/17 11:21, Juergen Gross wrote: > Current pv guests will only see physical addresses up to 46 bits wide. > In order to be able to run on a host supporting 5 level paging and to > make use of any possible memory page there, physical addresses with up > to 52 bits have to be supported. > > As

Re: [Xen-devel] [PATCH 01/11] xen/grant_table: Include mm.h in xen/grant_table.h

2017-08-14 Thread Wei Liu
On Fri, Aug 11, 2017 at 07:02:47PM +0100, Julien Grall wrote: > While re-ordering the include alphabetically in arch/arm/domain.c, I got > a complitation error because grant_table.h is using gfn_t before been > defined: > > In file included from domain.c:14:0: > xen/xen/include/xen/grant_table.h:1

Re: [Xen-devel] [PATCH XTF v2] Functional: Add a UMIP test

2017-08-14 Thread Boqun Feng
On Mon, Aug 14, 2017 at 11:35:47AM +0100, Andrew Cooper wrote: > On 14/08/17 06:08, Boqun Feng (Intel) wrote: > > Add a "umip" test for the User-Model Instruction Prevention. The test > > simply tries to run sgdt/sidt/sldt/str/smsw in guest user-mode with > > CR4_UMIP = 1. > > > > Signed-off-by: Bo

Re: [Xen-devel] [PATCH v2] x86/xen/64: Rearrange the SYSCALL entries

2017-08-14 Thread Brian Gerst
On Mon, Aug 14, 2017 at 1:53 AM, Andy Lutomirski wrote: > On Sun, Aug 13, 2017 at 7:44 PM, Brian Gerst wrote: >> On Mon, Aug 7, 2017 at 11:59 PM, Andy Lutomirski wrote: >>> /* Normal 64-bit system call target */ >>> ENTRY(xen_syscall_target) >>> - undo_xen_syscall >>> - jmp entry_S

Re: [Xen-devel] [PATCH v2 39/52] xen: check parameter validity when parsing command line

2017-08-14 Thread Jan Beulich
>>> On 14.08.17 at 09:08, wrote: > --- a/xen/common/kernel.c > +++ b/xen/common/kernel.c > @@ -23,9 +23,11 @@ enum system_state system_state = SYS_STATE_early_boot; > xen_commandline_t saved_cmdline; > static const char __initconst opt_builtin_cmdline[] = CONFIG_CMDLINE; > > -static void __ini

  1   2   3   >