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

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

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

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.

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: > > > >

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 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

[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

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

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

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

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

[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

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

[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

[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

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

[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

[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

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 > --- >

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:

[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

[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] [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

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 >> >

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

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

[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

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

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

[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

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;

[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

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

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

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 > > >

[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

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

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

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

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

[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.

[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

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:

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

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é >

[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

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

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 >

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

[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

[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

[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

[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,

[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

[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

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

[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:

[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

[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

[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

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 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

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

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

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

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] [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

[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

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

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

[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

[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

[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

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 26/28] tools/libxl: build DMAR table for a guest with one virtual VTD

2017-11-16 Thread Chao Gao
A new logic is added to init_acpi_config(). The logic initializes some fields introduced for DMAR table. For PVH guest, the DMAR table is built as other tables. But for HVM guest, only the DMAR table is built in toolstack and pass through it to guest via existing mechanism. Signed-off-by: Chao

[Xen-devel] [PATCH v4 18/28] x86/vioapic: Hook interrupt delivery of vIOAPIC

2017-11-16 Thread 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 common VIOMMU abstraction's callback to handle this interrupt request. Device model is responsible for checking the request's validity. Signed-off-by: Chao

[Xen-devel] [PATCH v4 14/28] x86/vvtd: Handle interrupt translation faults

2017-11-16 Thread Chao Gao
Interrupt translation faults are non-recoverable fault. When faults are triggered, it needs to populate fault info to Fault Recording Registers and inject msi interrupt to notify guest IOMMU driver to deal with faults. This patch emulates hardware's handling interrupt translation faults (more

[Xen-devel] [PATCH v4 20/28] xen/pt: when binding guest msi, accept the whole msi message

2017-11-16 Thread Chao Gao
... rather than a filtered one. Previously, some fields (reserved or unalterable) are filtered by QEMU. These fields are useless for the legacy interrupt format (i.e. non remappable format). However, these fields are meaningful to remappable format. Accepting the whole msi message will

[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.

[Xen-devel] [PATCH v4 25/28] tools/libxl: Add an user configurable parameter to control vIOMMU attributes

2017-11-16 Thread Chao Gao
A field, viommu_info, is added to struct libxl_domain_build_info. Several attributes can be specified by guest config file for virtual IOMMU. These attributes are used for DMAR construction and vIOMMU creation. Signed-off-by: Chao Gao Signed-off-by: Lan Tianyu

[Xen-devel] [PATCH v4 21/28] vvtd: update hvm_gmsi_info when binding guest msi with pirq or

2017-11-16 Thread Chao Gao
... handlding guest's invalidation request. To support pirq migration optimization and using VT-d posted interrupt to inject msi from assigned devices, each time guest programs msi information (affinity, vector), the struct hvm_gmsi_info should be updated accordingly. But after introducing vvtd,

[Xen-devel] [PATCH v4 22/28] x86/vmsi: Hook delivering remapping format msi to guest and handling eoi

2017-11-16 Thread Chao Gao
When delivering guest msi, firstly, the format of the msi is determined by the 'check_irq_remmapping' method of viommu. Then, msi of non-remapping format is delivered as normal and remapping format msi is handled by viommu. When handling eoi, the interrupt attributes (vector, affinity) are used to

[Xen-devel] [PATCH v4 23/28] tools/libacpi: Add DMA remapping reporting (DMAR) ACPI table structures

2017-11-16 Thread Chao Gao
Add dmar table structure according Chapter 8 "BIOS Considerations" of VTd spec Rev. 2.4. VTd spec:http://www.intel.com/content/dam/www/public/us/en/documents/product-specifications/vt-directed-io-spec.pdf Signed-off-by: Chao Gao Signed-off-by: Lan Tianyu

[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.

[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:

[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

[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

[Xen-devel] [PATCH v4 13/28] x86/vvtd: add a helper function to decide the interrupt format

2017-11-16 Thread Chao Gao
Different platform may use different method to distinguish remapping format interrupt and normal format interrupt. Intel uses one bit in IOAPIC RTE or MSI address register to indicate the interrupt is remapping format. vvtd should handle all the interrupts when .check_irq_remapping() return true.

[Xen-devel] [PATCH v4 08/28] x86/vvtd: Add MMIO handler for VVTD

2017-11-16 Thread Chao Gao
This patch adds VVTD MMIO handler to deal with MMIO access. Signed-off-by: Chao Gao Signed-off-by: Lan Tianyu --- v4: - only trap the register emulated in vvtd_in_range(). i.e. replace PAGE_SIZE with the VVTD_MAX_OFFSET ---

[Xen-devel] [PATCH v4 15/28] x86/vvtd: Enable Queued Invalidation through GCMD

2017-11-16 Thread Chao Gao
Software writes to QIE field of GCMD to enable or disable queued invalidations. This patch emulates QIE field of GCMD. Signed-off-by: Chao Gao Signed-off-by: Lan Tianyu --- xen/drivers/passthrough/vtd/iommu.h | 3 ++-

[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-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-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

[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-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

[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: -

[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

  1   2   >