[Xen-devel] [linux-4.9 test] 125896: FAIL

2018-08-14 Thread osstest service owner
flight 125896 linux-4.9 real [real] http://logs.test-lab.xenproject.org/osstest/logs/125896/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken in 125869

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

2018-08-14 Thread osstest service owner
flight 125892 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/125892/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken build-arm64-xsm

[Xen-devel] [linux-next test] 125888: regressions - trouble: blocked/broken/fail/pass

2018-08-14 Thread osstest service owner
flight 125888 linux-next real [real] http://logs.test-lab.xenproject.org/osstest/logs/125888/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-xsm broken build-arm64-pvops

Re: [Xen-devel] [PATCH v3 0/4] x86/iommu: PVH Dom0 workarounds for missing RMRR entries

2018-08-14 Thread Tamas K Lengyel
On Wed, Aug 8, 2018 at 3:54 AM Jan Beulich wrote: > > >>> On 08.08.18 at 10:25, wrote: > > On Tue, Aug 07, 2018 at 10:45:32AM -0600, Tamas K Lengyel wrote: > >> On Tue, Aug 7, 2018 at 10:04 AM Tamas K Lengyel > >> wrote: > >> (XEN) [VT-D]iommu.c:919: iommu_fault_status: Fault Overflow > >>

Re: [Xen-devel] [OSSTEST PATCH] production-config: Temporarily drop arm64

2018-08-14 Thread Rich Persaud
On Aug 14, 2018, at 18:46, Julien Grall wrote: > > Hi Rich, > >> On 08/14/2018 11:42 PM, Rich Persaud wrote: >>> On Aug 13, 2018, at 10:57, Ian Jackson wrote: >>> >>> Both our arm64 boxes are out of commission and repairing them is >>> taking too long. >> Apologies if this is already

Re: [Xen-devel] [PATCH 03/15] xen/arm: Introduce helpers to clear/flags flags in HCR_EL2

2018-08-14 Thread Stefano Stabellini
On Tue, 14 Aug 2018, Julien Grall wrote: > Hi Stefano, > > On 08/14/2018 10:49 PM, Stefano Stabellini wrote: > > On Tue, 14 Aug 2018, Julien Grall wrote: > > > Hi Stefano, > > > > > > On 08/14/2018 09:46 PM, Stefano Stabellini wrote: > > > > On Mon, 16 Jul 2018, Julien Grall wrote: > > > > > A

Re: [Xen-devel] [PATCH 03/15] xen/arm: Introduce helpers to clear/flags flags in HCR_EL2

2018-08-14 Thread Julien Grall
Hi Stefano, On 08/14/2018 10:49 PM, Stefano Stabellini wrote: On Tue, 14 Aug 2018, Julien Grall wrote: Hi Stefano, On 08/14/2018 09:46 PM, Stefano Stabellini wrote: On Mon, 16 Jul 2018, Julien Grall wrote: A couple of places in the code will need to clear/set flags in HCR_EL2 for a given

Re: [Xen-devel] [PATCH 11/15] xen/arm: Allow lpae_is_{table, mapping} helpers to work on invalid entry

2018-08-14 Thread Julien Grall
Hi Stefano, On 08/14/2018 10:33 PM, Stefano Stabellini wrote: On Mon, 16 Jul 2018, Julien Grall wrote: Currently, lpae_is_{table, mapping} helpers will always return false on entry with the valid bit unset. However, it would be useful to have them ^entries operating on any entry. For

Re: [Xen-devel] [OSSTEST PATCH] production-config: Temporarily drop arm64

2018-08-14 Thread Julien Grall
Hi Rich, On 08/14/2018 11:42 PM, Rich Persaud wrote: On Aug 13, 2018, at 10:57, Ian Jackson wrote: Both our arm64 boxes are out of commission and repairing them is taking too long. Apologies if this is already documented elsewhere - does OSStest use Qemu for arm64 testing? Osstest does

Re: [Xen-devel] [OSSTEST PATCH] production-config: Temporarily drop arm64

