[Xen-devel] [seabios test] 116211: regressions - FAIL

2017-11-16 Thread osstest service owner
flight 116211 seabios real [real] http://logs.test-lab.xenproject.org/osstest/logs/116211/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-ws16-amd64 17 guest-stop fail REGR. vs. 115539 Tests which did not suc

Re: [Xen-devel] [PATCH RFC v3 3/6] sched/idle: Add a generic poll before enter real idle path

2017-11-16 Thread Peter Zijlstra
On Wed, Nov 15, 2017 at 11:03:08PM +0100, Thomas Gleixner wrote: > If I understand the problem correctly then he wants to avoid the heavy > lifting in tick_nohz_idle_enter() in the first place, but there is already > an interesting quirk there which makes it exit early. Sure. And there are people

Re: [Xen-devel] [PATCH for-4.10 2/2] xen/arm: p2m: Add more debug in get_page_from_gva

2017-11-16 Thread Julien Grall
On 11/16/2017 01:36 AM, Stefano Stabellini wrote: On Wed, 15 Nov 2017, Julien Grall wrote: The function get_page_from_gva is used by copy_*_guest helpers to translate a guest virtual address to a machine physical address and take reference on the page. There are a couple of errors path that w

Re: [Xen-devel] [PATCH RFC v3 3/6] sched/idle: Add a generic poll before enter real idle path

2017-11-16 Thread Thomas Gleixner
On Thu, 16 Nov 2017, Peter Zijlstra wrote: > On Wed, Nov 15, 2017 at 11:03:08PM +0100, Thomas Gleixner wrote: > > If I understand the problem correctly then he wants to avoid the heavy > > lifting in tick_nohz_idle_enter() in the first place, but there is already > > an interesting quirk there whi

Re: [Xen-devel] [PATCH RFC v3 3/6] sched/idle: Add a generic poll before enter real idle path

2017-11-16 Thread Quan Xu
On 2017-11-16 06:03, Thomas Gleixner wrote: On Wed, 15 Nov 2017, Peter Zijlstra wrote: On Mon, Nov 13, 2017 at 06:06:02PM +0800, Quan Xu wrote: From: Yang Zhang Implement a generic idle poll which resembles the functionality found in arch/. Provide weak arch_cpu_idle_poll function which ca

[Xen-devel] [qemu-mainline baseline-only test] 72452: regressions - FAIL

2017-11-16 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 72452 qemu-mainline real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/72452/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-xsm 23 leak-check/che

Re: [Xen-devel] [PATCH RFC v3 3/6] sched/idle: Add a generic poll before enter real idle path

2017-11-16 Thread Quan Xu
On 2017-11-16 16:45, Peter Zijlstra wrote: On Wed, Nov 15, 2017 at 11:03:08PM +0100, Thomas Gleixner wrote: If I understand the problem correctly then he wants to avoid the heavy lifting in tick_nohz_idle_enter() in the first place, but there is already an interesting quirk there which makes i

Re: [Xen-devel] [BUG] Error applying XSA240 update 5 on 4.8 and 4.9 (patch 3 references CONFIG_PV_LINEAR_PT, 3285e75dea89, x86/mm: Make PV linear pagetables optional)

2017-11-16 Thread Jan Beulich
>>> On 15.11.17 at 23:48, wrote: > Hi, > > I am having trouble applying the patch 3 from XSA240 update 5 for xen > stable 4.8 and 4.9 > xsa240 0003 contains: > > CONFIG_PV_LINEAR_PT > > from: > > x86/mm: Make PV linear pagetables optional > https://xenbits.xen.org/gitweb/?p=xen.git;a=commitdi

[Xen-devel] [libvirt test] 116216: regressions - FAIL

2017-11-16 Thread osstest service owner
flight 116216 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/116216/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 115476 build-armhf-libvirt

Re: [Xen-devel] [PATCH v3] xen-disk: use an IOThread per instance

2017-11-16 Thread Paul Durrant
> -Original Message- > From: Stefano Stabellini [mailto:sstabell...@kernel.org] > Sent: 16 November 2017 01:11 > To: Paul Durrant > Cc: qemu-de...@nongnu.org; xen-de...@lists.xenproject.org; Stefano > Stabellini ; Anthony Perard > ; Kevin Wolf ; Max Reitz > > Subject: RE: [PATCH v3] xen-d

Re: [Xen-devel] [PATCH RFC v3 3/6] sched/idle: Add a generic poll before enter real idle path

2017-11-16 Thread Daniel Lezcano
On 16/11/2017 10:12, Quan Xu wrote: > > > On 2017-11-16 06:03, Thomas Gleixner wrote: >> On Wed, 15 Nov 2017, Peter Zijlstra wrote: >> >>> On Mon, Nov 13, 2017 at 06:06:02PM +0800, Quan Xu wrote: From: Yang Zhang Implement a generic idle poll which resembles the functionality

Re: [Xen-devel] [PATCH RFC v3 3/6] sched/idle: Add a generic poll before enter real idle path

2017-11-16 Thread Thomas Gleixner
On Thu, 16 Nov 2017, Quan Xu wrote: > On 2017-11-16 16:45, Peter Zijlstra wrote: > > I really have considered this factor, and try my best not to interfere with > scheduler/idle code. > > if irq_timings code is ready, I can use it directly. I think irq_timings > is not an easy task, I'd like to he

Re: [Xen-devel] [PATCH RFC v3 3/6] sched/idle: Add a generic poll before enter real idle path

