[Xen-devel] [linux-3.18 test] 112843: trouble: blocked/broken/fail/pass

2017-08-23 Thread osstest service owner
flight 112843 linux-3.18 real [real] http://logs.test-lab.xenproject.org/osstest/logs/112843/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-pvops 3 capture-logs broken REGR. vs. 112102

Re: [Xen-devel] [PATCH V2 16/25] x86/vioapic: Hook interrupt delivery of vIOAPIC

2017-08-23 Thread Lan Tianyu
On 2017年08月23日 17:59, Roger Pau Monné wrote: > On Wed, Aug 09, 2017 at 04:34:17PM -0400, Lan Tianyu wrote: >> From: Chao Gao >> >> When irq remapping is enabled, IOAPIC Redirection Entry may be in remapping >> format. If that, generate an irq_remapping_request and call the

Re: [Xen-devel] [PATCH v4] hvm: vmx/svm_cpu_up_prepare should be called only once

2017-08-23 Thread Tian, Kevin
> From: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] > Sent: Tuesday, August 22, 2017 10:08 AM > > These routines are first called via CPU_UP_PREPARE notifier by > the BSP and then by the booting ASP from vmx_cpu_up()/_svm_cpu_up(). > > Avoid the unnecessary second call. Because BSP

Re: [Xen-devel] [PATCH] x86: enable RCU based table free when PARAVIRT

2017-08-23 Thread Kirill A. Shutemov
On Wed, Aug 23, 2017 at 08:27:18PM +, Linus Torvalds wrote: > On Wed, Aug 23, 2017 at 12:59 PM, Kirill A. Shutemov > wrote: > > > > In this case we need performance numbers for !PARAVIRT kernel. > > Yes. > > > Numbers for tight loop of "mmap(MAP_POPULATE); munmap()"