2018-08-14 Thread Rich Persaud
On Aug 13, 2018, at 10:57, Ian Jackson wrote: > > Both our arm64 boxes are out of commission and repairing them is > taking too long. Apologies if this is already documented elsewhere - does OSStest use Qemu for arm64 testing? Rich ___ Xen-devel

Re: [Xen-devel] [PATCH] libxl/arm: Fix build on arm64 + acpi w/ gcc 8.2

2018-08-14 Thread Stefano Stabellini
On Tue, 14 Aug 2018, Christopher Clark wrote: > Add zero-padding to #defined ACPI table strings that are copied. > Provides sufficient characters to satisfy the length required to > fully populate the destination and prevent array-bounds warnings. > > Signed-off-by: Christopher Clark > --- > >

[Xen-devel] [PATCH] libxl: start pvqemu when 9pfs is requested

2018-08-14 Thread Stefano Stabellini
PV 9pfs requires the PV backend in QEMU. Make sure that libxl knows it. Signed-off-by: Stefano Stabellini --- diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index fdd7fa3..70e8b16 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -2598,7 +2598,7 @@ int

Re: [Xen-devel] [PATCH 03/15] xen/arm: Introduce helpers to clear/flags flags in HCR_EL2

2018-08-14 Thread Stefano Stabellini
On Tue, 14 Aug 2018, Julien Grall wrote: > Hi Stefano, > > On 08/14/2018 09:46 PM, Stefano Stabellini wrote: > > On Mon, 16 Jul 2018, Julien Grall wrote: > > > A couple of places in the code will need to clear/set flags in HCR_EL2 > > > for a given vCPU and then replicate into the hardware.

Re: [Xen-devel] [PATCH 01/15] xen/arm: cpregs: Allow HSR_CPREG* to receive more than 1 parameter

2018-08-14 Thread Stefano Stabellini
On Mon, 16 Jul 2018, Julien Grall wrote: > At the moment, HSR_CPREG is expected to receive only the co-processor > register name in parameter. Because the name is actually a define, this > may have been expanded by a previous macro. > > Rather than imposing the use of _HSR_CPREG* in such cases,

Re: [Xen-devel] [PATCH 15/15] xen/arm: traps: Move the implementation of GUEST_BUG_ON in traps.h

2018-08-14 Thread Stefano Stabellini
On Mon, 16 Jul 2018, Julien Grall wrote: > GUEST_BUG_ON may be used in other files doing guest emulation. > > Signed-off-by: Julien Grall Given that GUEST_BUG_ON is not actually used in any other files in this patch series, I assume you are referring to one of your future series? > --- >

Re: [Xen-devel] [PATCH 14/15] xen/arm: guest_walk_tables: Switch the return to bool

2018-08-14 Thread Stefano Stabellini
On Mon, 16 Jul 2018, Julien Grall wrote: > At the moment, guest_walk_tables can either return 0, -EFAULT, -EINVAL. > The use of the last 2 are not clearly defined and used inconsistently in > the code. The current only caller does not care about the return > value and the value of it seems very

Re: [Xen-devel] [PATCH 13/15] xen/arm: p2m: Introduce a new variable removing_mapping in __p2m_set_entry

2018-08-14 Thread Stefano Stabellini
On Mon, 16 Jul 2018, Julien Grall wrote: > This is making the code slightly easier to understand. > > Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini > --- > xen/arch/arm/p2m.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git

Re: [Xen-devel] [PATCH 12/15] xen/arm: p2m: Rename ret to mfn in p2m_lookup

2018-08-14 Thread Stefano Stabellini
On Mon, 16 Jul 2018, Julien Grall wrote: > Comestic change to make clearer what is the return ('ret' is a bit > too generic). > > Signed-off-by: Julien Grall Acked-by: Stefano Stabellini > --- > xen/arch/arm/p2m.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git

Re: [Xen-devel] [PATCH 11/15] xen/arm: Allow lpae_is_{table, mapping} helpers to work on invalid entry