2017-11-16 Thread Thomas Gleixner
On Thu, 16 Nov 2017, Quan Xu wrote: > On 2017-11-16 06:03, Thomas Gleixner wrote: > --- a/drivers/cpuidle/cpuidle.c > +++ b/drivers/cpuidle/cpuidle.c > @@ -210,6 +210,13 @@ int cpuidle_enter_state(struct cpuidle_device *dev, > struct cpuidle_driver *drv, >     target_state = &drv->state

Re: [Xen-devel] [PATCH 2/2 v2] xen: Fix 16550 UART console for HP Moonshot (Aarch64) platform

2017-11-16 Thread George Dunlap
On Nov 15, 2017, at 9:20 PM, Konrad Rzeszutek Wilk wrote: > > On Thu, Nov 09, 2017 at 03:49:24PM +0530, Bhupinder Thakur wrote: >>The console was not working on HP Moonshot (HPE Proliant Aarch64) because >>the UART registers were accessed as 8-bit aligned addresses. However, >>regist

[Xen-devel] [xen-unstable test] 116214: tolerable FAIL

2017-11-16 Thread osstest service owner
flight 116214 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/116214/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-xl-qemuu-win7-amd64 17 guest-stop fail blocked in 116199 test-amd64-amd64-xl-qemut-win7-amd64

Re: [Xen-devel] [RFC] [Draft Design v2] ACPI/IORT Support in Xen.

2017-11-16 Thread Julien Grall
On 16/11/17 07:39, Manish Jaggi wrote: On 11/14/2017 6:53 PM, Julien Grall wrote: 3. IORT for Dom0 - IORT for Dom0 is based on host iort. Few nodes could be removed or modified.   For instance - Host SMMU nodes should not be present as Xen should only touch it. - platform nod

[Xen-devel] Xen 4.10 RC5

2017-11-16 Thread Julien Grall
Hi all, Xen 4.10 RC5 is tagged. You can check that out from xen.git: git://xenbits.xen.org/xen.git 4.10.0-rc5 For your convenience there is also a tarball at: https://downloads.xenproject.org/release/xen/4.10.0-rc5/xen-4.10.0-rc5.tar.gz And the signature is at: https://downloads.xenproject.o

[Xen-devel] [xen-unstable-smoke test] 116218: tolerable all pass - PUSHED

2017-11-16 Thread osstest service owner
flight 116218 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/116218/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 13 migrate-support-checkfail never pass test-armhf-armhf-xl 1

Re: [Xen-devel] [RFC] [Draft Design v2] ACPI/IORT Support in Xen.

2017-11-16 Thread Manish Jaggi
On 11/16/2017 5:07 PM, Julien Grall wrote: On 16/11/17 07:39, Manish Jaggi wrote: On 11/14/2017 6:53 PM, Julien Grall wrote: 3. IORT for Dom0 - IORT for Dom0 is based on host iort. Few nodes could be removed or modified.   For instance - Host SMMU nodes should not be prese

Re: [Xen-devel] [RFC] [Draft Design v2] ACPI/IORT Support in Xen.

2017-11-16 Thread Julien Grall
Hi Manish, On 16/11/17 11:46, Manish Jaggi wrote: On 11/16/2017 5:07 PM, Julien Grall wrote: On 16/11/17 07:39, Manish Jaggi wrote: On 11/14/2017 6:53 PM, Julien Grall wrote: 3. IORT for Dom0 - IORT for Dom0 is based on host iort. Few nodes could be removed or modified.

[Xen-devel] Next Xen Arm Community call - Wednesday 22nd November

2017-11-16 Thread Julien Grall
Hi all, Apologies I was meant to organize the call earlier. I would suggest to have the next community call on Wednesday 22nd November 5pm GMT. Does it sound good? Do you have any specific topic you would like to discuss? Cheers, -- Julien Grall

[Xen-devel] [PATCH] arm64: ITS: fix cacheability adjustment

2017-11-16 Thread Andre Przywara
If the host GICv3 redistributor reports that the pending table cannot use shareable memory, we try to drop the cacheability attributes as well. However we fail horribly in doing computer science 101 bit masking, effectively clearing the whole register instead of just a few bits. Fix this by removin

[Xen-devel] [linux-linus test] 116215: regressions - FAIL

2017-11-16 Thread osstest service owner
flight 116215 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/116215/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-freebsd10-amd64 7 xen-boot fail REGR. vs. 115643 test-amd64-i386-xl-

Re: [Xen-devel] [BUG] Error applying XSA240 update 5 on 4.8 and 4.9 (patch 3 references CONFIG_PV_LINEAR_PT, 3285e75dea89, x86/mm: Make PV linear pagetables optional)

2017-11-16 Thread Steven Haigh
On Thursday, 16 November 2017 8:30:39 PM AEDT Jan Beulich wrote: > >>> On 15.11.17 at 23:48, wrote: > > Hi, > > > > I am having trouble applying the patch 3 from XSA240 update 5 for xen > > stable 4.8 and 4.9 > > xsa240 0003 contains: > > > > CONFIG_PV_LINEAR_PT > > > > from: > > > > x86/mm: M

Re: [Xen-devel] [RFC] [Draft Design v2] ACPI/IORT Support in Xen.

2017-11-16 Thread Manish Jaggi
On 11/16/2017 5:23 PM, Julien Grall wrote: Hi Manish, On 16/11/17 11:46, Manish Jaggi wrote: On 11/16/2017 5:07 PM, Julien Grall wrote: On 16/11/17 07:39, Manish Jaggi wrote: On 11/14/2017 6:53 PM, Julien Grall wrote: 3. IORT for Dom0 - IORT for Dom0 is based on host io

Re: [Xen-devel] Next Xen Arm Community call - Wednesday 22nd November

2017-11-16 Thread Artem Mygaiev
Hi Julien 22nd works good for us From: Julien Grall Sent: Thursday, November 16, 2017 1:54:51 PM To: xen-devel; Edgar E. Iglesias; lars.ku...@citrix.com; scamp...@codeaurora.org; stewart.hildebr...@dornerworks.com; Stefano Stabellini; anastassios.na...@onapp.c

Re: [Xen-devel] [BUG] Error applying XSA240 update 5 on 4.8 and 4.9 (patch 3 references CONFIG_PV_LINEAR_PT, 3285e75dea89, x86/mm: Make PV linear pagetables optional)

2017-11-16 Thread Jan Beulich
>>> On 16.11.17 at 13:30, wrote: > On Thursday, 16 November 2017 8:30:39 PM AEDT Jan Beulich wrote: >> >>> On 15.11.17 at 23:48, wrote: >> > I am having trouble applying the patch 3 from XSA240 update 5 for xen >> > stable 4.8 and 4.9 >> > xsa240 0003 contains: >> > >> > CONFIG_PV_LINEAR_PT >> >

Re: [Xen-devel] [BUG] Error applying XSA240 update 5 on 4.8 and 4.9 (patch 3 references CONFIG_PV_LINEAR_PT, 3285e75dea89, x86/mm: Make PV linear pagetables optional)

2017-11-16 Thread George Dunlap
On 11/16/2017 01:04 PM, Jan Beulich wrote: On 16.11.17 at 13:30, wrote: >> On Thursday, 16 November 2017 8:30:39 PM AEDT Jan Beulich wrote: >> On 15.11.17 at 23:48, wrote: I am having trouble applying the patch 3 from XSA240 update 5 for xen stable 4.8 and 4.9 xsa240 0003

Re: [Xen-devel] [RFC] [Draft Design v2] ACPI/IORT Support in Xen.

2017-11-16 Thread Julien Grall
On 16/11/17 12:39, Manish Jaggi wrote: On 11/16/2017 5:23 PM, Julien Grall wrote: Hi Manish, On 16/11/17 11:46, Manish Jaggi wrote: On 11/16/2017 5:07 PM, Julien Grall wrote: On 16/11/17 07:39, Manish Jaggi wrote: On 11/14/2017 6:53 PM, Julien Grall wrote: 3. IORT for Dom0 -

Re: [Xen-devel] [PATCH 03/12] ARM: VGIC: remove gic_clear_pending_irqs()

2017-11-16 Thread Julien Grall
Hi Stefano, On 16/11/17 01:17, Stefano Stabellini wrote: On Fri, 10 Nov 2017, Andre Przywara wrote: Hi, On 26/10/17 01:14, Stefano Stabellini wrote: On Thu, 19 Oct 2017, Andre Przywara wrote: gic_clear_pending_irqs() was not only misnamed, but also misplaced, as a function solely dealing wit

Re: [Xen-devel] [PATCH for-4.10 v2] x86/hvm: Fix altp2m_vcpu_enable_notify error handling

2017-11-16 Thread Julien Grall
Hi, On 15/11/17 14:16, Andrew Cooper wrote: On 15/11/17 14:10, Jan Beulich wrote: On 15.11.17 at 14:47, wrote: The altp2m_vcpu_enable_notify subop handler might skip calling rcu_unlock_domain() after rcu_lock_current_domain(). Albeit since both rcu functions are no-ops when run on the curren

Re: [Xen-devel] [RFC PATCH 00/31] CPUFreq on ARM

2017-11-16 Thread Oleksandr Tyshchenko
On Wed, Nov 15, 2017 at 4:28 PM, Andre Przywara wrote: > Hi, Hi Andre, Jassi Thank you for your comments! > > On 14/11/17 20:46, Oleksandr Tyshchenko wrote: >> On Tue, Nov 14, 2017 at 12:49 PM, Andre Przywara >> wrote: >>> Hi, >> Hi Andre >> >>> >>> On 13/11/17 19:40, Oleksandr Tyshchenko wrote

Re: [Xen-devel] [PATCH for-4.10] tools: xentoolcore_restrict_all: Do deregistration before close

2017-11-16 Thread Julien Grall
Hi Ian, On 14/11/17 14:57, Ian Jackson wrote: Julien Grall writes ("Re: [PATCH] tools: xentoolcore_restrict_all: Do deregistration before close"): I think this is 4.10 material, xentoolcore was introduced in this release and it would be good to have it right from now. I want to confirm that yo

[Xen-devel] [linux-3.18 baseline-only test] 72454: regressions - FAIL

2017-11-16 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 72454 linux-3.18 real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/72454/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-examine 11 examine-serial/bo

Re: [Xen-devel] [BUG] Error applying XSA240 update 5 on 4.8 and 4.9 (patch 3 references CONFIG_PV_LINEAR_PT, 3285e75dea89, x86/mm: Make PV linear pagetables optional)

2017-11-16 Thread Ian Jackson
George Dunlap writes ("Re: [BUG] Error applying XSA240 update 5 on 4.8 and 4.9 (patch 3 references CONFIG_PV_LINEAR_PT, 3285e75dea89, x86/mm: Make PV linear pagetables optional)"): > These are two different things. Steve's reluctance to backport a > potentially arbitrary number of non-security-r

[Xen-devel] [seabios test] 116217: regressions - FAIL

2017-11-16 Thread osstest service owner
flight 116217 seabios real [real] http://logs.test-lab.xenproject.org/osstest/logs/116217/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-ws16-amd64 17 guest-stop fail REGR. vs. 115539 Tests which are failing

Re: [Xen-devel] [PATCH 06/16] SUPPORT.md: Add scalability features

2017-11-16 Thread Julien Grall
Hi George, On 13/11/17 15:41, George Dunlap wrote: Superpage support and PVHVM. Signed-off-by: George Dunlap --- CC: Ian Jackson CC: Wei Liu CC: Andrew Cooper CC: Jan Beulich CC: Stefano Stabellini CC: Konrad Wilk CC: Tim Deegan CC: Julien Grall --- SUPPORT.md | 21 ++

Re: [Xen-devel] [BUG] Error applying XSA240 update 5 on 4.8 and 4.9 (patch 3 references CONFIG_PV_LINEAR_PT, 3285e75dea89, x86/mm: Make PV linear pagetables optional)

2017-11-16 Thread Steven Haigh
On Friday, 17 November 2017 2:09:09 AM AEDT Ian Jackson wrote: > George Dunlap writes ("Re: [BUG] Error applying XSA240 update 5 on 4.8 and 4.9 (patch 3 references CONFIG_PV_LINEAR_PT, 3285e75dea89, x86/mm: Make PV linear pagetables optional)"): > > These are two different things. Steve's reluct

Re: [Xen-devel] [PATCH 06/16] SUPPORT.md: Add scalability features

2017-11-16 Thread George Dunlap
On 11/16/2017 03:19 PM, Julien Grall wrote: > Hi George, > > On 13/11/17 15:41, George Dunlap wrote: >> Superpage support and PVHVM. >> >> Signed-off-by: George Dunlap >> --- >> CC: Ian Jackson >> CC: Wei Liu >> CC: Andrew Cooper >> CC: Jan Beulich >> CC: Stefano Stabellini >> CC: Konrad Wil

[Xen-devel] [PATCH 0/2] Virtual GIF

2017-11-16 Thread Brian Woods
On AMD family 17h processors, there is a feature called virtual GIF. This allows a nested hypervisor to preform a CLGI or STGI without needing to be intercepted by the host hypervisor. For more information about it please see: AMD64 Architecture Programmer’s Manual Volume 2: System Programming ht

[Xen-devel] [PATCH 1/2] x86/svm: Add virtual GIF feature definition

2017-11-16 Thread Brian Woods
Add support for enabling the virtual GIF feature. Signed-off-by: Brian Woods --- xen/include/asm-x86/hvm/svm/svm.h | 2 ++ xen/include/asm-x86/hvm/svm/vmcb.h | 6 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/xen/include/asm-x86/hvm/svm/svm.h b/xen/include/asm-x86/hvm/s

[Xen-devel] [PATCH 2/2] x86/svm: Add virtual GIF support

2017-11-16 Thread Brian Woods
This patch detects and enables Virtual GIF if available. This allows a nested hypervisor to perform STGIs and CLGIs without having to be intercepted by host hypervisor. Signed-off-by: Brian Woods --- xen/arch/x86/hvm/svm/nestedsvm.c | 7 ++- xen/arch/x86/hvm/svm/svm.c | 1 + xen/arch/

Re: [Xen-devel] [PATCH 09/16] SUPPORT.md: Add ARM-specific virtual hardware

2017-11-16 Thread Julien Grall
Hi George, On 13/11/17 15:41, George Dunlap wrote: Signed-off-by: George Dunlap --- Do we need to add anything more here? And do we need to include ARM ACPI for guests? CC: Ian Jackson CC: Wei Liu CC: Andrew Cooper CC: Jan Beulich CC: Stefano Stabellini CC: Konrad Wilk CC: Tim Deegan C

Re: [Xen-devel] [PATCH 09/16] SUPPORT.md: Add ARM-specific virtual hardware

2017-11-16 Thread Julien Grall
Hi George, On 13/11/17 15:41, George Dunlap wrote: Signed-off-by: George Dunlap --- Do we need to add anything more here? And do we need to include ARM ACPI for guests? I don't have any opinion here. However, if we decide to include, then we should also include Device-Tree. CC: Ian Jack

Re: [Xen-devel] [PATCH 14/16] SUPPORT.md: Add statement on PCI passthrough

2017-11-16 Thread Julien Grall
Hi George, On 13/11/17 15:41, George Dunlap wrote: Signed-off-by: George Dunlap --- CC: Ian Jackson CC: Wei Liu CC: Andrew Cooper CC: Jan Beulich CC: Stefano Stabellini CC: Konrad Wilk CC: Tim Deegan CC: Rich Persaud CC: Marek Marczykowski-Górecki CC: Christopher Clark CC: James McKen

Re: [Xen-devel] [PATCH 2/2] x86/svm: Add virtual GIF support

2017-11-16 Thread Andrew Cooper
On 16/11/17 15:32, Brian Woods wrote: > This patch detects and enables Virtual GIF if available. This allows > a nested hypervisor to perform STGIs and CLGIs without having to be > intercepted by host hypervisor. > > Signed-off-by: Brian Woods > --- > xen/arch/x86/hvm/svm/nestedsvm.c | 7 ++-

Re: [Xen-devel] [PATCH 12/16] SUPPORT.md: Add Security-releated features

2017-11-16 Thread Konrad Rzeszutek Wilk
On Mon, Nov 13, 2017 at 03:41:22PM +, George Dunlap wrote: > With the exception of driver domains, which depend on PCI passthrough, > and will be introduced later. > > Signed-off-by: George Dunlap > --- > CC: Ian Jackson > CC: Wei Liu > CC: Andrew Cooper > CC: Jan Beulich > CC: Stefano St

Re: [Xen-devel] [PATCH v4 4/5] xentrace: enable per-VCPU extratime flag for RTDS

2017-11-16 Thread Meng Xu
Hi all, On Tue, Oct 17, 2017 at 4:10 AM, Dario Faggioli wrote: > > On Wed, 2017-10-11 at 14:02 -0400, Meng Xu wrote: > > Change repl_budget event output for xentrace formats and xenalyze > > > > Signed-off-by: Meng Xu > > > I'd say: > > Reviewed-by: Dario Faggioli > Just a friendly reminder:

Re: [Xen-devel] [RFC PATCH 00/31] CPUFreq on ARM

2017-11-16 Thread Andre Przywara
Hi, On 16/11/17 14:57, Oleksandr Tyshchenko wrote: > On Wed, Nov 15, 2017 at 4:28 PM, Andre Przywara > wrote: >> Hi, > Hi Andre, Jassi > > Thank you for your comments! > >> >> On 14/11/17 20:46, Oleksandr Tyshchenko wrote: >>> On Tue, Nov 14, 2017 at 12:49 PM, Andre Przywara >>> wrote: Hi

[Xen-devel] [PATCH v2 1/2] x86/svm: Add virtual GIF feature definition

2017-11-16 Thread Brian Woods
Add support for enabling the virtual GIF feature. Signed-off-by: Brian Woods --- xen/include/asm-x86/hvm/svm/svm.h | 2 ++ xen/include/asm-x86/hvm/svm/vmcb.h | 6 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/xen/include/asm-x86/hvm/svm/svm.h b/xen/include/asm-x86/hvm/s

[Xen-devel] [PATCH v2 0/2] Virtual GIF

2017-11-16 Thread Brian Woods
On AMD family 17h processors, there is a feature called virtual GIF. This allows a nested hypervisor to preform a CLGI or STGI without needing to be intercepted by the host hypervisor. For more information about it please see: AMD64 Architecture Programmer’s Manual Volume 2: System Programming ht

[Xen-devel] [PATCH v2 2/2] x86/svm: Add virtual GIF support

2017-11-16 Thread Brian Woods
This patch detects and enables Virtual GIF if available. This allows a nested hypervisor to perform STGIs and CLGIs without having to be intercepted by host hypervisor. Signed-off-by: Brian Woods --- xen/arch/x86/hvm/svm/nestedsvm.c | 7 ++- xen/arch/x86/hvm/svm/svm.c | 1 + xen/arc

Re: [Xen-devel] [PATCH v2 1/2] x86/svm: Add virtual GIF feature definition

2017-11-16 Thread Konrad Rzeszutek Wilk
On Thu, Nov 16, 2017 at 11:19:38AM -0600, Brian Woods wrote: > Add support for enabling the virtual GIF feature. > > Signed-off-by: Brian Woods > --- > xen/include/asm-x86/hvm/svm/svm.h | 2 ++ > xen/include/asm-x86/hvm/svm/vmcb.h | 6 -- > 2 files changed, 6 insertions(+), 2 deletions(-)

Re: [Xen-devel] [PATCH v2 1/2] x86/svm: Add virtual GIF feature definition

2017-11-16 Thread Brian Woods
On Thu, Nov 16, 2017 at 12:44:27PM -0500, Konrad Rzeszutek Wilk wrote: > The patch says 'v2', but I don't see anything having changed here. > > Usually one adds comments in here (right after ---) with something > to the effect of: > > v1: New version > v2: Nothing new. > > Or if something did ch

[Xen-devel] [xen-4.9-testing test] 116220: regressions - FAIL

2017-11-16 Thread osstest service owner
flight 116220 xen-4.9-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/116220/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 10 debian-hvm-install fail REGR. vs. 1152

[Xen-devel] [GIT PULL] xen: features and fixes for v4.15-rc1

2017-11-16 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-4.15-rc1-tag xen: features and fixes for v4.15-rc1 Apart from several small fixes it contains the following features: - a series by Joao Martins to add vdso support of the pv clock i

Re: [Xen-devel] [libvirt test] 116216: regressions - FAIL

2017-11-16 Thread Julien Grall
Hi all, On 16 November 2017 at 09:40, osstest service owner wrote: > flight 116216 libvirt real [real] > http://logs.test-lab.xenproject.org/osstest/logs/116216/ > > Regressions :-( > > Tests which did not succeed and are blocking, > including tests which could not be run: > build-i386-libvirt

Re: [Xen-devel] Next Xen Arm Community call - Wednesday 22nd November

2017-11-16 Thread Stefano Stabellini
For me too, thanks! On Thu, 16 Nov 2017, Artem Mygaiev wrote: > Hi Julien > > > 22nd works good for us > > ___ > From: Juli

Re: [Xen-devel] [PATCH for-4.10 2/2] xen/arm: p2m: Add more debug in get_page_from_gva

2017-11-16 Thread Stefano Stabellini
On Thu, 16 Nov 2017, Julien Grall wrote: > On 11/16/2017 01:36 AM, Stefano Stabellini wrote: > > On Wed, 15 Nov 2017, Julien Grall wrote: > > > The function get_page_from_gva is used by copy_*_guest helpers to > > > translate a guest virtual address to a machine physical address and take > > > refe

[Xen-devel] [PATCH for-4.10] x86/hvm: Don't ignore unknown MSRs in the migration stream

2017-11-16 Thread Andrew Cooper
Doing so amounts to silent state corruption, and must be avoided. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Wei Liu CC: Jun Nakajima CC: Kevin Tian CC: Boris Ostrovsky CC: Suravee Suthikulpanit CC: Julien Grall This wants backporting to all stable trees, so should also be consi

Re: [Xen-devel] [PATCH v2 0/2] Virtual GIF

2017-11-16 Thread Boris Ostrovsky
On 11/16/2017 12:19 PM, Brian Woods wrote: > On AMD family 17h processors, there is a feature called virtual GIF. > This allows a nested hypervisor to preform a CLGI or STGI without > needing to be intercepted by the host hypervisor. For more information > about it please see: > > AMD64 Architectu

[Xen-devel] XSA 243 v5 is missing the second patch for xen 4.8

2017-11-16 Thread Chris Brannon
Hello, Looking at https://xenbits.xen.org/xsa/advisory-243.html, I cannot find the second patch for xen 4.8, xsa243-4.8-2.patch. The text of the advisory leads me to believe that it should be there, so it seems to be missing. -- Chris ___ Xen-devel mail

[Xen-devel] [xen-unstable-smoke test] 116232: tolerable all pass - PUSHED

2017-11-16 Thread osstest service owner
flight 116232 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/116232/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 13 migrate-support-checkfail never pass test-armhf-armhf-xl 1

[Xen-devel] [xen-4.8-testing test] 116221: regressions - FAIL

2017-11-16 Thread osstest service owner
flight 116221 xen-4.8-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/116221/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemut-win7-amd64 16 guest-localmigrate/x10 fail REGR. vs. 115205 test-amd6

Re: [Xen-devel] [PATCH 02/13] x86/paravirt: Fix output constraint macro names

2017-11-16 Thread Josh Poimboeuf
On Wed, Oct 25, 2017 at 11:33:43AM +0200, Juergen Gross wrote: > On 04/10/17 17:58, Josh Poimboeuf wrote: > > Some of the paravirt '*_CLOBBERS' macros refer to output constraints > > instead of clobbers, which makes the code extra confusing. Rename the > > output constraint related macros to '*_OU

Re: [Xen-devel] [PATCH 03/13] x86/paravirt: Convert native patch assembly code strings to macros

2017-11-16 Thread Josh Poimboeuf
On Wed, Oct 25, 2017 at 11:46:18AM +0200, Juergen Gross wrote: > On 04/10/17 17:58, Josh Poimboeuf wrote: > > Convert the hard-coded native patch assembly code strings to macros to > > facilitate sharing common code between 32-bit and 64-bit. > > > > These macros will also be used by a future patc

Re: [Xen-devel] [PATCH 2/3] credit2: libxl related changes to add support for runqueue per cpupool.

2017-11-16 Thread Anshul Makkar
[Trimming the Cc-list a bit] On 9/14/17 7:37 AM, Juergen Gross wrote: On 12/09/17 02:45, anshulmakkar wrote: Introduces scheduler specific parameter at libxl level which are passed on to libxc. eg runqueue for credit2 Signed-off-by: Anshul Makkar int libxl_cpupool_destroy(libxl_ctx *ctx,

[Xen-devel] [PATCH for-4.10] tools/libxc: Fix restoration of PV MSRs after migrate

2017-11-16 Thread Andrew Cooper
There are two bugs in process_vcpu_msrs() which clearly demonstrate that I didn't test this bit of Migration v2 very well when writing it... vcpu->msrsz is always expected to be a multiple of xen_domctl_vcpu_msr_t records in a spec-compliant stream, so the modulo yields 0 for the msr_count, rather

Re: [Xen-devel] [PATCH 10/13] x86/alternative: Support indirect call replacement

2017-11-16 Thread Josh Poimboeuf
On Wed, Oct 25, 2017 at 01:25:02PM +0200, Juergen Gross wrote: > On 04/10/17 17:58, Josh Poimboeuf wrote: > > Add alternative patching support for replacing an instruction with an > > indirect call. This will be needed for the paravirt alternatives. > > > > Signed-off-by: Josh Poimboeuf > > ---

Re: [Xen-devel] HiKey 960 (ARM 64) rcu_preempt detected stalls

2017-11-16 Thread Konrad Rzeszutek Wilk
.snip.. > [0.00] Booting Linux on physical CPU 0x0 > > [0.00] Linux version 4.13.0-linaro-hikey960+ (mc@xenpro3) (gcc > version 7.1.1 20170510 (Linaro GCC 7.1-2017.05)) #1 SMP PREEMPT Wed Sep 13 > 10:16:12 EDT 2017 What branch is this? And what git repo ? _

[Xen-devel] [PATCH v3 2/2] x86/svm: Add virtual GIF support

2017-11-16 Thread Brian Woods
This patch detects and enables Virtual GIF if available. This allows a nested hypervisor to perform STGIs and CLGIs without having to be intercepted by host hypervisor. Signed-off-by: Brian Woods --- xen/arch/x86/hvm/svm/nestedsvm.c | 7 ++- xen/arch/x86/hvm/svm/svm.c | 1 + xen/arch/

[Xen-devel] [PATCH v3 1/2] x86/svm: Add virtual GIF feature definition

2017-11-16 Thread Brian Woods
Add support for enabling the virtual GIF feature. Signed-off-by: Brian Woods --- xen/include/asm-x86/hvm/svm/svm.h | 2 ++ xen/include/asm-x86/hvm/svm/vmcb.h | 6 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/xen/include/asm-x86/hvm/svm/svm.h b/xen/include/asm-x86/hvm/s

[Xen-devel] [PATCH v3 0/2] Virtual GIF

2017-11-16 Thread Brian Woods
On AMD family 17h processors, there is a feature called virtual GIF. This allows a nested hypervisor to preform a CLGI or STGI without needing to be intercepted by the host hypervisor. For more information about it please see: AMD64 Architecture Programmer’s Manual Volume 2: System Programming ht

Re: [Xen-devel] [PATCH v2 for-next 4/9] gcov: introduce hooks for the sysctl

2017-11-16 Thread Konrad Rzeszutek Wilk
On Thu, Nov 09, 2017 at 11:13:44AM +, Roger Pau Monne wrote: > So that other implementations of the sysctl can be added. > > Signed-off-by: Roger Pau Monné > --- > Cc: Andrew Cooper > Cc: George Dunlap > Cc: Ian Jackson > Cc: Jan Beulich > Cc: Konrad Rzeszutek Wilk > Cc: Stefano Stabelli

Re: [Xen-devel] [PATCH v2 for-next 6/9] kconfig/gcov: rename to coverage

2017-11-16 Thread Konrad Rzeszutek Wilk
On Thu, Nov 09, 2017 at 11:13:46AM +, Roger Pau Monne wrote: > So it can be used by both gcc and clang. Just add the Kconfig option > and modify the makefiles so the llvm coverage specific code can be > added in a follow up patch. > > Signed-off-by: Roger Pau Monné > --- > Cc: Andrew Cooper

Re: [Xen-devel] [PATCH v2 for-next 5/9] coverage: introduce generic file

2017-11-16 Thread Konrad Rzeszutek Wilk
On Thu, Nov 09, 2017 at 11:13:45AM +, Roger Pau Monne wrote: > It will contain the generic implementation of sysctl_cov_op, which > will be shared between all the coverage implementations. > > Signed-off-by: Roger Pau Monné > --- > Cc: Andrew Cooper > Cc: George Dunlap > Cc: Ian Jackson >

Re: [Xen-devel] [PATCH v2 for-next 3/9] gcov: rename sysctl and functions

2017-11-16 Thread Konrad Rzeszutek Wilk
On Thu, Nov 09, 2017 at 11:13:43AM +, Roger Pau Monne wrote: > Change gcov to cov (for internal interfaces) or coverage (for the > public ones). > > Signed-off-by: Roger Pau Monné > --- > Cc: Ian Jackson > Cc: Wei Liu > Cc: Andrew Cooper > Cc: George Dunlap > Cc: Jan Beulich > Cc: Konrad

Re: [Xen-devel] [PATCH v2 for-next 2/9] gcov: rename folder and header to coverage

2017-11-16 Thread Konrad Rzeszutek Wilk
On Thu, Nov 09, 2017 at 11:13:42AM +, Roger Pau Monne wrote: > Preparatory change before adding llvm profiling support. > No functional change. > > Signed-off-by: Roger Pau Monné > --- > Cc: Andrew Cooper > Cc: George Dunlap > Cc: Ian Jackson > Cc: Jan Beulich > Cc: Konrad Rzeszutek Wilk

[Xen-devel] [PATCH for-4.10] x86/hvm: Don't corrupt the HVM context stream when writing the MSR record

2017-11-16 Thread Andrew Cooper
Ever since it was introduced in c/s bd1f0b45ff, hvm_save_cpu_msrs() has had a bug whereby it corrupts the HVM context stream if some, but fewer than the maximum number of MSRs are written. _hvm_init_entry() creates an hvm_save_descriptor with length for msr_count_max, but in the case that we write

[Xen-devel] [xen-4.7-testing test] 116219: regressions - FAIL

2017-11-16 Thread osstest service owner
flight 116219 xen-4.7-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/116219/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-xtf-amd64-amd64-1 49 xtf/test-hvm64-lbr-tsx-vmentry fail REGR. vs. 115210 build-armhf-xsm

[Xen-devel] [distros-debian-wheezy test] 72456: all pass

2017-11-16 Thread Platform Team regression test user
flight 72456 distros-debian-wheezy real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/72456/ Perfect :-) All tests in this flight passed as required baseline version: flight 72436 jobs: build-amd64 pass build-armh

[Xen-devel] [xen-unstable baseline-only test] 72455: regressions - FAIL

2017-11-16 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 72455 xen-unstable real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/72455/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-examine 11 examine-serial/

[Xen-devel] [xen-4.5-testing test] 116223: regressions - FAIL

2017-11-16 Thread osstest service owner
flight 116223 xen-4.5-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/116223/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-libvirt-qcow2 15 guest-saverestore.2 fail REGR. vs. 115226 test-amd64-amd6

[Xen-devel] [xen-4.6-testing test] 116222: regressions - FAIL

2017-11-16 Thread osstest service owner
flight 116222 xen-4.6-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/116222/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-xtf-amd64-amd64-3 49 xtf/test-hvm64-lbr-tsx-vmentry fail REGR. vs. 115190 test-xtf-amd64-

Re: [Xen-devel] [PATCH 10/13] x86/alternative: Support indirect call replacement

2017-11-16 Thread Juergen Gross
On 16/11/17 22:19, Josh Poimboeuf wrote: > On Wed, Oct 25, 2017 at 01:25:02PM +0200, Juergen Gross wrote: >> On 04/10/17 17:58, Josh Poimboeuf wrote: >>> Add alternative patching support for replacing an instruction with an >>> indirect call. This will be needed for the paravirt alternatives. >>>

[Xen-devel] [PATCH v4 02/28] VIOMMU: Add vIOMMU framework and vIOMMU domctl

2017-11-16 Thread Chao Gao
From: Lan Tianyu This patch is to introduce an abstract layer for arch vIOMMU implementation and vIOMMU domctl to deal with requests from tool stack. Arch vIOMMU code needs to provide callback. vIOMMU domctl supports to create vIOMMU instance in hypervisor and it will be destroyed during destroy

[Xen-devel] [PATCH v4 01/28] Xen/doc: Add Xen virtual IOMMU doc

2017-11-16 Thread Chao Gao
From: Lan Tianyu This patch is to add Xen virtual IOMMU doc to introduce motivation, framework, vIOMMU hypercall and xl configuration. Signed-off-by: Lan Tianyu Signed-off-by: Chao Gao --- docs/misc/viommu.txt | 120 +++ 1 file changed, 120 inse

[Xen-devel] [PATCH v4 05/28] VIOMMU: Introduce callback of checking irq remapping mode

2017-11-16 Thread Chao Gao
From: Lan Tianyu This patch is to add callback for vIOAPIC and vMSI to check whether interrupt remapping is enabled. Signed-off-by: Lan Tianyu Signed-off-by: Chao Gao --- xen/common/viommu.c | 15 +++ xen/include/xen/viommu.h | 4 2 files changed, 19 insertions(+) diff

[Xen-devel] [PATCH v4 04/28] VIOMMU: Add get irq info callback to convert irq remapping request

2017-11-16 Thread Chao Gao
From: Lan Tianyu This patch is to add get_irq_info callback for platform implementation to convert irq remapping request to irq info (E,G vector, dest, dest_mode and so on). Signed-off-by: Lan Tianyu Signed-off-by: Chao Gao --- xen/common/viommu.c | 16 xen/include/a

[Xen-devel] [PATCH v4 00/28] add vIOMMU support with irq remapping function of virtual VT-d

2017-11-16 Thread Chao Gao
This patchset is to introduce vIOMMU framework and add virtual VTD's interrupt remapping support according "Xen virtual IOMMU high level design doc V3"(https://lists.xenproject.org/archives/html/xen-devel/ 2016-11/msg01391.html). - vIOMMU framework New framework provides viommu_ops and help functi

[Xen-devel] [PATCH v4 03/28] VIOMMU: Add irq request callback to deal with irq remapping

2017-11-16 Thread Chao Gao
From: Lan Tianyu This patch is to add irq request callback for platform implementation to deal with irq remapping request. Signed-off-by: Lan Tianyu Signed-off-by: Chao Gao --- xen/common/viommu.c | 15 xen/include/asm-x86/viommu.h | 54 ++

[Xen-devel] [PATCH v4 09/28] x86/vvtd: Set Interrupt Remapping Table Pointer through GCMD

2017-11-16 Thread Chao Gao
Software sets SIRTP field of GCMD to set/update the interrupt remapping table pointer used by hardware. The interrupt remapping table pointer is specified through the Interrupt Remapping Table Address (IRTA_REG) register. This patch emulates this operation and adds some new fields in VVTD to track

[Xen-devel] [PATCH v4 07/28] x86/hvm: Introduce a emulated VTD for HVM

2017-11-16 Thread Chao Gao
This patch adds create/destroy function for the emulated VTD and adapts it to the common VIOMMU abstraction. As the Makefile is changed here, put all files in alphabetic order by this chance. Signed-off-by: Chao Gao Signed-off-by: Lan Tianyu --- v4: - use REGISTER_VIOMMU - shrink the size of h

[Xen-devel] [PATCH v4 11/28] x86/vvtd: Process interrupt remapping request

2017-11-16 Thread Chao Gao
When a remapping interrupt request arrives, remapping hardware computes the interrupt_index per the algorithm described in VTD spec "Interrupt Remapping Table", interprets the IRTE and generates a remapped interrupt request. This patch introduces viommu_handle_irq_request() to emulate the process

[Xen-devel] [PATCH v4 06/28] vtd: clean-up and preparation for vvtd

2017-11-16 Thread Chao Gao
This patch contains following changes: - align register definitions - use MASK_EXTR to define some macros about extended capabilies rather than open-coding the masks - define fields of FECTL and FESTS as uint32_t rather than u64 since FECTL and FESTS are 32 bit registers. No functional changes. S

[Xen-devel] [PATCH v4 10/28] x86/vvtd: Enable Interrupt Remapping through GCMD

2017-11-16 Thread Chao Gao
Software writes this field to enable/disable interrupt reampping. This patch emulate IRES field of GCMD. Currently, Guest's whole IRT are mapped to Xen permanently for the latency of delivering interrupt. And the old mapping is undone if present when trying to set up a new one. Signed-off-by: Chao

[Xen-devel] [PATCH v4 19/28] x86/vioapic: extend vioapic_get_vector() to support remapping format RTE

2017-11-16 Thread Chao Gao
When IOAPIC RTE is in remapping format, it doesn't contain the vector of interrupt. For this case, the RTE contains an index of interrupt remapping table where the vector of interrupt is stored. This patchs gets the vector through a vIOMMU interface. Signed-off-by: Chao Gao Signed-off-by: Lan Tia

[Xen-devel] [PATCH v4 16/28] x86/vvtd: Add queued invalidation (QI) support

2017-11-16 Thread Chao Gao
Queued Invalidation Interface is an expanded invalidation interface with extended capabilities. Hardware implementations report support for queued invalidation interface through the Extended Capability Register. The queued invalidation interface uses an Invalidation Queue (IQ), which is a circular

[Xen-devel] [PATCH v4 17/28] x86/vvtd: save and restore emulated VT-d

2017-11-16 Thread Chao Gao
Provide a save-restore pair to save/restore registers and non-register status. Signed-off-by: Chao Gao Signed-off-by: Lan Tianyu --- v3: - use one entry to save both vvtd registers and other intermediate state --- xen/drivers/passthrough/vtd/vvtd.c | 57 +++---

[Xen-devel] [PATCH v4 12/28] x86/vvtd: decode interrupt attribute from IRTE

2017-11-16 Thread Chao Gao
Without interrupt remapping, interrupt attributes can be extracted from msi message or IOAPIC RTE. However, with interrupt remapping enabled, the attributes are enclosed in the associated IRTE. This callback is for cases in which the caller wants to acquire interrupt attributes, for example: 1. vio

  1   2   >