[Xen-devel] [linux-4.9 test] 141084: regressions - FAIL

2019-09-06 Thread osstest service owner
flight 141084 linux-4.9 real [real] http://logs.test-lab.xenproject.org/osstest/logs/141084/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qcow2 19 guest-start/debian.repeat fail REGR. vs. 140844 test-armhf-armhf-xl-a

[Xen-devel] [xen-unstable test] 141083: regressions - FAIL

2019-09-06 Thread osstest service owner
flight 141083 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/141083/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-pvshim 18 guest-localmigrate/x10 fail REGR. vs. 139876 test-amd64-amd64-x

[Xen-devel] [linux-4.19 test] 141079: regressions - FAIL

2019-09-06 Thread osstest service owner
flight 141079 linux-4.19 real [real] http://logs.test-lab.xenproject.org/osstest/logs/141079/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 129313 build-armhf-pvops

Re: [Xen-devel] [PATCH] xen/pci: try to reserve MCFG areas earlier

2019-09-06 Thread Igor Druzhinin
On 06/09/2019 23:30, Boris Ostrovsky wrote: > On 9/3/19 8:20 PM, Igor Druzhinin wrote: >> If MCFG area is not reserved in E820, Xen by default will defer its usage >> until Dom0 registers it explicitly after ACPI parser recognizes it as >> a reserved resource in DSDT. Having it reserved in E820 i

Re: [Xen-devel] [PATCH v2 00/12] livepatch: new features and fixes

2019-09-06 Thread Julien Grall
Hi Konrad, On 9/5/19 8:13 PM, Konrad Rzeszutek Wilk wrote: On Tue, Aug 27, 2019 at 08:46:12AM +, Pawel Wieczorkiewicz wrote: This series introduces new features to the livepatch functionality as briefly discussed during Xen Developer Summit 2019: [a] and [b]. It also provides a few fixes an

Re: [Xen-devel] [PATCH v2 00/12] livepatch: new features and fixes

2019-09-06 Thread Julien Grall
Hi, Thank you for the new version. However, I nearly missed the v2 as this is a sub-thread of v1. May I ask you to send a new version as a new thread instead? Cheers, On 8/27/19 9:46 AM, Pawel Wieczorkiewicz wrote: This series introduces new features to the livepatch functionality as briefl

Re: [Xen-devel] [PATCH] xen/pci: try to reserve MCFG areas earlier

2019-09-06 Thread Boris Ostrovsky
On 9/3/19 8:20 PM, Igor Druzhinin wrote: > If MCFG area is not reserved in E820, Xen by default will defer its usage > until Dom0 registers it explicitly after ACPI parser recognizes it as > a reserved resource in DSDT. Having it reserved in E820 is not > mandatory according to "PCI Firmware Specif

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

2019-09-06 Thread osstest service owner
flight 141076 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/141076/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-win10-i386 broken test-amd64-i386-xl-qemuu-win10-i386

[Xen-devel] [freebsd-master test] 141086: regressions - trouble: blocked/fail

2019-09-06 Thread osstest service owner
flight 141086 freebsd-master real [real] http://logs.test-lab.xenproject.org/osstest/logs/141086/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-freebsd 7 freebsd-buildfail REGR. vs. 141004 Tests which did

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

2019-09-06 Thread osstest service owner
flight 141097 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/141097/ 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] [libvirt test] 141081: regressions - FAIL

2019-09-06 Thread osstest service owner
flight 141081 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/141081/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 141033 test-armhf-armhf-libvir

Re: [Xen-devel] Running xenstored in Linux stubdom

2019-09-06 Thread Daniel Smith
On Wed, Sep 4, 2019 at 1:26 PM Daniel Smith wrote: > > On Wed, Sep 4, 2019 at 12:12 PM Juergen Gross wrote: > > > > The stubdom gets an event channel to use for dom0 xenbstore connection > > via commandline parameter ("--event "). This needs to be used > > in the stubdom for setting up the commun

Re: [Xen-devel] [PATCH] ARM: xen: unexport HYPERVISOR_platform_op function