2018-08-14 Thread Stefano Stabellini
On Mon, 16 Jul 2018, Julien Grall wrote: > Currently, lpae_is_{table, mapping} helpers will always return false on > entry with the valid bit unset. However, it would be useful to have them ^entries > operating on any entry. For instance to store information in advance but > still request a

Re: [Xen-devel] [PATCH 10/15] xen/arm: Introduce helpers to get/set an MFN from/to an LPAE entry

2018-08-14 Thread Stefano Stabellini
On Mon, 16 Jul 2018, Julien Grall wrote: > The new helpers make easier to read the code by abstracting the way to ^ it > set/get an MFN from/to an LPAE entry. The helpers is using "walk" as the ^are > bits are common for

Re: [Xen-devel] [PATCH 03/15] xen/arm: Introduce helpers to clear/flags flags in HCR_EL2

2018-08-14 Thread Julien Grall
Hi Stefano, On 08/14/2018 09:46 PM, Stefano Stabellini wrote: On Mon, 16 Jul 2018, Julien Grall wrote: A couple of places in the code will need to clear/set flags in HCR_EL2 for a given vCPU and then replicate into the hardware. Introduce helpers and replace open-coded version. Signed-off-by:

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

2018-08-14 Thread osstest service owner
flight 125910 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/125910/ 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] [PATCH 09/15] xen/arm: guest_walk: Use lpae_is_mapping to simplify the code

2018-08-14 Thread Stefano Stabellini
On Mon, 16 Jul 2018, Julien Grall wrote: > !lpae_is_page(pte, level) && !lpae_is_superpage(pte, level) is > equivalent to !lpae_is_mapping(pte, level). > > At the same time drop lpae_is_page(pte, level) that is now unused. > > Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini > ---

Re: [Xen-devel] [PATCH 08/15] xen/arm: Rename lpae_valid to lpae_is_valid

2018-08-14 Thread Stefano Stabellini
On Mon, 16 Jul 2018, Julien Grall wrote: > This will help to keep the naming consistent accross all lpae helpers. > > No functional change intended. > > Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini > --- > xen/arch/arm/guest_walk.c | 2 +- > xen/arch/arm/mm.c | 6

Re: [Xen-devel] [PATCH 07/15] xen/arm: Rework lpae_table

2018-08-14 Thread Stefano Stabellini
On Mon, 16 Jul 2018, Julien Grall wrote: > Currently, lpae_table can only work on entry from any level other than > 3. Make it work with any level by extending the prototype to pass the > level. > > At the same time, rename the function to lpae_is_mapping so naming stay > consistent accross all

Re: [Xen-devel] [PATCH 06/15] xen/arm: Rework lpae_mapping

2018-08-14 Thread Stefano Stabellini
On Mon, 16 Jul 2018, Julien Grall wrote: > Currently, lpae_mapping can only work on entry from any level other than > 3. Make it work with any level by extending the prototype to pass the > level. > > At the same time, rename the function to lpae_is_mapping so naming stay > consistent accross

Re: [Xen-devel] [PATCH 05/15] xen/arm: p2m: Limit call to mem access code use in get_page_from_gva