Re: [Xen-devel] [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-23 Thread Takashi Sakamoto
On Aug 23 2017 23:51, Oleksandr Grytsov wrote: Hi, Thank you for detailed explanation. We understand that emulated interrupt on the frontend side is completely not acceptable and definitely we need to provide some feedback mechanism from Dom0 to DomU. In our case it is technically impossible

Re: [Xen-devel] [PATCH V2 9/25] tools/libxl: build DMAR table for a guest with one virtual VTD

2017-08-23 Thread Lan Tianyu
On 2017年08月23日 16:34, Wei Liu wrote: > On Wed, Aug 23, 2017 at 01:35:17PM +0800, Lan Tianyu wrote: >> On 2017年08月22日 21:48, Wei Liu wrote: > Hi, Wei > Thanks for your comments. > > iirc, HVM only supports one module; DMAR cannot be a new module. Joining > to > the existing

Re: [Xen-devel] [PATCH V2 7/25] tools/libacpi: Add new fields in acpi_config for DMAR table

2017-08-23 Thread Lan Tianyu
On 2017年08月23日 16:04, Roger Pau Monné wrote: > On Wed, Aug 23, 2017 at 03:52:01PM +0800, Lan Tianyu wrote: >> On 2017年08月23日 00:41, Roger Pau Monné wrote: > +drhd = (struct acpi_dmar_hardware_unit *)((void*)dmar + > sizeof(*dmar)); > +drhd->type = ACPI_DMAR_TYPE_HARDWARE_UNIT;

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

2017-08-23 Thread osstest service owner
flight 112841 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/112841/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-win7-amd64 18 guest-start/win.repeat fail REGR. vs. 112809

Re: [Xen-devel] [PATCH V2 11/25] x86/hvm: Introduce a emulated VTD for HVM

2017-08-23 Thread Lan Tianyu
On 2017年08月23日 15:58, Roger Pau Monné wrote: > On Wed, Aug 09, 2017 at 04:34:12PM -0400, Lan Tianyu wrote: >> From: Chao Gao >> >> This patch adds create/destroy/query function for the emulated VTD >> and adapts it to the common VIOMMU abstraction. >> >> Signed-off-by: Chao

[Xen-devel] [xen-4.5-testing test] 112838: tolerable FAIL - PUSHED

2017-08-23 Thread osstest service owner
flight 112838 xen-4.5-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/112838/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-xl-rtds 7 xen-boot fail like 110906 test-xtf-amd64-amd64-2 59

[Xen-devel] [PATCH v2 14/15] tools: implement new generic set value interface and MBA set value command

2017-08-23 Thread Yi Sun
This patch implements new generic set value interfaces in libxc and libxl. These interfaces are suitable for all allocation features. It also adds a new MBA set value command in xl. Signed-off-by: Yi Sun --- tools/libxc/include/xenctrl.h | 6 ++---

[Xen-devel] [PATCH v2 15/15] docs: add MBA description in docs

2017-08-23 Thread Yi Sun
This patch adds MBA description in related documents. Signed-off-by: Yi Sun Acked-by: Wei Liu --- v2: - state the value type shown by 'psr-mba-show'. For linear mode, it shows decimal value. For non-linear mode, it shows hexadecimal

[Xen-devel] [PATCH v2 03/15] x86: rename 'cbm_type' to 'psr_val_type' to make it general

2017-08-23 Thread Yi Sun
This patch renames 'cbm_type' to 'psr_val_type' to make it be general. Then, we can reuse this for all psr allocation features. Signed-off-by: Yi Sun Reviewed-by: Wei Liu --- v2: - replace 'PSR_VAL_TYPE_{L3, L2}' to 'PSR_VAL_TYPE_{L3, L2}_CBM'.

[Xen-devel] [PATCH v2 11/15] tools: implement the new xl get hw info interface

2017-08-23 Thread Yi Sun
This patch implements a new xl get HW info interface. A new argument is added for psr-hwinfo command to get and show MBA HW info. Signed-off-by: Yi Sun --- v2: - split out this patch from a big patch in v1. (suggested by Wei Liu) - change 'MBA_INFO' to

[Xen-devel] [PATCH v2 13/15] tools: implement new generic get value interface and MBA get value command

2017-08-23 Thread Yi Sun
This patch implements generic get value interfaces in libxc and libxl. It also refactors the get value flow in xl to make it be suitable for all allocation features. Based on that, a new MBA get value command is added in xl. Signed-off-by: Yi Sun Acked-by: Wei Liu

[Xen-devel] [PATCH v2 12/15] tools: rename 'xc_psr_cat_type' to 'xc_psr_val_type'

2017-08-23 Thread Yi Sun
This patch renames 'xc_psr_cat_type' to 'xc_psr_val_type' so that the structure name is common for all allocation features. Signed-off-by: Yi Sun Acked-by: Wei Liu Reviewed-by: Chao Peng ---

[Xen-devel] [PATCH v2 01/15] docs: create Memory Bandwidth Allocation (MBA) feature document

2017-08-23 Thread Yi Sun
This patch creates MBA feature document in doc/features/. It describes key points to implement MBA which is described in details in Intel SDM "Introduction to Memory Bandwidth Allocation". Signed-off-by: Yi Sun --- v2: - declare 'HW' in Terminology. (suggested

[Xen-devel] [PATCH v2 04/15] x86: implement data structure and CPU init flow for MBA

2017-08-23 Thread Yi Sun
This patch implements main data structures of MBA. Like CAT features, MBA HW info has cos_max which means the max thrtl register number, and thrtl_max which means the max throttle value (delay value). It also has a flag to represent if the throttle value is linear or not. One thrtl register of

[Xen-devel] [PATCH v2 02/15] Rename PSR sysctl/domctl interfaces and xsm policy to make them be general

2017-08-23 Thread Yi Sun
This patch renames PSR sysctl/domctl interfaces and related xsm policy to make them be general for all resource allocation features but not only for CAT. Then, we can resuse the interfaces for all allocation features. Basically, it changes 'cat' to 'alloc'. E.g.: 1. psr_cat_op -> psr_alloc_op 2.

[Xen-devel] [PATCH v2 07/15] x86: implement set value flow for MBA

2017-08-23 Thread Yi Sun
This patch implements set value flow for MBA including its callback function and domctl interface. It also changes the memebers in 'cos_write_info' to transfer the feature array, feature properties array and value array. Then, we can write all features values on the cos id into MSRs. Because

[Xen-devel] [PATCH v2 10/15] tools: implement the new libxl get hw info interface

2017-08-23 Thread Yi Sun
This patch implements the new libxl get hw info interface, 'libxl_psr_get_hw_info', which is suitable to all psr allocation features. It also implements corresponding list free function, 'libxl_psr_hw_info_list_free' and make 'libxl_psr_cat_get_info' to call 'libxl_psr_get_hw_info' to avoid

[Xen-devel] [PATCH v2 00/15] Enable Memory Bandwidth Allocation in Xen

2017-08-23 Thread Yi Sun
Hi, all, We plan to bring a new PSR (Platform Shared Resource) feature called Intel Memory Bandwidth Allocation (MBA) to Xen. Besides the MBA enabling, we change some interfaces to make them more general but not only for CAT. Any comments are welcome! You can find this patch set at:

[Xen-devel] [PATCH v2 09/15] tools: implement the new libxc get hw info interface

2017-08-23 Thread Yi Sun
This patch implements a new libxc get hw info interface and corresponding data structures. It also changes libxl_psr.c to call this new interface. Signed-off-by: Yi Sun --- v2: - split this patch out from a big patch in v1. (suggested by Wei Liu) - change

[Xen-devel] [PATCH v2 06/15] x86: implement get value interface for MBA

2017-08-23 Thread Yi Sun
This patch implements get value domctl interface for MBA. Signed-off-by: Yi Sun --- xen/arch/x86/domctl.c | 7 +++ xen/include/public/domctl.h | 1 + 2 files changed, 8 insertions(+) diff --git a/xen/arch/x86/domctl.c b/xen/arch/x86/domctl.c index

[Xen-devel] [PATCH v2 08/15] tools: create general interfaces to support psr allocation features

2017-08-23 Thread Yi Sun
This patch creates general interfaces in libxl to support all psr allocation features. Add 'LIBXL_HAVE_PSR_MBA' to indicate interface change. Please note, the functionality cannot work until later patches are applied. Signed-off-by: Yi Sun --- v2: - remove '_INFO'

[Xen-devel] [PATCH v2 05/15] x86: implement get hw info flow for MBA

2017-08-23 Thread Yi Sun
This patch implements get HW info flow for MBA including its callback function and sysctl interface. Signed-off-by: Yi Sun --- v2: - use 'XEN_SYSCTL_PSR_MBA_LINEAR' to set MBA feature HW info. (suggested by Chao Peng) v1: - sort 'PSR_INFO_IDX_' macros as

[Xen-devel] [xen-4.6-testing baseline-only test] 72008: regressions - FAIL

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

[Xen-devel] [linux-linus test] 112834: regressions - trouble: blocked/broken/fail/pass

2017-08-23 Thread osstest service owner
flight 112834 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/112834/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-examine 7 reboot fail REGR. vs. 110515

[Xen-devel] [ovmf baseline-only test] 72009: all pass

2017-08-23 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 72009 ovmf real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/72009/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 27ee96701a9495644aefae3690ca6849a79f7631 baseline

Re: [Xen-devel] [stage1-xen (RFC) PATCH 06/10] build/fedora: Add `xen-unstable-runit/*` scripts

2017-08-23 Thread Stefano Stabellini
On Mon, 21 Aug 2017, Rajiv Ranganath wrote: > From: Rajiv M Ranganath > > > --- > build/fedora/xen-unstable-runit/setup.sh | 21 > > build/fedora/xen-unstable-runit/teardown.sh| 21 > >

Re: [Xen-devel] [PATCH 4/6] xsm: flask: change the interface and default policy for xsm_map_gmfn_foregin

2017-08-23 Thread Zhongze Liu
Hi Jan, Thanks for reviewing my patch. 2017-08-23 17:55 GMT+08:00 Jan Beulich : On 22.08.17 at 20:08, wrote: >> The original xsm_map_gmfn_foregin policy checks if source domain has the >> proper >> privileges over the target domain. Under this

Re: [Xen-devel] [stage1-xen (RFC) PATCH 10/10] BUILDING.md: Add Fedora instructions

2017-08-23 Thread Stefano Stabellini
On Mon, 21 Aug 2017, Rajiv Ranganath wrote: > --- > BUILDING.md | 35 ++- > 1 file changed, 30 insertions(+), 5 deletions(-) > > diff --git a/BUILDING.md b/BUILDING.md > index 3ef5311..b9ca404 100644 > --- a/BUILDING.md > +++ b/BUILDING.md > @@ -1,7 +1,13 @@ >

Re: [Xen-devel] [stage1-xen (RFC) PATCH 09/10] build/fedora: Add `RUNNING_STAGE1_XEN.md`

2017-08-23 Thread Stefano Stabellini
On Mon, 21 Aug 2017, Rajiv Ranganath wrote: This is a great and well detailed document. I have a few suggestions below to provide some info for people that wants to do it manually. > --- > build/fedora/RUNNING_STAGE1_XEN.md | 383 > > 1 file changed, 383

Re: [Xen-devel] [stage1-xen (RFC) PATCH 08/10] README.md: Add CircleCI badge

2017-08-23 Thread Stefano Stabellini
On Mon, 21 Aug 2017, Rajiv Ranganath wrote: > From: Rajiv M Ranganath Reviewed-by: Stefano Stabellini > --- > README.md |2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/README.md b/README.md > index 9ea6adf..e1cd40c 100644 >

Re: [Xen-devel] [stage1-xen (RFC) PATCH 07/10] .circleci/config.yml: Add

2017-08-23 Thread Stefano Stabellini
On Mon, 21 Aug 2017, Rajiv Ranganath wrote: > From: Rajiv M Ranganath Does .circleci need to be in the top directory or could it be under fedora? If possible, I think it would make more sense to introduce it there. > > --- > .circleci/config.yml | 21

Re: [Xen-devel] [stage1-xen (RFC) PATCH 02/10] build/fedora: Add `buildroot-README.md`

2017-08-23 Thread Stefano Stabellini
On Mon, 21 Aug 2017, Rajiv Ranganath wrote: > From: Rajiv M Ranganath In addition to the instructions below, please mention how to build stage1-xen manually by installing the dependencies listed in buildroot-Dockerfile and executing build/fedora/run by hand. >

Re: [Xen-devel] [stage1-xen (RFC) PATCH 04/10] build/fedora: Add `run`

2017-08-23 Thread Stefano Stabellini
On Mon, 21 Aug 2017, Rajiv Ranganath wrote: > From: Rajiv M Ranganath This is great, just a couple of comments. Please split it into two scripts: one to build the dependecies (xen, qemu, etc.), and the other to build stage1-xen. Of course, you could have one `run'

Re: [Xen-devel] [stage1-xen (RFC) PATCH 00/10] Add Fedora support

2017-08-23 Thread Stefano Stabellini
On Mon, 21 Aug 2017, Rajiv Ranganath wrote: > Hi Stefanao, > > Following series adds documentation on how to use stage1-xen on Fedora. > It also adds continuous build support using CircleCI. > > Xen, Qemu, rkt and stage1 ACI image are built using a Fedora based > container. This setup allows for

Re: [Xen-devel] [PATCH] x86: enable RCU based table free when PARAVIRT

2017-08-23 Thread Linus Torvalds
On Wed, Aug 23, 2017 at 3:36 PM, Kirill A. Shutemov wrote: > > Below is test cases that allocates a lot of page tables and measuare > fork/exit time. (I'm not entirely sure it's the best way to stress the > codepath.) Looks ok to me. Doing a profile (without the

[Xen-devel] [PATCH] xen: Don't try to call xen_alloc_p2m_entry() on autotranslating guests

2017-08-23 Thread Boris Ostrovsky
Commit aba831a69632 ("xen: remove tests for pvh mode in pure pv paths") removed XENFEAT_auto_translated_physmap test in xen_alloc_p2m_entry() since it is assumed that the routine is never called by non-PV guests. However, alloc_xenballooned_pages() may make this call on a PVH guest. Prevent this

Re: [Xen-devel] [PATCH 1/1] xen-blkback: stop blkback thread of every queue in xen_blkif_disconnect

2017-08-23 Thread Konrad Rzeszutek Wilk
.snip.. > > > > Acked-by: Roger Pau Monné > > Forgot to add, this needs to be backported to stable branches, so: Annie, could you resend the patch with the tags and an update to the description to me please? > > Cc: sta...@vger.kernel.org > > Roger. > >

Re: [Xen-devel] [PATCH] x86: enable RCU based table free when PARAVIRT

2017-08-23 Thread Linus Torvalds
On Wed, Aug 23, 2017 at 12:59 PM, Kirill A. Shutemov wrote: > > In this case we need performance numbers for !PARAVIRT kernel. Yes. > Numbers for tight loop of "mmap(MAP_POPULATE); munmap()" might be > interesting too for worst case scenario. Actually, I don't think you

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

2017-08-23 Thread osstest service owner
flight 112840 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/112840/ 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

Re: [Xen-devel] [PATCH] x86: enable RCU based table free when PARAVIRT

2017-08-23 Thread Kirill A. Shutemov
On Wed, Aug 23, 2017 at 11:26:46AM -0700, Linus Torvalds wrote: > On Wed, Aug 23, 2017 at 6:45 AM, Vitaly Kuznetsov wrote: > > > > Solve the issue by enabling RCU-based table free mechanism when PARAVIRT > > is selected in config. Testing with kernbench doesn't show any

[Xen-devel] [xen-4.9-testing baseline-only test] 72007: regressions - trouble: blocked/broken/fail/pass

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

Re: [Xen-devel] [PATCH 14/27] xen/arm: traps: Improve logging for data/prefetch abort fault

2017-08-23 Thread Julien Grall
On 08/22/2017 06:20 PM, Andre Przywara wrote: Hi, Hi Andre, On 14/08/17 15:24, Julien Grall wrote: Walk the hypervisor page table for data/prefetch abort fault to help diagnostics error in the page tables. Signed-off-by: Julien Grall --- xen/arch/arm/traps.c |

Re: [Xen-devel] [PATCH 11/27] xen/arm: Add FnV field in hsr_*abt

2017-08-23 Thread Julien Grall
On 08/22/2017 05:07 PM, Andre Przywara wrote: Hi, Hi Andre, On 14/08/17 15:24, Julien Grall wrote: FnV (FAR not Valid) bit was introduced by ARMv8 in both AArch32 and AArch64 (See D7-2275, D7-2277, G6-4958, G6-4962 in ARM DDI 0487B.a). I understand that this just prepares the data

[Xen-devel] [PATCH] x86/pv: Minor improvements to guest_get_eff_{, kern}_l1e()

2017-08-23 Thread Andrew Cooper
* These functions work in terms of linear addresses, not virtual addresses. Update the comments and parameter names. * Drop unnecessary inlines. * Drop vcpu parameter from guest_get_eff_kern_l1e(). Its sole caller passes current, and its callee strictly operates on current. * Switch

Re: [Xen-devel] [PATCH 10/27] xen/arm: arm32: Don't define FAR_EL1

2017-08-23 Thread Julien Grall
On 08/22/2017 03:37 PM, Andre Przywara wrote: Hi, Hi Andre, On 14/08/17 15:24, Julien Grall wrote: Aliasing FAR_EL1 to IFAR is wrong because on ARMv8 FAR_EL1[31:0] is architecturally mapped to DFAR and FAR_EL1[63:32] to DFAR.

Re: [Xen-devel] [PATCH 09/27] xen/arm: traps: Don't define FAR_EL2 for ARM32

2017-08-23 Thread Julien Grall
On 08/22/2017 03:12 PM, Andre Przywara wrote: Hi, Hi Andre, On 14/08/17 15:24, Julien Grall wrote: Aliasing FAR_EL2 to HIFAR makes the code confusing because on ARMv8 FAR_EL2[31:0] is architecturally mapped to HDFAR and FAR_EL2[63:32] to FAR_EL2. ^^^ I guess you mean HIFAR here.

Re: [Xen-devel] [PATCH 25/27] xen/arm: mm: Embed permission in the flags

2017-08-23 Thread Julien Grall
On 08/23/2017 03:37 PM, Andre Przywara wrote: Hi, Hi Andre, On 23/08/17 15:26, Julien Grall wrote: On 08/23/2017 03:08 PM, Andre Przywara wrote: Hi, Hi, On 14/08/17 15:24, Julien Grall wrote: Currently, it is not possible to specify the permission of a new mapping. It would be

Re: [Xen-devel] [PATCH 19/27] xen/arm: page: Clean-up the definition of MAIRVAL

2017-08-23 Thread Julien Grall
On 08/23/2017 12:42 PM, Andre Przywara wrote: Hi, Hi Andre, On 14/08/17 15:24, Julien Grall wrote: Currently MAIRVAL is defined in term of MAIR0VAL and MAIR1VAL which are both hardcoded value. This makes quite difficult to understand the value written in both registers. Rework the

Re: [Xen-devel] [PATCH 18/27] xen/arm: page: Prefix memory types with MT_

2017-08-23 Thread Julien Grall
On 08/23/2017 12:41 PM, Andre Przywara wrote: Hi, Hi Andre, On 14/08/17 15:24, Julien Grall wrote: >> diff --git a/xen/include/asm-arm/page.h b/xen/include/asm-arm/page.h index 660e1779c5..d7a048b64d 100644 --- a/xen/include/asm-arm/page.h +++ b/xen/include/asm-arm/page.h @@ -25,17 +25,17

Re: [Xen-devel] [PATCH] x86: enable RCU based table free when PARAVIRT

2017-08-23 Thread Linus Torvalds
On Wed, Aug 23, 2017 at 6:45 AM, Vitaly Kuznetsov wrote: > > Solve the issue by enabling RCU-based table free mechanism when PARAVIRT > is selected in config. Testing with kernbench doesn't show any notable > performance impact: I wonder if we should just make it

[Xen-devel] [PATCH] x86/pv: Drop create_pae_xen_mappings()

2017-08-23 Thread Andrew Cooper
This is leftovers from the 32bit hypervisor days. The only Xen content in this virtual range for 32bit PV guests is the compat M2P. It is not critical that the mapping is present, nor is it critical that the slot is unshared. Signed-off-by: Andrew Cooper --- CC: Jan

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

2017-08-23 Thread osstest service owner
flight 112847 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/112847/ 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

[Xen-devel] [PATCH v4 10/53] xen/arch/x86/hvm/viridian.c: let custom parameter parsing routines return errno

2017-08-23 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. Fix an error in the parsing function: up to now it would overwrite the stack in case more than 3 values are specified. Cc: Paul Durrant

[Xen-devel] [PATCH v4 51/53] libxl: add libxl_set_parameters() function

2017-08-23 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 Acked-by: Wei Liu --- V2: -

[Xen-devel] [PATCH v4 31/53] xen/drivers/char/console.c: let custom parameter parsing routines return errno

2017-08-23 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

[Xen-devel] [PATCH v4 35/53] xen/drivers/passthrough/pci.c: let custom parameter parsing routines return errno

2017-08-23 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 --- V4: - differentiate error return values (Jan Beulich) - drop

[Xen-devel] [PATCH v4 07/53] xen/arch/x86/cpu/vpmu.c: let custom parameter parsing routines return errno

2017-08-23 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-devel] [PATCH v4 11/53] xen/arch/x86/hvm/vmx/vmcs.c: let custom parameter parsing routines return errno

2017-08-23 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

[Xen-devel] [PATCH v4 40/53] xen: check parameter validity when parsing command line

2017-08-23 Thread Juergen Gross
Where possible check validity of parameters in _cmdline_parse() and issue a warning message in case of an error detected. In order to make sure a custom parameter parsing function really returns a value (error or success), don't use a void pointer for storing the function address, but a proper

[Xen-devel] [PATCH v4 19/53] xen/arch/x86/psr.c: let custom parameter parsing routines return errno

2017-08-23 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 --- V4: - pass end of parameter

[Xen-devel] [PATCH v4 17/53] xen/arch/x86/numa.c: let custom parameter parsing routines return errno

2017-08-23 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-devel] [PATCH v4 37/53] xen/drivers/passthrough/vtd/quirks.c: let custom parameter parsing routines return errno

2017-08-23 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-devel] [PATCH v4 32/53] xen/drivers/cpufreq/cpufreq.c: let custom parameter parsing routines return errno

2017-08-23 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 --- V4: - add __initdata (Jan Beulich) - adapt parse_bool() call

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

2017-08-23 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

[Xen-devel] [PATCH v4 47/53] xen: carve out a generic parsing function from _cmdline_parse()

2017-08-23 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

[Xen-devel] [PATCH v4 41/53] xen/arch/x86/apic.c: remove custom_param() error messages

2017-08-23 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:

[Xen-devel] [PATCH v4 02/53] xen/arch/arm/acpi/boot.c: let custom parameter parsing routines return errno

2017-08-23 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-devel] [PATCH v4 03/53] xen/arch/arm/domain_build.c: let custom parameter parsing routines return errno

2017-08-23 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-devel] [PATCH v4 00/53] Support for modifying parameters at runtime

2017-08-23 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

[Xen-devel] [PATCH v4 15/53] xen/arch/x86/mm.c: let custom parameter parsing routines return errno

2017-08-23 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-devel] [PATCH v4 22/53] xen/arch/x86/time.c: let custom parameter parsing routines return errno

2017-08-23 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-devel] [PATCH v4 44/53] xen/arch/x86/io_apic.c: remove custom_param() error messages

2017-08-23 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:

[Xen-devel] [PATCH v4 52/53] xl: add new xl command set-parameters

2017-08-23 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 ---

[Xen-devel] [PATCH v4 25/53] xen/common/domain.c: let custom parameter parsing routines return errno

2017-08-23 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

[Xen-devel] [PATCH v4 04/53] xen/arch/arm/traps.c: let custom parameter parsing routines return errno

2017-08-23 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-devel] [PATCH v4 18/53] xen/arch/x86/oprofile/nmi_int.c: let custom parameter parsing routines return errno

2017-08-23 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-devel] [PATCH v4 12/53] xen/arch/x86/io_apic.c: let custom parameter parsing routines return errno

2017-08-23 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-devel] [PATCH v4 46/53] xen/common/sched_credit2.c: remove custom_param() error messages

2017-08-23 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

[Xen-devel] [PATCH v4 48/53] xen: add basic support for runtime parameter changing

2017-08-23 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

[Xen-devel] [PATCH v4 16/53] xen/arch/x86/nmi.c: let custom parameter parsing routines return errno

2017-08-23 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-devel] [PATCH v4 50/53] libxc: add function to set hypervisor parameters

2017-08-23 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 --- V3: - zero

[Xen-devel] [PATCH v4 06/53] xen/arch/x86/cpu/mcheck/mce.c: let custom parameter parsing routines return errno

2017-08-23 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-devel] [PATCH v4 43/53] xen/arch/x86/hvm/viridian.c: remove custom_param() error messages

2017-08-23 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

[Xen-devel] [PATCH v4 30/53] xen/drivers/acpi/tables.c: let custom parameter parsing routines return errno

2017-08-23 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 Acked-by: Jan Beulich

[Xen-devel] [PATCH v4 28/53] xen/common/memory.c: let custom parameter parsing routines return errno

2017-08-23 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

[Xen-devel] [PATCH v4 29/53] xen/common/sched_credit2.c: let custom parameter parsing routines return errno

2017-08-23 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:

[Xen-devel] [PATCH v4 34/53] xen/drivers/passthrough/iommu.c: let custom parameter parsing routines return errno

2017-08-23 Thread Juergen Gross
Modify the custom parameter parsing routines in: xen/drivers/passthrough/iommu.c to indicate whether the parameter value was parsed successfully. This at once fixes a potential problem with multiple iommu=... parameters: before the change iommu=no iommu=yes would switch iommu off. Cc: Jan

[Xen-devel] [PATCH v4 08/53] xen/arch/x86/dom0_build.c: let custom parameter parsing routines return errno

2017-08-23 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 Reviewed-by: Jan Beulich

[Xen-devel] [PATCH v4 14/53] xen/arch/x86/microcode.c: let custom parameter parsing routines return errno

2017-08-23 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-devel] [PATCH v4 45/53] xen/common/kexec.c: remove custom_param() error messages

2017-08-23 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:

[Xen-devel] [PATCH v4 42/53] xen/arch/x86/cpu/mcheck/mce.c: remove custom_param() error messages

2017-08-23 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:

[Xen-devel] [PATCH v4 20/53] xen/arch/x86/setup.c: let custom parameter parsing routines return errno

2017-08-23 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-devel] [PATCH v4 21/53] xen/arch/x86/shutdown.c: let custom parameter parsing routines return errno

2017-08-23 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 --- V4: - issue a message in

[Xen-devel] [PATCH v4 38/53] xen/drivers/video/vesa.c: let custom parameter parsing routines return errno

2017-08-23 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

[Xen-devel] [PATCH v4 24/53] xen/common/core_parking.c: let custom parameter parsing routines return errno

2017-08-23 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

[Xen-devel] [PATCH v4 01/53] xen: add an optional string end parameter to parse_bool()

2017-08-23 Thread Juergen Gross
Add a parameter to parse_bool() to specify the end of the to be parsed string. Specifying it as NULL will preserve the current behavior to parse until the end of the input string, while passing a non-NULL pointer will specify the first character after the input string. This will allow to parse

  1   2   3   >