2019-09-06 Thread Andrew Cooper
On 06/09/2019 17:00, Arnd Bergmann wrote: > On Fri, Sep 6, 2019 at 5:55 PM Andrew Cooper > wrote: >> On 06/09/2019 16:39, Arnd Bergmann wrote: >>> HYPERVISOR_platform_op() is an inline function and should not >>> be exported. Since commit 15bfc2348d54 ("modpost: check for >>> static EXPORT_SYMBOL

Re: [Xen-devel] [ANNOUNCE] Xen 4.13 Development Update

2019-09-06 Thread Konrad Rzeszutek Wilk
> == Hypervisor == > > * Per-cpu tasklet > - XEN-28 > - Konrad Rzeszutek Wilk I haven't gotten to them since the posting three years ago? I don't think I will get to them anytime soom too :-( Would love if someone took them over.. P.S: http://xenbits.xen.org/gitweb/?p=people/konradwilk

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

2019-09-06 Thread osstest service owner
flight 141092 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/141092/ 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] [ANNOUNCE] Xen 4.13 Development Update

2019-09-06 Thread Andrew Cooper
On 06/09/2019 08:40, Juergen Gross wrote: > This email only tracks big items for xen.git tree. Please reply for items you > would like to see in 4.13 so that people have an idea what is going on and > prioritise accordingly. > > You're welcome to provide description and use cases of the feature you

Re: [Xen-devel] [PATCH] ARM: xen: unexport HYPERVISOR_platform_op function

2019-09-06 Thread Arnd Bergmann
On Fri, Sep 6, 2019 at 5:55 PM Andrew Cooper wrote: > > On 06/09/2019 16:39, Arnd Bergmann wrote: > > HYPERVISOR_platform_op() is an inline function and should not > > be exported. Since commit 15bfc2348d54 ("modpost: check for > > static EXPORT_SYMBOL* functions"), this causes a warning: > > > >

Re: [Xen-devel] [PATCH] ARM: xen: unexport HYPERVISOR_platform_op function

2019-09-06 Thread Jan Beulich
On 06.09.2019 17:55, Andrew Cooper wrote: > On 06/09/2019 16:39, Arnd Bergmann wrote: >> HYPERVISOR_platform_op() is an inline function and should not >> be exported. Since commit 15bfc2348d54 ("modpost: check for >> static EXPORT_SYMBOL* functions"), this causes a warning: >> >> WARNING: "HYPERVIS

Re: [Xen-devel] [PATCH] ARM: xen: unexport HYPERVISOR_platform_op function

2019-09-06 Thread Andrew Cooper
On 06/09/2019 16:39, Arnd Bergmann wrote: > HYPERVISOR_platform_op() is an inline function and should not > be exported. Since commit 15bfc2348d54 ("modpost: check for > static EXPORT_SYMBOL* functions"), this causes a warning: > > WARNING: "HYPERVISOR_platform_op" [vmlinux] is a static EXPORT_SYMB

[Xen-devel] [linux-4.14 test] 141071: regressions - FAIL

2019-09-06 Thread osstest service owner
flight 141071 linux-4.14 real [real] http://logs.test-lab.xenproject.org/osstest/logs/141071/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-pvshim 20 guest-start/debian.repeat fail in 140979 REGR. vs. 139910 build-amd6

Re: [Xen-devel] [PATCH v2] x86/cpuid: Extend the cpuid= option to support all named features

2019-09-06 Thread Jan Beulich
On 06.09.2019 17:27, Andrew Cooper wrote: > On 06/09/2019 16:18, Jan Beulich wrote: >> On 05.09.2019 21:49, Andrew Cooper wrote: >>> --- a/xen/arch/x86/cpuid.c >>> +++ b/xen/arch/x86/cpuid.c >>> @@ -21,45 +21,62 @@ static const uint32_t deep_features[] = >>> INIT_DEEP_FEATURES; >>> >>> static i

Re: [Xen-devel] [PATCH v8] x86/emulate: Send vm_event from emulate

2019-09-06 Thread Jan Beulich
On 03.09.2019 16:01, Alexandru Stefan ISAILA wrote: > A/D bit writes (on page walks) can be considered benign by an introspection > agent, so receiving vm_events for them is a pessimization. We try here to > optimize by filtering these events out. > Currently, we are fully emulating the instruction

[Xen-devel] [PATCH] ARM: xen: unexport HYPERVISOR_platform_op function

2019-09-06 Thread Arnd Bergmann
HYPERVISOR_platform_op() is an inline function and should not be exported. Since commit 15bfc2348d54 ("modpost: check for static EXPORT_SYMBOL* functions"), this causes a warning: WARNING: "HYPERVISOR_platform_op" [vmlinux] is a static EXPORT_SYMBOL_GPL Remove the extraneous export. Fixes: 15bfc

Re: [Xen-devel] [PATCH] Xen Project Code of Conduct

2019-09-06 Thread Lars Kurth
On 06/09/2019, 16:10, "Roger Pau Monne" wrote: On Wed, Sep 04, 2019 at 07:12:18PM +0100, Lars Kurth wrote: [...] > +## Conduct Team members > +Conduct Team members are project leadership team members from any > +sub-project. The current list of Conduct Team members is: >

Re: [Xen-devel] [PATCH v2] x86/cpuid: Extend the cpuid= option to support all named features

2019-09-06 Thread Andrew Cooper
On 06/09/2019 16:18, Jan Beulich wrote: > On 05.09.2019 21:49, Andrew Cooper wrote: >> --- a/xen/arch/x86/cpuid.c >> +++ b/xen/arch/x86/cpuid.c >> @@ -21,45 +21,62 @@ static const uint32_t deep_features[] = >> INIT_DEEP_FEATURES; >> >> static int __init parse_xen_cpuid(const char *s) >> { >> +

Re: [Xen-devel] [PATCH v2] x86/cpuid: Extend the cpuid= option to support all named features

2019-09-06 Thread Jan Beulich
On 05.09.2019 21:49, Andrew Cooper wrote: > --- a/xen/arch/x86/cpuid.c > +++ b/xen/arch/x86/cpuid.c > @@ -21,45 +21,62 @@ static const uint32_t deep_features[] = > INIT_DEEP_FEATURES; > > static int __init parse_xen_cpuid(const char *s) > { > +static const struct feature { > +const

Re: [Xen-devel] Criteria for checking in core scheduling series

2019-09-06 Thread Roger Pau Monné
On Fri, Sep 06, 2019 at 12:46:03PM +, Lars Kurth wrote: > > > On 06/09/2019, 12:09, "George Dunlap" wrote: > > There was a discussion on the community call about the core scheduling > series being developed by Juergen Gross [1]. The conclusion can be > summarized as follows: >

Re: [Xen-devel] [PATCH] Xen Project Code of Conduct

2019-09-06 Thread Roger Pau Monné
On Wed, Sep 04, 2019 at 07:12:18PM +0100, Lars Kurth wrote: [...] > +## Conduct Team members > +Conduct Team members are project leadership team members from any > +sub-project. The current list of Conduct Team members is: > +* Lars Kurth > +* George Dunlap > +* Ian Jackson > + > +Conduct Team m

Re: [Xen-devel] [PATCH 0/2] Code of Conduct (based on Contributor Covenant v1.4)

2019-09-06 Thread Roger Pau Monné
On Wed, Sep 04, 2019 at 07:12:16PM +0100, Lars Kurth wrote: > This series proposes a concrete version of the Xen Project > CoC based on v1.4 of the Contributor Covenant. See [1] > > It also reflects the discussion in [2] and some private > discussions on IRC to identify initial members of the Xen

Re: [Xen-devel] [PATCH 09/11] swiotlb-xen: simplify cache maintainance

2019-09-06 Thread Boris Ostrovsky
On 9/6/19 10:43 AM, Konrad Rzeszutek Wilk wrote: > On Fri, Sep 06, 2019 at 10:19:01AM -0400, Boris Ostrovsky wrote: >> On 9/6/19 10:01 AM, Christoph Hellwig wrote: >>> On Fri, Sep 06, 2019 at 09:52:12AM -0400, Boris Ostrovsky wrote: We need nop definitions of these two for x86. Every

Re: [Xen-devel] [PATCH 09/11] swiotlb-xen: simplify cache maintainance

2019-09-06 Thread Konrad Rzeszutek Wilk
On Fri, Sep 06, 2019 at 10:19:01AM -0400, Boris Ostrovsky wrote: > On 9/6/19 10:01 AM, Christoph Hellwig wrote: > > On Fri, Sep 06, 2019 at 09:52:12AM -0400, Boris Ostrovsky wrote: > >> We need nop definitions of these two for x86. > >> > >> Everything builds now but that's probably because the cal

Re: [Xen-devel] [PATCH v3 2/2] sysctl/libxl: choose a sane default for HAP

2019-09-06 Thread Andrew Cooper
On 06/09/2019 15:30, Roger Pau Monne wrote: > Current libxl code will always enable Hardware Assisted Paging (HAP), > expecting that the hypervisor will fallback to shadow if HAP is not > available. With the changes to the domain builder that's not the case "domain builder" is usually libxenguest.

Re: [Xen-devel] [PATCH v3] IOMMU/x86: make page type checks consistent when mapping pages

2019-09-06 Thread Roger Pau Monné
On Fri, Sep 06, 2019 at 04:19:50PM +0200, Jan Beulich wrote: > On 06.09.2019 16:08, Roger Pau Monné wrote: > > On Fri, Sep 06, 2019 at 02:08:09PM +0200, Jan Beulich wrote: > >> On 06.09.2019 13:45, Roger Pau Monné wrote: > >>> On Fri, Sep 06, 2019 at 12:52:11PM +0200, Jan Beulich wrote: > On

[Xen-devel] [PATCH v3 2/2] sysctl/libxl: choose a sane default for HAP

2019-09-06 Thread Roger Pau Monne
Current libxl code will always enable Hardware Assisted Paging (HAP), expecting that the hypervisor will fallback to shadow if HAP is not available. With the changes to the domain builder that's not the case any longer, and the hypervisor will raise an error if HAP is not available instead of silen

[Xen-devel] [PATCH v3 0/2] libxl: choose a sane default for HAP

2019-09-06 Thread Roger Pau Monne
Hello, First patch is a preparatory change to also make use of the physcaps on ARM, second patch introduces a new physcap (HAP) in order for the toolstack to decide whether to use HAP if the user hasn't made a selection. Thanks, Roger. Roger Pau Monne (2): sysctl: report existing physcaps on A

[Xen-devel] [PATCH v3 1/2] sysctl: report existing physcaps on ARM

2019-09-06 Thread Roger Pau Monne
Current physcaps in XEN_SYSCTL_physinfo are only used by x86, albeit the capabilities themselves are not x86 specific. This patch adds support for also reporting the current capabilities on ARM hardware. Note that on ARM PHYSCAP_hvm is always reported, and setting PHYSCAP_directio has been moved t

Re: [Xen-devel] [PATCH v3] IOMMU/x86: make page type checks consistent when mapping pages

2019-09-06 Thread Jan Beulich
On 06.09.2019 16:08, Roger Pau Monné wrote: > On Fri, Sep 06, 2019 at 02:08:09PM +0200, Jan Beulich wrote: >> On 06.09.2019 13:45, Roger Pau Monné wrote: >>> On Fri, Sep 06, 2019 at 12:52:11PM +0200, Jan Beulich wrote: On 06.09.2019 11:37, Roger Pau Monné wrote: > On Wed, Jul 03, 2019 a

Re: [Xen-devel] [PATCH 09/11] swiotlb-xen: simplify cache maintainance

2019-09-06 Thread Boris Ostrovsky
On 9/6/19 10:01 AM, Christoph Hellwig wrote: > On Fri, Sep 06, 2019 at 09:52:12AM -0400, Boris Ostrovsky wrote: >> We need nop definitions of these two for x86. >> >> Everything builds now but that's probably because the calls are under >> 'if (!dev_is_dma_coherent(dev))' which is always false so c

Re: [Xen-devel] [PATCH v2 2/2] sysctl/libxl: choose a sane default for HAP

2019-09-06 Thread Roger Pau Monné
On Fri, Sep 06, 2019 at 03:54:10PM +0200, Paul Durrant wrote: > > -Original Message- > > From: Xen-devel On Behalf Of Paul > > Durrant > > Sent: 05 September 2019 14:52 > > To: Roger Pau Monne ; xen-devel@lists.xenproject.org > > Cc: Stefano Stabellini ; Wei Liu ; > > Konrad Rzeszutek Wi

Re: [Xen-devel] [PATCH v3] IOMMU/x86: make page type checks consistent when mapping pages

2019-09-06 Thread Roger Pau Monné
On Fri, Sep 06, 2019 at 02:08:09PM +0200, Jan Beulich wrote: > On 06.09.2019 13:45, Roger Pau Monné wrote: > > On Fri, Sep 06, 2019 at 12:52:11PM +0200, Jan Beulich wrote: > >> On 06.09.2019 11:37, Roger Pau Monné wrote: > >>> On Wed, Jul 03, 2019 at 12:18:45PM +, Jan Beulich wrote: > --

Re: [Xen-devel] [PATCH 09/11] swiotlb-xen: simplify cache maintainance

2019-09-06 Thread Andrew Cooper
On 06/09/2019 15:01, Christoph Hellwig wrote: > On Fri, Sep 06, 2019 at 09:52:12AM -0400, Boris Ostrovsky wrote: >> We need nop definitions of these two for x86. >> >> Everything builds now but that's probably because the calls are under >> 'if (!dev_is_dma_coherent(dev))' which is always false so

Re: [Xen-devel] [PATCH 3/3] x86/apic: do not initialize LDR and DFR for bigsmp

2019-09-06 Thread Andrew Cooper
On 06/09/2019 15:01, Jan Beulich wrote: > Legacy apic init uses bigsmp for smp systems with 8 and more CPUs. The > bigsmp APIC implementation uses physical destination mode, but it > nevertheless initializes LDR and DFR. The LDR even ends up incorrectly with > multiple bit being set. > > This does

Re: [Xen-devel] [PATCH 2/3] x86/apic: include the LDR when clearing out APIC registers

2019-09-06 Thread Andrew Cooper
On 06/09/2019 15:01, Jan Beulich wrote: > Although APIC initialization will typically clear out the LDR before > setting it, the APIC cleanup code should reset the LDR. > > This was discovered with a 32-bit KVM guest jumping into a kdump > kernel. The stale bits in the LDR triggered a bug in the KV

[Xen-devel] [PATCH 3/3] x86/apic: do not initialize LDR and DFR for bigsmp

2019-09-06 Thread Jan Beulich
Legacy apic init uses bigsmp for smp systems with 8 and more CPUs. The bigsmp APIC implementation uses physical destination mode, but it nevertheless initializes LDR and DFR. The LDR even ends up incorrectly with multiple bit being set. This does not cause a functional problem because LDR and DFR

Re: [Xen-devel] [PATCH 09/11] swiotlb-xen: simplify cache maintainance

2019-09-06 Thread Christoph Hellwig
On Fri, Sep 06, 2019 at 09:52:12AM -0400, Boris Ostrovsky wrote: > We need nop definitions of these two for x86. > > Everything builds now but that's probably because the calls are under > 'if (!dev_is_dma_coherent(dev))' which is always false so compiler > optimized is out. I don't think we shoul

Re: [Xen-devel] [PATCH 1/3] x86: drop CONFIG_X86_MCE_THERMAL

2019-09-06 Thread Andrew Cooper
On 06/09/2019 15:00, Jan Beulich wrote: > There's no point having this if it's not exposed through Kconfig. > > Take the liberty and also drop an unnecessary "return" in context. > > Signed-off-by: Jan Beulich Acked-by: Andrew Cooper ___ Xen-devel mai

[Xen-devel] [PATCH 2/3] x86/apic: include the LDR when clearing out APIC registers

2019-09-06 Thread Jan Beulich
Although APIC initialization will typically clear out the LDR before setting it, the APIC cleanup code should reset the LDR. This was discovered with a 32-bit KVM guest jumping into a kdump kernel. The stale bits in the LDR triggered a bug in the KVM APIC implementation which caused the destinatio

[Xen-devel] [PATCH 1/3] x86: drop CONFIG_X86_MCE_THERMAL

2019-09-06 Thread Jan Beulich
There's no point having this if it's not exposed through Kconfig. Take the liberty and also drop an unnecessary "return" in context. Signed-off-by: Jan Beulich --- a/xen/arch/x86/apic.c +++ b/xen/arch/x86/apic.c @@ -189,19 +189,15 @@ void clear_local_APIC(void) v = apic_read(APIC_LVTPC

[Xen-devel] [PATCH 0/3] x86: (largely) LAPIC related cleanup

2019-09-06 Thread Jan Beulich
The latter two patches are derived from Linux ones, which caught my attention. The first one is simply some extra code reduction potential I noticed while evaluating whether those Linux changes are applicable to our tree. 1: x86: drop CONFIG_X86_MCE_THERMAL 2: x86/apic: include the LDR when cleari

Re: [Xen-devel] [PATCH] x86/mwait-idle: add support for Jacobsville

2019-09-06 Thread Andrew Cooper
On 06/09/2019 14:54, Jan Beulich wrote: > From: Zhang Rui > > Jacobsville uses the same C-states as Denverton. > > Signed-off-by: Zhang Rui > [Linux commit 04b1d5d098491244f506c4265cc95b87210eef2f] > Signed-off-by: Jan Beulich Acked-by: Andrew Cooper __

Re: [Xen-devel] [PATCH v2 2/2] sysctl/libxl: choose a sane default for HAP

2019-09-06 Thread Paul Durrant
> -Original Message- > From: Xen-devel On Behalf Of Paul > Durrant > Sent: 05 September 2019 14:52 > To: Roger Pau Monne ; xen-devel@lists.xenproject.org > Cc: Stefano Stabellini ; Wei Liu ; > Konrad Rzeszutek Wilk > ; Andrew Cooper ; Tim > (Xen.org) ; > George Dunlap ; Julien Grall >

[Xen-devel] [PATCH] x86/mwait-idle: add support for Jacobsville

2019-09-06 Thread Jan Beulich
From: Zhang Rui Jacobsville uses the same C-states as Denverton. Signed-off-by: Zhang Rui [Linux commit 04b1d5d098491244f506c4265cc95b87210eef2f] Signed-off-by: Jan Beulich --- a/xen/arch/x86/cpu/mwait-idle.c +++ b/xen/arch/x86/cpu/mwait-idle.c @@ -962,6 +962,7 @@ static const struct x86_cpu_

Re: [Xen-devel] [PATCH 09/11] swiotlb-xen: simplify cache maintainance

2019-09-06 Thread Boris Ostrovsky
On 9/5/19 7:34 AM, Christoph Hellwig wrote: > diff --git a/include/xen/swiotlb-xen.h b/include/xen/swiotlb-xen.h > index 5e4b83f83dbc..d71380f6ed0b 100644 > --- a/include/xen/swiotlb-xen.h > +++ b/include/xen/swiotlb-xen.h > @@ -4,6 +4,11 @@ > > #include > > +void xen_dma_sync_for_cpu(struct

Re: [Xen-devel] [PATCH v2] xstate: make use_xsave non-init

2019-09-06 Thread Roger Pau Monné
On Fri, Sep 06, 2019 at 03:33:50PM +0200, Jan Beulich wrote: > On 05.09.2019 18:04, Roger Pau Monne wrote: > > --- a/xen/arch/x86/xstate.c > > +++ b/xen/arch/x86/xstate.c > > @@ -577,7 +577,11 @@ unsigned int xstate_ctxt_size(u64 xcr0) > > /* Collect the information of processor's extended state *

Re: [Xen-devel] [PATCH v2] swiotlb-xen: Convert to use macro

2019-09-06 Thread Souptick Joarder
On Fri, Sep 6, 2019 at 7:02 PM Boris Ostrovsky wrote: > > On 9/6/19 8:27 AM, Souptick Joarder wrote: > > On Mon, Sep 2, 2019 at 2:04 PM Souptick Joarder > > wrote: > >> Rather than using static int max_dma_bits, this > >> can be coverted to use as macro. > >> > >> Signed-off-by: Souptick Joarder

Re: [Xen-devel] [PATCH v2] xstate: make use_xsave non-init

2019-09-06 Thread Jan Beulich
On 05.09.2019 18:04, Roger Pau Monne wrote: > --- a/xen/arch/x86/xstate.c > +++ b/xen/arch/x86/xstate.c > @@ -577,7 +577,11 @@ unsigned int xstate_ctxt_size(u64 xcr0) > /* Collect the information of processor's extended state */ > void xstate_init(struct cpuinfo_x86 *c) > { > -static bool __

Re: [Xen-devel] [PATCH v2] swiotlb-xen: Convert to use macro

2019-09-06 Thread Boris Ostrovsky
On 9/6/19 8:27 AM, Souptick Joarder wrote: > On Mon, Sep 2, 2019 at 2:04 PM Souptick Joarder wrote: >> Rather than using static int max_dma_bits, this >> can be coverted to use as macro. >> >> Signed-off-by: Souptick Joarder >> Reviewed-by: Juergen Gross > If it is still not late, can we get thi

Re: [Xen-devel] [PATCH] x86/boot: Don't explicitly map the VGA region as UC-

2019-09-06 Thread Jan Beulich
On 05.09.2019 21:04, Andrew Cooper wrote: > All 64-bit capable processors use PAT, and with PAT, it is explicitly > permitted to have mappings with a cacheability different to MTRRs. > > On a native system with a real legacy VGA region, MTRRs will cause the region > to be UC-. Minor correction: M

[Xen-devel] [ovmf test] 141080: regressions - FAIL

2019-09-06 Thread osstest service owner
flight 141080 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/141080/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 6 xen-buildfail REGR. vs. 141054 Tests which did not succee

Re: [Xen-devel] [xen-unstable-smoke test] 141063: regressions - FAIL

2019-09-06 Thread Andrew Cooper
On 06/09/2019 14:12, Jan Beulich wrote: > On 06.09.2019 14:28, Andrew Cooper wrote: >> On 06/09/2019 08:29, Jan Beulich wrote: >>> On 06.09.2019 00:04, osstest service owner wrote: flight 141063 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/141063/ >

[Xen-devel] [PATCH -tip v4 4/4] x86: kprobes: Prohibit probing on instruction which has emulate prefix

2019-09-06 Thread Masami Hiramatsu
Prohibit probing on instruction which has XEN_EMULATE_PREFIX or KVM's emulate prefix. Since that prefix is a marker for Xen and KVM, if we modify the marker by kprobe's int3, that doesn't work as expected. Signed-off-by: Masami Hiramatsu --- arch/x86/kernel/kprobes/core.c |4 1 file cha

[Xen-devel] [PATCH -tip v4 3/4] x86: xen: insn: Decode Xen and KVM emulate-prefix signature

2019-09-06 Thread Masami Hiramatsu
Decode Xen and KVM's emulate-prefix signature by x86 insn decoder. It is called "prefix" but actually not x86 instruction prefix, so this adds insn.emulate_prefix_size field instead of reusing insn.prefixes. If x86 decoder finds a special sequence of instructions of XEN_EMULATE_PREFIX and 'ud2a; .

[Xen-devel] [PATCH -tip v4 2/4] x86: xen: kvm: Gather the definition of emulate prefixes

2019-09-06 Thread Masami Hiramatsu
Gather the emulate prefixes, which forcibly make the following instruction emulated on virtualization, in one place. Suggested-by: Peter Zijlstra Signed-off-by: Masami Hiramatsu --- arch/x86/include/asm/emulate_prefix.h | 14 ++ arch/x86/include/asm/xen/interface.h | 11 ---

[Xen-devel] [PATCH -tip v4 1/4] x86/asm: Allow to pass macros to __ASM_FORM()

2019-09-06 Thread Masami Hiramatsu
Use __stringify() at __ASM_FORM() so that user can pass code including macros to __ASM_FORM(). Signed-off-by: Masami Hiramatsu --- arch/x86/include/asm/asm.h |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/asm.h b/arch/x86/include/asm/asm.h ind

[Xen-devel] [PATCH -tip v4 0/4] x86: kprobes: Prohibit kprobes on Xen/KVM emulate prefixes

2019-09-06 Thread Masami Hiramatsu
Hi, Here is the 4th version of patches to handle Xen/KVM emulate prefix by x86 instruction decoder. These patches allow x86 instruction decoder to decode Xen and KVM emulate prefix correctly, and prohibit kprobes to probe on it. Previous version is here; https://lkml.kernel.org/r/156773433821.3

Re: [Xen-devel] [xen-unstable-smoke test] 141063: regressions - FAIL

2019-09-06 Thread Jan Beulich
On 06.09.2019 14:28, Andrew Cooper wrote: > On 06/09/2019 08:29, Jan Beulich wrote: >> On 06.09.2019 00:04, osstest service owner wrote: >>> flight 141063 xen-unstable-smoke real [real] >>> http://logs.test-lab.xenproject.org/osstest/logs/141063/ >>> >>> Regressions :-( >>> >>> Tests which did not

Re: [Xen-devel] Criteria for checking in core scheduling series

2019-09-06 Thread Lars Kurth
On 06/09/2019, 12:09, "George Dunlap" wrote: There was a discussion on the community call about the core scheduling series being developed by Juergen Gross [1]. The conclusion can be summarized as follows: * We normally wait to check in series until they are quite good --

[Xen-devel] [PATCH v2] tools/libs: put common Makefile parts into new libs.mk

2019-09-06 Thread Juergen Gross
The Makefile below tools/libs have a lot in common. Put those common parts into a new libs.mk and include that from the specific Makefiles. Signed-off-by: Juergen Gross --- V2: - include common Makefile via absolute path for not breaking stubdom --- tools/libs/call/Makefile | 86 ++-

[Xen-devel] [linux-4.4 test] 141062: regressions - FAIL

2019-09-06 Thread osstest service owner
flight 141062 linux-4.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/141062/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-pvshim 20 guest-start/debian.repeat fail in 140955 REGR. vs. 139698 Tests which

Re: [Xen-devel] [PATCH v2] swiotlb-xen: Convert to use macro

2019-09-06 Thread Souptick Joarder
On Mon, Sep 2, 2019 at 2:04 PM Souptick Joarder wrote: > > Rather than using static int max_dma_bits, this > can be coverted to use as macro. > > Signed-off-by: Souptick Joarder > Reviewed-by: Juergen Gross If it is still not late, can we get this patch in queue for 5.4 ? > --- > drivers/xen/

Re: [Xen-devel] [xen-unstable-smoke test] 141063: regressions - FAIL

2019-09-06 Thread Andrew Cooper
On 06/09/2019 08:29, Jan Beulich wrote: > On 06.09.2019 00:04, osstest service owner wrote: >> flight 141063 xen-unstable-smoke real [real] >> http://logs.test-lab.xenproject.org/osstest/logs/141063/ >> >> Regressions :-( >> >> Tests which did not succeed and are blocking, >> including tests which

Re: [Xen-devel] RFC: Criteria for checking in core scheduling series

2019-09-06 Thread Andrew Cooper
On 06/09/2019 12:09, George Dunlap wrote: > There was a discussion on the community call about the core scheduling > series being developed by Juergen Gross [1]. The conclusion can be > summarized as follows: > > * We normally wait to check in series until they are quite good -- all > the i's dott

Re: [Xen-devel] [PATCH] x86/shadow: fold p2m page accounting into sh_min_allocation()

2019-09-06 Thread Andrew Cooper
On 05/09/2019 09:34, Jan Beulich wrote: > This is to make the function live up to the promise its name makes. And > it simplifies all callers. > > Suggested-by: Andrew Cooper > Signed-off-by: Jan Beulich Acked-by: Andrew Cooper I haven't looked at the calculations in detail, but from an end co

Re: [Xen-devel] [PATCH v3] IOMMU/x86: make page type checks consistent when mapping pages

2019-09-06 Thread Jan Beulich
On 06.09.2019 13:45, Roger Pau Monné wrote: > On Fri, Sep 06, 2019 at 12:52:11PM +0200, Jan Beulich wrote: >> On 06.09.2019 11:37, Roger Pau Monné wrote: >>> On Wed, Jul 03, 2019 at 12:18:45PM +, Jan Beulich wrote: --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -829

Re: [Xen-devel] [PATCH v3] IOMMU/x86: make page type checks consistent when mapping pages

2019-09-06 Thread Roger Pau Monné
On Fri, Sep 06, 2019 at 12:52:11PM +0200, Jan Beulich wrote: > On 06.09.2019 11:37, Roger Pau Monné wrote: > > On Wed, Jul 03, 2019 at 12:18:45PM +, Jan Beulich wrote: > >> --- a/xen/arch/x86/mm/p2m.c > >> +++ b/xen/arch/x86/mm/p2m.c > >> @@ -829,13 +829,13 @@ guest_physmap_add_page(struct dom

Re: [Xen-devel] [PATCH] x86/boot: Don't explicitly map the VGA region as UC-

2019-09-06 Thread Andrew Cooper
On 06/09/2019 12:06, Roger Pau Monné wrote: > On Thu, Sep 05, 2019 at 08:04:18PM +0100, Andrew Cooper wrote: >> All 64-bit capable processors use PAT, and with PAT, it is explicitly >> permitted to have mappings with a cacheability different to MTRRs. >> >> On a native system with a real legacy VGA

Re: [Xen-devel] [PATCH] x86/shadow: fold p2m page accounting into sh_min_allocation()

2019-09-06 Thread Roger Pau Monné
On Thu, Sep 05, 2019 at 10:34:47AM +0200, Jan Beulich wrote: > This is to make the function live up to the promise its name makes. And > it simplifies all callers. > > Suggested-by: Andrew Cooper > Signed-off-by: Jan Beulich Reviewed-by: Roger Pau Monné Thanks. __

[Xen-devel] RFC: Criteria for checking in core scheduling series

2019-09-06 Thread George Dunlap
There was a discussion on the community call about the core scheduling series being developed by Juergen Gross [1]. The conclusion can be summarized as follows: * We normally wait to check in series until they are quite good -- all the i's dotted and all the t's crossed * This is for several rea

Re: [Xen-devel] [PATCH] x86/boot: Don't explicitly map the VGA region as UC-

2019-09-06 Thread Roger Pau Monné
On Thu, Sep 05, 2019 at 08:04:18PM +0100, Andrew Cooper wrote: > All 64-bit capable processors use PAT, and with PAT, it is explicitly > permitted to have mappings with a cacheability different to MTRRs. > > On a native system with a real legacy VGA region, MTRRs will cause the region > to be UC-.

Re: [Xen-devel] [PATCH v8 2/6] domain: introduce XEN_DOMCTL_CDF_iommu flag

2019-09-06 Thread Paul Durrant
> -Original Message- [snip] > > diff --git a/tools/ocaml/libs/xc/xenctrl.ml b/tools/ocaml/libs/xc/xenctrl.ml > > index 35958b94d5..bdf3f2e395 100644 > > --- a/tools/ocaml/libs/xc/xenctrl.ml > > +++ b/tools/ocaml/libs/xc/xenctrl.ml > > @@ -56,7 +56,13 @@ type arch_domainconfig = > > | AR

Re: [Xen-devel] [PATCH v3] IOMMU/x86: make page type checks consistent when mapping pages

2019-09-06 Thread Jan Beulich
On 06.09.2019 11:37, Roger Pau Monné wrote: > On Wed, Jul 03, 2019 at 12:18:45PM +, Jan Beulich wrote: >> --- a/xen/arch/x86/mm/p2m.c >> +++ b/xen/arch/x86/mm/p2m.c >> @@ -829,13 +829,13 @@ guest_physmap_add_page(struct domain *d, >>* >>* Retain this property by grabbin

Re: [Xen-devel] [PATCH -tip v3 1/2] x86: xen: insn: Decode Xen and KVM emulate-prefix signature

2019-09-06 Thread Masami Hiramatsu
On Fri, 6 Sep 2019 09:34:36 +0200 Peter Zijlstra wrote: > On Fri, Sep 06, 2019 at 10:45:48AM +0900, Masami Hiramatsu wrote: > > > diff --git a/arch/x86/include/asm/xen/interface.h > > b/arch/x86/include/asm/xen/interface.h > > index 62ca03ef5c65..fe33a9798708 100644 > > --- a/arch/x86/include/a

Re: [Xen-devel] [RFC Patch] xen/pt: Emulate FLR capability

2019-09-06 Thread Roger Pau Monné
On Fri, Sep 06, 2019 at 05:01:09PM +0800, Chao Gao wrote: > On Thu, Aug 29, 2019 at 12:21:11PM +0200, Roger Pau Monné wrote: > >On Thu, Aug 29, 2019 at 05:02:27PM +0800, Chao Gao wrote: > >> Currently, for a HVM on Xen, no reset method is virtualized. So in a VM's > >> perspective, assigned devices

Re: [Xen-devel] [PATCH v3] IOMMU/x86: make page type checks consistent when mapping pages

2019-09-06 Thread Roger Pau Monné
On Wed, Jul 03, 2019 at 12:18:45PM +, Jan Beulich wrote: > There are currently three more or less different checks: > - _get_page_type() adjusts the IOMMU mappings according to the new type >alone, > - arch_iommu_populate_page_table() wants just the type to be >PGT_writable_page, > - io

[Xen-devel] [qemu-mainline test] 141058: regressions - FAIL

2019-09-06 Thread osstest service owner
flight 141058 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/141058/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-pvshim 12 guest-start fail REGR. vs. 140282 Tests which did n

Re: [Xen-devel] [PATCH v8 6/6] introduce a 'passthrough' configuration option to xl.cfg...

2019-09-06 Thread Paul Durrant
> -Original Message- > From: Julien Grall > Sent: 06 September 2019 10:06 > To: Paul Durrant ; xen-devel@lists.xenproject.org > Cc: Jan Beulich ; Ian Jackson ; > Wei Liu ; > Andrew Cooper ; George Dunlap > ; Konrad Rzeszutek > Wilk ; Stefano Stabellini ; > Tim (Xen.org) > ; Anthony Pera

Re: [Xen-devel] [PATCH v5 3/4] xen: refactor debugtrace data

2019-09-06 Thread Juergen Gross
On 06.09.19 11:10, Jan Beulich wrote: On 06.09.2019 10:49, Juergen Gross wrote: On 05.09.19 16:43, Jan Beulich wrote: On 05.09.2019 16:36, Juergen Gross wrote: On 05.09.19 14:46, Juergen Gross wrote: On 05.09.19 14:37, Jan Beulich wrote: On 05.09.2019 14:27, Juergen Gross wrote: On 05.09.19

Re: [Xen-devel] [RFC Patch] xen/pt: Emulate FLR capability

2019-09-06 Thread Paul Durrant
> -Original Message- > From: Chao Gao > Sent: 06 September 2019 10:01 > To: Roger Pau Monne > Cc: xen-devel@lists.xenproject.org; qemu-de...@nongnu.org; Stefano Stabellini > ; Anthony Perard ; Paul > Durrant > ; Jan Beulich > Subject: Re: [RFC Patch] xen/pt: Emulate FLR capability > >

Re: [Xen-devel] [PATCH -tip v3 1/2] x86: xen: insn: Decode Xen and KVM emulate-prefix signature

2019-09-06 Thread Peter Zijlstra
On Fri, Sep 06, 2019 at 05:51:43PM +0900, Masami Hiramatsu wrote: > On Fri, 6 Sep 2019 17:45:19 +0900 > Masami Hiramatsu wrote: > > > > > > > How about we make this asm/virt_prefix.h or something and include: > > > > > > /* > > > * Virt escape sequences to trigger instruction emulation; > > >

Re: [Xen-devel] [PATCH v5 3/4] xen: refactor debugtrace data

2019-09-06 Thread Jan Beulich
On 06.09.2019 10:49, Juergen Gross wrote: > On 05.09.19 16:43, Jan Beulich wrote: >> On 05.09.2019 16:36, Juergen Gross wrote: >>> On 05.09.19 14:46, Juergen Gross wrote: On 05.09.19 14:37, Jan Beulich wrote: > On 05.09.2019 14:27, Juergen Gross wrote: >> On 05.09.19 14:22, Jan Beulich

Re: [Xen-devel] [PATCH v8 6/6] introduce a 'passthrough' configuration option to xl.cfg...

2019-09-06 Thread Julien Grall
Hi Paul, On 9/6/19 9:08 AM, Paul Durrant wrote: -Original Message- From: Julien Grall Sent: 05 September 2019 21:28 To: Paul Durrant ; xen-devel@lists.xenproject.org Cc: Jan Beulich ; Ian Jackson ; Wei Liu ; Andrew Cooper ; George Dunlap ; Konrad Rzeszutek Wilk ; Stefano Stabellini ;

Re: [Xen-devel] [RFC Patch] xen/pt: Emulate FLR capability

2019-09-06 Thread Chao Gao
On Thu, Aug 29, 2019 at 12:21:11PM +0200, Roger Pau Monné wrote: >On Thu, Aug 29, 2019 at 05:02:27PM +0800, Chao Gao wrote: >> Currently, for a HVM on Xen, no reset method is virtualized. So in a VM's >> perspective, assigned devices cannot be reset. But some devices rely on PCI >> reset to recover

Re: [Xen-devel] [PATCH -tip v3 1/2] x86: xen: insn: Decode Xen and KVM emulate-prefix signature

2019-09-06 Thread Masami Hiramatsu
On Fri, 6 Sep 2019 17:45:19 +0900 Masami Hiramatsu wrote: > > > > How about we make this asm/virt_prefix.h or something and include: > > > > /* > > * Virt escape sequences to trigger instruction emulation; > > * ideally these would decode to 'whole' instruction and not destroy > > * the inst

Re: [Xen-devel] [PATCH v5 3/4] xen: refactor debugtrace data

2019-09-06 Thread Juergen Gross
On 05.09.19 16:43, Jan Beulich wrote: On 05.09.2019 16:36, Juergen Gross wrote: On 05.09.19 14:46, Juergen Gross wrote: On 05.09.19 14:37, Jan Beulich wrote: On 05.09.2019 14:27, Juergen Gross wrote: On 05.09.19 14:22, Jan Beulich wrote: On 05.09.2019 14:12, Juergen Gross wrote: On 05.09.19

Re: [Xen-devel] [PATCH v8 5/6] iommu: tidy up iommu_use_hap_pt() and need_iommu_pt_sync() macros

2019-09-06 Thread Julien Grall
Hi Paul, On 9/6/19 8:59 AM, Paul Durrant wrote: -Original Message- From: Julien Grall Sent: 05 September 2019 20:38 To: Paul Durrant ; xen-devel@lists.xenproject.org Cc: Jan Beulich ; Andrew Cooper ; George Dunlap ; Ian Jackson ; Konrad Rzeszutek Wilk ; Stefano Stabellini ; Tim (Xen.o

Re: [Xen-devel] [PATCH -tip v3 1/2] x86: xen: insn: Decode Xen and KVM emulate-prefix signature

2019-09-06 Thread Masami Hiramatsu
On Fri, 6 Sep 2019 09:34:36 +0200 Peter Zijlstra wrote: > On Fri, Sep 06, 2019 at 10:45:48AM +0900, Masami Hiramatsu wrote: > > > diff --git a/arch/x86/include/asm/xen/interface.h > > b/arch/x86/include/asm/xen/interface.h > > index 62ca03ef5c65..fe33a9798708 100644 > > --- a/arch/x86/include/a

Re: [Xen-devel] [PATCH v8 6/6] introduce a 'passthrough' configuration option to xl.cfg...

2019-09-06 Thread Paul Durrant
> -Original Message- > From: Julien Grall > Sent: 05 September 2019 21:28 > To: Paul Durrant ; xen-devel@lists.xenproject.org > Cc: Jan Beulich ; Ian Jackson ; > Wei Liu ; > Andrew Cooper ; George Dunlap > ; Konrad Rzeszutek > Wilk ; Stefano Stabellini ; > Tim (Xen.org) > ; Anthony Pera

Re: [Xen-devel] [PATCH v8 6/6] introduce a 'passthrough' configuration option to xl.cfg...

2019-09-06 Thread Paul Durrant
> -Original Message- > From: Julien Grall > Sent: 05 September 2019 20:59 > To: Paul Durrant ; xen-devel@lists.xenproject.org > Cc: Jan Beulich ; Ian Jackson ; > Wei Liu ; > Andrew Cooper ; George Dunlap > ; Konrad Rzeszutek > Wilk ; Stefano Stabellini ; > Tim (Xen.org) > ; Anthony Pera

Re: [Xen-devel] [PATCH v8 5/6] iommu: tidy up iommu_use_hap_pt() and need_iommu_pt_sync() macros

2019-09-06 Thread Paul Durrant
> -Original Message- > From: Julien Grall > Sent: 05 September 2019 20:38 > To: Paul Durrant ; xen-devel@lists.xenproject.org > Cc: Jan Beulich ; Andrew Cooper > ; George Dunlap > ; Ian Jackson ; Konrad > Rzeszutek Wilk > ; Stefano Stabellini ; Tim > (Xen.org) ; > Wei Liu ; Volodymyr Ba

Re: [Xen-devel] [PATCH v8 4/6] remove late (on-demand) construction of IOMMU page tables

2019-09-06 Thread Paul Durrant
> -Original Message- > From: Julien Grall > Sent: 05 September 2019 21:21 > To: Paul Durrant ; xen-devel@lists.xenproject.org > Cc: Alexandru Isaila ; Razvan Cojocaru > ; Jan > Beulich ; Stefano Stabellini ; > Volodymyr Babchuk > ; Andrew Cooper ; > George Dunlap > ; Ian Jackson ; Konra

  1   2   >