2018-08-14 Thread Stefano Stabellini
On Mon, 16 Jul 2018, Julien Grall wrote: > Mem access has only an impact on the hardware translation between a > guest virtual address and the machine physical address. So it is not > necessary to fallback to memaccess for all the other case (e.g when it > is not possible to acquire the page

Re: [Xen-devel] [PATCH 04/15] xen/arm: p2m: Reduce the locking section in get_page_from_gva

2018-08-14 Thread Stefano Stabellini
On Mon, 16 Jul 2018, Julien Grall wrote: > The p2m lock is only necessary to prevent gvirt_to_maddr failing when > break-before-make sequence is used in the P2M update concurrently on > another pCPU. So reduce the locking section. > > Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini

Re: [Xen-devel] [PATCH 03/15] xen/arm: Introduce helpers to clear/flags flags in HCR_EL2

2018-08-14 Thread Stefano Stabellini
On Mon, 16 Jul 2018, Julien Grall wrote: > A couple of places in the code will need to clear/set flags in HCR_EL2 > for a given vCPU and then replicate into the hardware. Introduce > helpers and replace open-coded version. > > Signed-off-by: Julien Grall The macros look good, but I grepped for

Re: [Xen-devel] [PATCH 02/15] xen/arm: cpregs: Fix typo in the documentation of TTBCR

2018-08-14 Thread Stefano Stabellini
On Mon, 16 Jul 2018, Julien Grall wrote: > Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini > --- > xen/include/asm-arm/cpregs.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/xen/include/asm-arm/cpregs.h b/xen/include/asm-arm/cpregs.h > index

[Xen-devel] [PATCH] libxl/arm: Fix build on arm64 + acpi w/ gcc 8.2

2018-08-14 Thread Christopher Clark
Add zero-padding to #defined ACPI table strings that are copied. Provides sufficient characters to satisfy the length required to fully populate the destination and prevent array-bounds warnings. Signed-off-by: Christopher Clark --- Please add this patch to the backport list for the next minor

[Xen-devel] [ovmf baseline-only test] 75068: tolerable FAIL

2018-08-14 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 75068 ovmf real [real] http://osstest.xensource.com/osstest/logs/75068/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-xl-qemuu-ovmf-amd64 10 debian-hvm-install fail like 75062

[Xen-devel] [distros-debian-snapshot test] 75067: regressions - trouble: broken/fail/pass

2018-08-14 Thread Platform Team regression test user
flight 75067 distros-debian-snapshot real [real] http://osstest.xensource.com/osstest/logs/75067/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-i386-daily-netboot-pygrub broken

[Xen-devel] Xen Security Advisory 272 v2 - oxenstored does not apply quota-maxentity

2018-08-14 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xen Security Advisory XSA-272 version 2 oxenstored does not apply quota-maxentity UPDATES IN VERSION 2 Ammend patch to reference XSA-272 in the commit message.

[Xen-devel] Xen Security Advisory 271 v2 (CVE-2018-14007) - XAPI HTTP directory traversal

2018-08-14 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xen Security Advisory CVE-2018-14007 / XSA-271 version 2 XAPI HTTP directory traversal UPDATES IN VERSION 2 Public release. ISSUE DESCRIPTION =

[Xen-devel] Xen Security Advisory 268 v2 - Use of v2 grant tables may cause crash on ARM

2018-08-14 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xen Security Advisory XSA-268 version 2 Use of v2 grant tables may cause crash on ARM UPDATES IN VERSION 2 Public release. ISSUE DESCRIPTION =

[Xen-devel] Xen Security Advisory 269 v2 - x86: Incorrect MSR_DEBUGCTL handling lets guests enable BTS

2018-08-14 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xen Security Advisory XSA-269 version 2 x86: Incorrect MSR_DEBUGCTL handling lets guests enable BTS UPDATES IN VERSION 2 Public release. ISSUE DESCRIPTION

[Xen-devel] Xen Security Advisory 270 v2 - Linux netback driver OOB access in hash handling

2018-08-14 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xen Security Advisory XSA-270 version 2 Linux netback driver OOB access in hash handling UPDATES IN VERSION 2 Public release. ISSUE DESCRIPTION =

[Xen-devel] Xen Security Advisory 273 v1 (CVE-2018-3620, CVE-2018-3646) - L1 Terminal Fault speculative side channel

2018-08-14 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xen Security Advisory CVE-2018-3620,CVE-2018-3646 / XSA-273 L1 Terminal Fault speculative side channel ISSUE DESCRIPTION = In x86 nomenclature, a Terminal Fault is a pagetable walk which aborts due to the page

Re: [Xen-devel] [PATCH net-next v3] xen-netfront: fix warn message as irq device name has '/'

2018-08-14 Thread David Miller
From: Xiao Liang Date: Tue, 14 Aug 2018 23:21:28 +0800 > There is a call trace generated after commit > 2d408c0d4574b01b9ed45e02516888bf925e11a9( > xen-netfront: fix queue name setting). There is no 'device/vif/xx-q0-tx' file > found > under /proc/irq/xx/. > > This patch only picks up device

[Xen-devel] [qemu-mainline test] 125884: trouble: blocked/broken/fail/pass

2018-08-14 Thread osstest service owner
flight 125884 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/125884/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-xsm broken build-arm64-pvops

[Xen-devel] [PATCH net-next v3] xen-netfront: fix warn message as irq device name has '/'

2018-08-14 Thread Xiao Liang
There is a call trace generated after commit 2d408c0d4574b01b9ed45e02516888bf925e11a9( xen-netfront: fix queue name setting). There is no 'device/vif/xx-q0-tx' file found under /proc/irq/xx/. This patch only picks up device type and id as its name. With the patch, now /proc/interrupts looks

Re: [Xen-devel] [PATCH v2 12/12] xen/domain: Allocate d->vcpu[] in domain_create()

2018-08-14 Thread Roger Pau Monné
On Mon, Aug 13, 2018 at 11:01:09AM +0100, Andrew Cooper wrote: > For ARM, the call to arch_domain_create() needs to have completed before > domain_max_vcpus() will return the correct upper bound. > > For each arch's dom0's, drop the temporary max_vcpus parameter, and allocation > of dom0->vcpu. >

Re: [Xen-devel] [PATCH v2 11/12] xen/dom0: Arrange for dom0_cfg to contain the real max_vcpus value

2018-08-14 Thread Roger Pau Monné
On Mon, Aug 13, 2018 at 11:01:08AM +0100, Andrew Cooper wrote: > Make dom0_max_vcpus() a common interface, and implement it on ARM by splitting > the existing alloc_dom0_vcpu0() function in half. > > As domain_create() doesn't yet set up the vcpu array, the max value is also > passed into

Re: [Xen-devel] [PATCH v2 09/12] xen/domain: Call arch_domain_create() as early as possible in domain_create()

2018-08-14 Thread Roger Pau Monné
On Mon, Aug 13, 2018 at 11:01:06AM +0100, Andrew Cooper wrote: > This is in preparation to set up d->max_cpus and d->vcpu[] in domain_create(), > and allow later parts of domain construction to have access to the values. > > Signed-off-by: Andrew Cooper > --- > CC: Jan Beulich > CC: Stefano

Re: [Xen-devel] [PATCH] xen: fix stale PVH comment

2018-08-14 Thread Wei Liu
On Tue, Aug 14, 2018 at 04:03:24PM +0200, Roger Pau Monne wrote: > Signed-off-by: Roger Pau Monné > --- Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH v2 08/12] xen/gnttab: Fold grant_table_{create, set_limits}() into grant_table_init()

2018-08-14 Thread Roger Pau Monné
On Mon, Aug 13, 2018 at 11:01:05AM +0100, Andrew Cooper wrote: > Now that the max_{grant,maptrack}_frames are specified from the very beginning > of grant table construction, the various initialisation functions can be > folded together and simplified as a result. > > Leave grant_table_init() as

[Xen-devel] [GIT PULL] xen: features and fixes for 4.19-rc1

2018-08-14 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.19-rc1-tag xen: features and fixes for 4.19-rc1 It contains the following: - a series to add dma-buf functionality to Xen grant table handling - a fix for booting the kernel as

Re: [Xen-devel] [PATCH v2 07/12] xen/domctl: Remove XEN_DOMCTL_set_gnttab_limits

2018-08-14 Thread Roger Pau Monné
On Mon, Aug 13, 2018 at 11:01:04AM +0100, Andrew Cooper wrote: > Now that XEN_DOMCTL_createdomain handles the grant table limits, remove > XEN_DOMCTL_set_gnttab_limits (including XSM hooks and libxc wrappers). > > Signed-off-by: Andrew Cooper > Acked-by: Daniel De Graaf > Acked-by: Wei Liu

Re: [Xen-devel] [PATCH v2 06/12] xen/gnttab: Pass max_{grant, maptrack}_frames into grant_table_create()

2018-08-14 Thread Roger Pau Monné
On Mon, Aug 13, 2018 at 11:01:03AM +0100, Andrew Cooper wrote: > ... rather than setting the limits up after domain_create() has completed. > > This removes all the gnttab infrastructure for calculating the number of dom0 > grant frames, opting instead to require the dom0 construction code to

Re: [Xen-devel] [PATCH v2 04/12] xen/evtchn: Pass max_evtchn_port into evtchn_init()

2018-08-14 Thread Roger Pau Monné
On Mon, Aug 13, 2018 at 11:01:01AM +0100, Andrew Cooper wrote: > ... rather than setting it up once domain_create() has completed. This > involves constructing a default value for dom0. > > No practical change in functionality. > > Signed-off-by: Andrew Cooper Reviewed-by: Roger Pau Monné

[Xen-devel] [PATCH] xen: fix stale PVH comment

2018-08-14 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Julien Grall Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu --- xen/include/public/domctl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [Xen-devel] [PATCH v2 03/12] xen/domctl: Merge set_max_evtchn into createdomain

2018-08-14 Thread Roger Pau Monné
On Mon, Aug 13, 2018 at 11:01:00AM +0100, Andrew Cooper wrote: > set_max_evtchn is somewhat weird. It was introduced with the event_fifo work, > but has never been used. Still, it is a bounding on resources consumed by the > event channel infrastructure, and should be part of createdomain,

[Xen-devel] [PATCH v5 6/8] dom0/pvh: change the order of the MMCFG initialization

2018-08-14 Thread Roger Pau Monne
So it's done before the iommu is initialized. This is required in order to be able to fetch the MMCFG regions from the domain struct. No functional change. Signed-off-by: Roger Pau Monné --- Changes since v1: - New in this version. --- Cc: Jan Beulich Cc: Andrew Cooper ---

[Xen-devel] [PATCH v5 3/8] iommu: make iommu_inclusive_mapping a suboption of dom0-iommu

2018-08-14 Thread Roger Pau Monne
Introduce a new dom0-iommu=map-inclusive generic option that supersedes iommu_inclusive_mapping. The previous behavior is preserved and the option should only be enabled by default on Intel hardware. Signed-off-by: Roger Pau Monné Reviewed-by: Paul Durrant --- Changes since v4: - Use an if to

[Xen-devel] [PATCH v5 8/8] x86/iommu: add map-reserved dom0-iommu option to map reserved memory ranges

2018-08-14 Thread Roger Pau Monne
Several people have reported hardware issues (malfunctioning USB controllers) due to iommu page faults on Intel hardware. Those faults are caused by missing RMRR (VTd) entries in the ACPI tables. Those can be worked around on VTd hardware by manually adding RMRR entries on the command line, this

[Xen-devel] [PATCH v5 7/8] vpci: introduce a helper to check MMCFG ranges

2018-08-14 Thread Roger Pau Monne
The helpers returns whether a given memory address belongs to a domain MMCFG range. Signed-off-by: Roger Pau Monné --- Changes since v4: - New in this version. --- Cc: Paul Durrant Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/hvm/io.c| 5 + xen/include/asm-x86/hvm/io.h | 3

[Xen-devel] [PATCH v5 4/8] mm: introduce a helper to get the memory type of a page

2018-08-14 Thread Roger Pau Monne
The type is only returned if the full page has the same type. This function is unimplemented for ARM. Signed-off-by: Roger Pau Monné --- Cc: Stefano Stabellini Cc: Julien Grall Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Cc: Tim Deegan

[Xen-devel] [PATCH v5 2/8] iommu: introduce dom0-iommu option

2018-08-14 Thread Roger Pau Monne
To select the iommu configuration used by Dom0. This option supersedes iommu=dom0-strict|dom0-passthrough. Signed-off-by: Roger Pau Monné --- Changes since v4: - Move the iommu_dom0_* variable renaming to a previous patch. - Use dom0-iommu=passthrough|strict booleans, like the iommu option

[Xen-devel] [PATCH v5 0/8] x86/iommu: PVH Dom0 workarounds for missing RMRR entries

2018-08-14 Thread Roger Pau Monne
Hello, The following series implement a workaround for missing RMRR entries for a PVH Dom0. It's based on the iommu_inclusive_mapping VTd option. The PVH workaround identity maps all regions marked as reserved in the memory map. Note that this workaround is enabled by default on Intel hardware.

[Xen-devel] [PATCH v5 5/8] x86/iommu: switch the hwdom mapping function to use page_get_type

2018-08-14 Thread Roger Pau Monne
This avoids repeated calls to page_is_ram_type which improves performance and makes the code easier to read. No functional change. Signed-off-by: Roger Pau Monné --- Changes since v4: - New in this version. --- Cc: Jan Beulich --- xen/drivers/passthrough/x86/iommu.c | 60

[Xen-devel] [PATCH v5 1/8] iommu: rename iommu_dom0_strict and iommu_passthrough

2018-08-14 Thread Roger Pau Monne
To iommu_hwdom_strict and iommu_hwdom_passthrough which is more descriptive of their usage. Also change their type from bool_t to bool. No functional change. Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich Cc: Andrew Cooper Cc: Suravee Suthikulpanit Cc: Brian Woods Cc: Kevin Tian ---

Re: [Xen-devel] [PATCH v2 00/12] Improvements to domain creation

2018-08-14 Thread Andrew Cooper
On 14/08/18 14:12, Christian Lindig wrote: > > On 13/08/18 11:00, Andrew Cooper wrote: >> This series can be found in git form here: >>    >> http://xenbits.xen.org/gitweb/?p=people/andrewcoop/xen.git;a=shortlog;h=refs/heads/xen-create-v1 > Is this the correct URL? The subject says v2 but this is

Re: [Xen-devel] [PATCH v2 00/12] Improvements to domain creation

2018-08-14 Thread Christian Lindig
On 13/08/18 11:00, Andrew Cooper wrote: This series can be found in git form here: http://xenbits.xen.org/gitweb/?p=people/andrewcoop/xen.git;a=shortlog;h=refs/heads/xen-create-v1 Is this the correct URL? The subject says v2 but this is branch v1. Looking over the OCaml-related patches, I

[Xen-devel] [linux-4.14 test] 125881: regressions - trouble: blocked/broken/fail/pass

2018-08-14 Thread osstest service owner
flight 125881 linux-4.14 real [real] http://logs.test-lab.xenproject.org/osstest/logs/125881/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken build-arm64-xsm

[Xen-devel] [libvirt test] 125885: regressions - trouble: blocked/broken/fail/pass

2018-08-14 Thread osstest service owner
flight 125885 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/125885/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-pvopsbroken build-arm64-xsm

Re: [Xen-devel] [RFC PATCH 2/2] xen/arm: Add MESON UART driver for Amlogic S905 SoC

2018-08-14 Thread Julien Grall
Hi Amit, On 07/08/18 18:07, Amit Singh Tomar wrote: This patch adds driver for UART controller present on Amlogic S905 SoC. https://dn.odroid.com/S905/DataSheet/S905_Public_Datasheet_V1.1.4.pdf The spec does not seems to provide the offset register. Where did you find them?

[Xen-devel] [xen-4.7-testing test] 125879: regressions - trouble: blocked/broken/fail/pass

2018-08-14 Thread osstest service owner
flight 125879 xen-4.7-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/125879/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken build-arm64-pvops

Re: [Xen-devel] [RFC PATCH 1/2] xen/arm: Add Amlogic S905 SoC early printk support

2018-08-14 Thread Julien Grall
Hi Amit, On 07/08/18 18:07, Amit Singh Tomar wrote: Signed-off-by: Amit Singh Tomar --- docs/misc/arm/early-printk.txt | 1 + xen/arch/arm/Rules.mk | 1 + xen/arch/arm/arm64/debug-meson.inc | 50 ++ 3 files changed, 52 insertions(+)

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

2018-08-14 Thread osstest service owner
flight 125900 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/125900/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 22ec06c8aaa1c4023bb7f960746da57f1b648568 baseline version: ovmf

Re: [Xen-devel] [PATCH 1/1] cameraif: add ABI for para-virtual camera

2018-08-14 Thread Juergen Gross
On 31/07/18 11:31, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > This is the ABI for the two halves of a para-virtualized > camera driver which extends Xen's reach multimedia capabilities even > farther enabling it for video conferencing, In-Vehicle Infotainment, > high

Re: [Xen-devel] x86 Community Call - Wed Aug 15, 14:00 - 15:00 UTC - Agenda items

2018-08-14 Thread Sergey Dyasli
On Mon, 2018-08-13 at 02:54 -0600, Jan Beulich wrote: > > > > On 13.08.18 at 09:46, wrote: > > > > proposed topics so far: > > * 4.10+ changes to Xen's memory scrubbing: discussion of the changes > > that made to it in recent versions of Xen (4.10+) - Christopher > > * Project

Re: [Xen-devel] [PATCH] libs/foreignmemory: Avoid printing an error for ENOTSUPP

2018-08-14 Thread Wei Liu
On Mon, Aug 13, 2018 at 06:33:25PM +0100, Julien Grall wrote: > Resource mapping is not supported on Arm and results to an error message > at every guest boot: > > xenforeignmemory: error: ioctl failed: Operation not supported > > Hide the error message when errnor is ENOTSUPP. > >

Re: [Xen-devel] [PATCH] libs/foreignmemory: Avoid printing an error for ENOTSUPP

2018-08-14 Thread Paul Durrant
> -Original Message- > From: Julien Grall [mailto:julien.gr...@arm.com] > Sent: 13 August 2018 18:33 > To: xen-devel@lists.xenproject.org > Cc: Ian Jackson ; Wei Liu ; > Paul Durrant ; Julien Grall > Subject: [PATCH] libs/foreignmemory: Avoid printing an error for ENOTSUPP > > Resource

Re: [Xen-devel] Xen ballooning interface

2018-08-14 Thread Juergen Gross
On 14/08/18 09:34, Jan Beulich wrote: On 14.08.18 at 09:19, wrote: >> On 14/08/18 09:02, Jan Beulich wrote: >> On 13.08.18 at 17:44, wrote: On 13/08/18 17:29, Jan Beulich wrote: On 13.08.18 at 16:20, wrote: >> On 13/08/18 15:54, Jan Beulich wrote: >> On

Re: [Xen-devel] Xen ballooning interface

2018-08-14 Thread Jan Beulich
>>> On 14.08.18 at 09:19, wrote: > On 14/08/18 09:02, Jan Beulich wrote: > On 13.08.18 at 17:44, wrote: >>> On 13/08/18 17:29, Jan Beulich wrote: >>> On 13.08.18 at 16:20, wrote: > On 13/08/18 15:54, Jan Beulich wrote: > On 13.08.18 at 15:06, wrote: >>> Suggested new

Re: [Xen-devel] Emulation and active (valid) interrupts

2018-08-14 Thread Jan Beulich
>>> On 13.08.18 at 21:17, wrote: > On 8/13/18 4:45 PM, Razvan Cojocaru wrote: >> On 8/13/18 4:38 PM, Jan Beulich wrote: >> On 13.08.18 at 15:19, wrote: On 8/13/18 3:58 PM, Jan Beulich wrote: On 13.08.18 at 14:51, wrote: >> So first we've got that vmx_idtv_reinject() call

Re: [Xen-devel] Xen ballooning interface

2018-08-14 Thread Juergen Gross
On 14/08/18 09:02, Jan Beulich wrote: On 13.08.18 at 17:44, wrote: >> On 13/08/18 17:29, Jan Beulich wrote: >> On 13.08.18 at 16:20, wrote: On 13/08/18 15:54, Jan Beulich wrote: On 13.08.18 at 15:06, wrote: >> Suggested new interface >> ---

Re: [Xen-devel] x86 Community Call - Wed Aug 15, 14:00 - 15:00 UTC - Agenda items

2018-08-14 Thread Lars Kurth
Revised Agenda: * 4.10+ changes to Xen's memory scrubbing: discussion of the changes that made to it in recent versions of Xen (4.10+) - Christopher * I think we need to talk about how we mean to unblock large chunks of work - Jan (see example list below) * Project Management stuff to keep