[Xen-devel] [linux-4.9 test] 130646: regressions - trouble: blocked/broken/fail/pass

2018-11-22 Thread osstest service owner
flight 130646 linux-4.9 real [real] http://logs.test-lab.xenproject.org/osstest/logs/130646/ 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] [PATCH 1/9] mm: Introduce new vm_insert_range API

2018-11-22 Thread Mike Rapoport
On Mon, Nov 19, 2018 at 11:15:15PM +0530, Souptick Joarder wrote: > On Mon, Nov 19, 2018 at 9:56 PM Mike Rapoport wrote: > > > > On Mon, Nov 19, 2018 at 08:43:09PM +0530, Souptick Joarder wrote: > > > Hi Mike, > > > > > > On Sat, Nov 17, 2018 at 8:07 PM Matthew Wilcox > > > wrote: > > > > > > >

Re: [Xen-devel] remove the ->mapping_error method from dma_map_ops V2

2018-11-22 Thread Christoph Hellwig
On Thu, Nov 22, 2018 at 06:05:26PM +, Russell King - ARM Linux wrote: > An alternative idea would be to migrate away from the > dma_map_single() and dma_map_page() interfaces that return a > dma_addr_t, and instead have them return an error code or zero > on success. See here for a proposal:

Re: [Xen-devel] remove the ->mapping_error method from dma_map_ops V2

2018-11-22 Thread Christoph Hellwig
On Thu, Nov 22, 2018 at 09:55:25AM -0800, Linus Torvalds wrote: > No, the big immediate benefit of allowing "return -EINVAL" etc is > simply legibility and error avoidance. Well, I can tweak the last patch to return -EINVAL from dma_mapping_error instead of the old 1 is as bool true. The callers

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

2018-11-22 Thread osstest service owner
flight 130708 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/130708/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-xsm broken build-amd64 6 xen

Re: [Xen-devel] [PATCH] mm: convert totalram_pages, totalhigh_pages and managed_pages to atomic.

2018-11-22 Thread Kuehling, Felix
On 2018-10-22 1:23 p.m., Arun KS wrote: > Remove managed_page_count_lock spinlock and instead use atomic > variables. > > Suggested-by: Michal Hocko > Suggested-by: Vlastimil Babka > Signed-off-by: Arun KS Acked-by: Felix Kuehling Regards,   Felix > > --- > As discussed here, > https://patch

Re: [Xen-devel] [Qemu-devel] [PATCH] Xen PCI passthrough: fix passthrough failure when irq map failure

2018-11-22 Thread Zhao Yan
On Thu, Nov 22, 2018 at 03:18:05PM +0100, Roger Pau Monné wrote: > On Thu, Nov 22, 2018 at 08:11:20AM -0500, Zhao Yan wrote: > > On Thu, Oct 18, 2018 at 03:56:36PM +0100, Roger Pau Monné wrote: > > > On Thu, Oct 18, 2018 at 08:22:41AM +, Zhao, Yan Y wrote: > > > > Hi > > > > The background for

[Xen-devel] How to create interface for wireless network

2018-11-22 Thread Vikram K
Hello, In case of Ethernet a bridge interface is created between Dom0 and DomU, so that DomU has the internet access bridge interface. We have only wireless chip in our board and how to create interface in case of wireless? Bridging doesn't work in case of wireless network. If we want use NAT, the

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

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

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

2018-11-22 Thread osstest service owner
flight 130703 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/130703/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-xsm broken build-amd64 6 xen

Re: [Xen-devel] [PATCH 10/14] x86/mm: Switch {get, put}_gfn() infrastructure to using gfn_t

2018-11-22 Thread Tian, Kevin
> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: Wednesday, November 21, 2018 9:21 PM > > Seemingly, a majority of users either override the helpers anyway, or have > an > gfn_t in their hands. > > Update the API, and adjust all users to match. > > Doing this highlighted a gaping

Re: [Xen-devel] [PATCH 4/4] x86/vvmx: Don't call vmsucceed() at the end of virtual_vmexit()

2018-11-22 Thread Tian, Kevin
> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: Thursday, November 15, 2018 11:31 PM > > On 15/11/2018 15:28, Sergey Dyasli wrote: > > On 15/11/2018 13:52, Andrew Cooper wrote: > >> This ends up corrupting L1's view of RFLAGS by setting ZF. The correct > value > >> is established

Re: [Xen-devel] [PATCH 3/4] x86/vvmx: Fixes to VMWRITE emulation

2018-11-22 Thread Tian, Kevin
> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: Thursday, November 15, 2018 9:53 PM > > * Don't assume that decode_vmx_inst() always returns > X86EMUL_EXCEPTION. > * The okay boolean is never written, making the else case dead. > > Signed-off-by: Andrew Cooper Acked-by: Kevin

Re: [Xen-devel] [PATCH 2/4] x86/vvmx: Correct the INVALID_PADDR checks for VMPTRLD/VMCLEAR

2018-11-22 Thread Tian, Kevin
> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: Thursday, November 15, 2018 9:53 PM > > The referenced addresses also need checking against MAXPHYSADDR. > > Signed-off-by: Andrew Cooper Acked-by: Kevin Tian ___ Xen-devel mailing list

Re: [Xen-devel] [PATCH 1/4] x86/vvmx: Drop unused CASE_{GET, SET}_REG() macros

2018-11-22 Thread Tian, Kevin
> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: Thursday, November 15, 2018 9:53 PM > > These have been obsolete since c/s 053ae230 "x86/vvmx: Remove enum > vmx_regs_enc". > > Signed-off-by: Andrew Cooper Acked-by: Kevin Tian ___ Xen

[Xen-devel] [linux-4.4 test] 130645: trouble: blocked/broken/fail/pass

2018-11-22 Thread osstest service owner
flight 130645 linux-4.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/130645/ 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-pvops

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

2018-11-22 Thread osstest service owner
flight 130700 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/130700/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-xsm broken build-amd64 6 xen

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

2018-11-22 Thread osstest service owner
flight 130695 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/130695/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-xsm broken build-amd64 6 xen

[Xen-devel] [linux-4.19 test] 130636: regressions - trouble: blocked/broken/fail/pass

2018-11-22 Thread osstest service owner
flight 130636 linux-4.19 real [real] http://logs.test-lab.xenproject.org/osstest/logs/130636/ 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] Problems building and running Xen on Hikey960

2018-11-22 Thread Julien Grall
Hi Matthew, Sorry for the late answer and thank you for testing the patch. On 11/13/18 10:43 PM, Matthew Daley wrote: On Tue, 13 Nov 2018 at 02:01, Julien Grall wrote: On 11/11/18 1:15 AM, Matthew Daley wrote: I gave this a go but unfortunately the same problem occurs (error -9s). Just to ch

Re: [Xen-devel] [PATCH] xen/arm: Stop relocating Xen

2018-11-22 Thread Julien Grall
Please ignore this one. I used the wrong e-mail address. Sorry for the noise. On 11/22/18 8:46 PM, Julien Grall wrote: At the moment, Xen is relocated towards the end of the memory. While this has the advantage to free space in low memory, the code is not compliant with the break-before-make be

[Xen-devel] [PATCH] xen/arm: Stop relocating Xen

2018-11-22 Thread Julien Grall
At the moment, Xen is relocated towards the end of the memory. While this has the advantage to free space in low memory, the code is not compliant with the break-before-make because it requires to switch between two sets of page-table. This is not entirely trivial to fix as it would require us to g

[Xen-devel] [PATCH] xen/arm: Stop relocating Xen

2018-11-22 Thread Julien Grall
At the moment, Xen is relocated towards the end of the memory. While this has the advantage to free space in low memory, the code is not compliant with the break-before-make because it requires to switch between two sets of page-table. This is not entirely trivial to fix as it would require us to g

Re: [Xen-devel] [PATCH V2] x86/p2m: constify p2m_mem_access_sanity_check()

2018-11-22 Thread Tamas K Lengyel
On Thu, Nov 22, 2018 at 5:15 AM Razvan Cojocaru wrote: > > On 11/21/18 2:09 PM, Razvan Cojocaru wrote: > > Minor improvement; simply improving code quality by using consts > > wherever reasonable. > > > > Suggested-by: Jan Beulich > > Signed-off-by: Razvan Cojocaru > > Tamas, I think we need you

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

2018-11-22 Thread osstest service owner
flight 130623 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/130623/ 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] [PATCH v6 05/11] libxl_qmp: Implementation of libxl__ev_qmp_*

2018-11-22 Thread Marek Marczykowski-Górecki
On Mon, Nov 12, 2018 at 04:49:24PM +, Anthony PERARD wrote: (...) > +/* QMP FD callbacks */ > + > +static void qmp_ev_fd_callback(libxl__egc *egc, libxl__ev_fd *ev_fd, > + int fd, short events, short revents) > +{ > +EGC_GC; > +int rc; > +libxl__json_ob

Re: [Xen-devel] [PATCH v1] x86/hvm: Generic instruction re-execution mechanism for execute faults

2018-11-22 Thread Razvan Cojocaru
On 11/22/18 7:08 PM, Roger Pau Monné wrote: > On Thu, Nov 22, 2018 at 06:52:07PM +0200, Razvan Cojocaru wrote: >> On 11/22/18 5:37 PM, Roger Pau Monné wrote: >>> I don't think you are supposed to try to pause other vcpus while >>> holding a lock, as you can see it's quite likely that you will end u

Re: [Xen-devel] [PATCH 0/4] x86/vvmx: Misc fixes

2018-11-22 Thread Andrew Cooper
Ping VT-x. On 15/11/2018 13:52, Andrew Cooper wrote: > All from code inspection > > Andrew Cooper (4): > x86/vvmx: Drop unused CASE_{GET,SET}_REG() macros > x86/vvmx: Correct the INVALID_PADDR checks for VMPTRLD/VMCLEAR > x86/vvmx: Fixes to VMWRITE emulation > x86/vvmx: Don't call vmsuccee

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

2018-11-22 Thread osstest service owner
flight 130693 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/130693/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-xsm broken build-amd64 6 xen

Re: [Xen-devel] remove the ->mapping_error method from dma_map_ops V2

2018-11-22 Thread Russell King - ARM Linux
On Thu, Nov 22, 2018 at 09:55:25AM -0800, Linus Torvalds wrote: > On Thu, Nov 22, 2018 at 9:52 AM Robin Murphy wrote: > > > > Unfortunately, with things like the top-down IOVA allocator, and 32-bit > > systems in general, "the top 4095" values may well still be valid > > addresses - > > Ugh. > >

Re: [Xen-devel] [PATCH 1/4] xen/arm: gic: Ensure we have an ISB between ack and do_IRQ()

2018-11-22 Thread Andre Przywara
On Thu, 22 Nov 2018 18:51:13 +0200 Andrii Anisov wrote: Hi, > On 20.11.18 20:47, Julien Grall wrote: > > > > > > On 20/11/2018 18:10, Andrii Anisov wrote: > >> Hello Julien, > >> > >> > >> On 19.11.18 18:42, Julien Grall wrote: > >>> There are no issue about processing IRQs before the sync

Re: [Xen-devel] [PATCH 14/14] xen/gnttab: Minor improvements to arch header files

2018-11-22 Thread Andrew Cooper
On 21/11/2018 13:21, Andrew Cooper wrote: > * Use XFREE() when appropriate > * Drop stale comments and unnecessary brackets > * Fold asm constraints > > No functional change. > > Signed-off-by: Andrew Cooper > --- > CC: Jan Beulich > CC: Wei Liu > CC: Roger Pau Monné > --- > xen/include/asm

Re: [Xen-devel] remove the ->mapping_error method from dma_map_ops V2

2018-11-22 Thread Linus Torvalds
On Thu, Nov 22, 2018 at 9:52 AM Robin Murphy wrote: > > Unfortunately, with things like the top-down IOVA allocator, and 32-bit > systems in general, "the top 4095" values may well still be valid > addresses - Ugh. > The only immediate benefit I can see is that we could distinguish cases > like

Re: [Xen-devel] remove the ->mapping_error method from dma_map_ops V2

2018-11-22 Thread Robin Murphy
On 22/11/2018 17:09, Linus Torvalds wrote: On Thu, Nov 22, 2018 at 9:07 AM Russell King - ARM Linux wrote: I'm afraid that won't work very well - 32 bit platforms with 64-bit addresses (LPAE) would have dma_addr_t as a 64-bit value, which wouldn't fit into an unsigned long. Good point. So we

Re: [Xen-devel] [PATCH 03/14] AMD/IOMMU: Fix multiple reference counting errors

2018-11-22 Thread Andrew Cooper
On 22/11/2018 14:51, Jan Beulich wrote: > >> @@ -220,12 +219,18 @@ void guest_iommu_add_ppr_log(struct domain *d, u32 >> entry[]) >> unmap_domain_page(log_base); >> >> guest_iommu_deliver_msi(d); >> + >> +out: > Please indent by at least one blank (same further down). I thought you've

Re: [Xen-devel] [PATCH] mm: fix LLVM code-generation issue

2018-11-22 Thread Julien Grall
On 11/22/18 5:04 PM, George Dunlap wrote: On 11/22/18 4:45 PM, Julien Grall wrote: Hi Roger, On 11/22/18 4:39 PM, Roger Pau Monné wrote: On Thu, Nov 22, 2018 at 04:22:34PM +, Andrew Cooper wrote: On 22/11/2018 16:07, Roger Pau Monné wrote: On Thu, Nov 22, 2018 at 03:23:41PM +, Andr

Re: [Xen-devel] [PATCH 1/4] xen/arm: gic: Ensure we have an ISB between ack and do_IRQ()

2018-11-22 Thread Julien Grall
On 11/22/18 4:51 PM, Andrii Anisov wrote: Hello Julien, Hi Andrii, On 20.11.18 20:47, Julien Grall wrote: On 20/11/2018 18:10, Andrii Anisov wrote: Hello Julien, On 19.11.18 18:42, Julien Grall wrote: There are no issue about processing IRQs before the syncs. It is the same as if an

Re: [Xen-devel] remove the ->mapping_error method from dma_map_ops V2

2018-11-22 Thread Linus Torvalds
On Thu, Nov 22, 2018 at 9:07 AM Russell King - ARM Linux wrote: > > I'm afraid that won't work very well - 32 bit platforms with 64-bit > addresses (LPAE) would have dma_addr_t as a 64-bit value, which > wouldn't fit into an unsigned long. Good point. So we'd have to have a special IS_DMA_ERR() f

Re: [Xen-devel] remove the ->mapping_error method from dma_map_ops V2

2018-11-22 Thread Russell King - ARM Linux
On Thu, Nov 22, 2018 at 09:09:47AM -0800, Linus Torvalds wrote: > On Thu, Nov 22, 2018 at 9:07 AM Russell King - ARM Linux > wrote: > > > > I'm afraid that won't work very well - 32 bit platforms with 64-bit > > addresses (LPAE) would have dma_addr_t as a 64-bit value, which > > wouldn't fit into

Re: [Xen-devel] [PATCH v1] x86/hvm: Generic instruction re-execution mechanism for execute faults

2018-11-22 Thread Roger Pau Monné
On Thu, Nov 22, 2018 at 06:52:07PM +0200, Razvan Cojocaru wrote: > On 11/22/18 5:37 PM, Roger Pau Monné wrote: > > I don't think you are supposed to try to pause other vcpus while > > holding a lock, as you can see it's quite likely that you will end up > > deadlocking because the vCPU you are tryi

Re: [Xen-devel] remove the ->mapping_error method from dma_map_ops V2

2018-11-22 Thread Russell King - ARM Linux
On Thu, Nov 22, 2018 at 08:50:47AM -0800, Linus Torvalds wrote: > On Thu, Nov 22, 2018 at 6:03 AM Christoph Hellwig wrote: > > > > The 0 return doesn't work for direct mappings that have ram at address > > zero and a lot of IOMMUs that start allocating bus space from address > > zero, so we can't

Re: [Xen-devel] [PATCH] mm: fix LLVM code-generation issue

2018-11-22 Thread George Dunlap
On 11/22/18 4:45 PM, Julien Grall wrote: > Hi Roger, > > On 11/22/18 4:39 PM, Roger Pau Monné wrote: >> On Thu, Nov 22, 2018 at 04:22:34PM +, Andrew Cooper wrote: >>> On 22/11/2018 16:07, Roger Pau Monné wrote: On Thu, Nov 22, 2018 at 03:23:41PM +, Andrew Cooper wrote: > On 22/11/

Re: [Xen-devel] remove the ->mapping_error method from dma_map_ops V2

2018-11-22 Thread Linus Torvalds
On Thu, Nov 22, 2018 at 6:03 AM Christoph Hellwig wrote: > > The 0 return doesn't work for direct mappings that have ram at address > zero and a lot of IOMMUs that start allocating bus space from address > zero, so we can't consolidate on that, but I think we can move everyone > to all-Fs, which t

Re: [Xen-devel] [PATCH v1] x86/hvm: Generic instruction re-execution mechanism for execute faults

2018-11-22 Thread Razvan Cojocaru
On 11/22/18 5:37 PM, Roger Pau Monné wrote: > I don't think you are supposed to try to pause other vcpus while > holding a lock, as you can see it's quite likely that you will end up > deadlocking because the vCPU you are trying to pause is stuck waiting > on the lock that you are holding. > > You

Re: [Xen-devel] [PATCH 1/4] xen/arm: gic: Ensure we have an ISB between ack and do_IRQ()

2018-11-22 Thread Andrii Anisov
Hello Julien, On 20.11.18 20:47, Julien Grall wrote: On 20/11/2018 18:10, Andrii Anisov wrote: Hello Julien, On 19.11.18 18:42, Julien Grall wrote: There are no issue about processing IRQs before the syncs. It is the same as if an IRQ was raised from ila different pCPUs. So why do you nee

Re: [Xen-devel] [PATCH] mm: fix LLVM code-generation issue

2018-11-22 Thread Julien Grall
Hi Roger, On 11/22/18 4:39 PM, Roger Pau Monné wrote: On Thu, Nov 22, 2018 at 04:22:34PM +, Andrew Cooper wrote: On 22/11/2018 16:07, Roger Pau Monné wrote: On Thu, Nov 22, 2018 at 03:23:41PM +, Andrew Cooper wrote: On 22/11/2018 15:20, Roger Pau Monné wrote: On Thu, Nov 22, 2018 at

[Xen-devel] [PATCH 1/3] xen/x86: delay parsing of dom0_mem parameter until needed

2018-11-22 Thread Juergen Gross
Instead of parsing the dom0_mem command line parameter as custom parameter do that only when building dom0. This will enable a later addition of specifying the memory size by fractions of the host memory size, which isn't known when doing custom parameter parsing. As this is needed later anyway mo

[Xen-devel] [PATCH 0/3] xen/x86: support setting dom0_mem depending on host size

2018-11-22 Thread Juergen Gross
Setting the memory size of dom0 on a server for the non autoballooning case requires always specification of a boot parameter today. The value to set will depend mostly on the host memory size. In order to support that scenario add the possibility to set dom0_mem depending on the amount of physica

[Xen-devel] [PATCH 2/3] xen/x86: add dom0 memory sizing variants

2018-11-22 Thread Juergen Gross
Today the memory size of dom0 can be specified only in terms of bytes (either an absolute value or "host-mem - value"). When dom0 shouldn't be auto-ballooned this requires nearly always a manual adaption of the Xen boot parameters to reflect the actual host memory size. Add more possibilities to s

[Xen-devel] [PATCH 3/3] xen/x86: add CONFIG item for default dom0 memory size

2018-11-22 Thread Juergen Gross
With being able to specify a dom0_mem value depending on host memory size make it easy for distros to specify a default dom0 size by adding a CONFIG_DOM0_MEM item which presets the dom0_mem boot parameter value. Signed-off-by: Juergen Gross --- xen/arch/x86/Kconfig | 9 + xen/arch/x

Re: [Xen-devel] [PATCH] mm: fix LLVM code-generation issue

2018-11-22 Thread Roger Pau Monné
On Thu, Nov 22, 2018 at 04:22:34PM +, Andrew Cooper wrote: > On 22/11/2018 16:07, Roger Pau Monné wrote: > > On Thu, Nov 22, 2018 at 03:23:41PM +, Andrew Cooper wrote: > >> On 22/11/2018 15:20, Roger Pau Monné wrote: > >>> On Thu, Nov 22, 2018 at 02:03:55PM +, Julien Grall wrote: >

Re: [Xen-devel] [Qemu-devel] [PATCH v5 05/24] hw: acpi: Implement XSDT support for RSDP

2018-11-22 Thread Igor Mammedov
On Wed, 21 Nov 2018 15:42:11 +0100 Samuel Ortiz wrote: > Hi Igor, > > On Thu, Nov 08, 2018 at 03:16:23PM +0100, Igor Mammedov wrote: > > On Mon, 5 Nov 2018 02:40:28 +0100 > > Samuel Ortiz wrote: > > > > > XSDT is the 64-bit version of the legacy ACPI RSDT (Root System > > > Description Tabl

Re: [Xen-devel] [PATCH] mm: fix LLVM code-generation issue

2018-11-22 Thread Andrew Cooper
On 22/11/2018 16:07, Roger Pau Monné wrote: > On Thu, Nov 22, 2018 at 03:23:41PM +, Andrew Cooper wrote: >> On 22/11/2018 15:20, Roger Pau Monné wrote: >>> On Thu, Nov 22, 2018 at 02:03:55PM +, Julien Grall wrote: Hi Jan, On 11/22/18 1:36 PM, Jan Beulich wrote: On 22

Re: [Xen-devel] [PATCH] common: make sure symbols-dummy.o gets rebuilt when needed

2018-11-22 Thread Wei Liu
On Thu, Nov 22, 2018 at 09:12:44AM -0700, Jan Beulich wrote: > >>> On 22.11.18 at 16:30, wrote: > > On Thu, Nov 22, 2018 at 03:47:41AM -0700, Jan Beulich wrote: > >> --- a/xen/arch/arm/Makefile > >> +++ b/xen/arch/arm/Makefile > >> @@ -100,9 +100,6 @@ prelink.o: $(ALL_OBJS) > >>$(LD) $(LDFLAGS

Re: [Xen-devel] [PATCH] common: make sure symbols-dummy.o gets rebuilt when needed

2018-11-22 Thread Jan Beulich
>>> On 22.11.18 at 16:30, wrote: > On Thu, Nov 22, 2018 at 03:47:41AM -0700, Jan Beulich wrote: >> --- a/xen/arch/arm/Makefile >> +++ b/xen/arch/arm/Makefile >> @@ -100,9 +100,6 @@ prelink.o: $(ALL_OBJS) >> $(LD) $(LDFLAGS) -r -o $@ $^ >> endif >> >> -$(BASEDIR)/common/symbols-dummy.o: >>

Re: [Xen-devel] [PATCH] mm: fix LLVM code-generation issue

2018-11-22 Thread Roger Pau Monné
On Thu, Nov 22, 2018 at 03:23:41PM +, Andrew Cooper wrote: > On 22/11/2018 15:20, Roger Pau Monné wrote: > > On Thu, Nov 22, 2018 at 02:03:55PM +, Julien Grall wrote: > >> Hi Jan, > >> > >> On 11/22/18 1:36 PM, Jan Beulich wrote: > >> On 22.11.18 at 14:31, wrote: > I think Julien'

Re: [Xen-devel] [PATCH 14/14] xen/gnttab: Minor improvements to arch header files

2018-11-22 Thread Jan Beulich
>>> On 21.11.18 at 14:21, wrote: > * Use XFREE() when appropriate > * Drop stale comments and unnecessary brackets > * Fold asm constraints > > No functional change. > > Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich ___ Xen-devel maili

Re: [Xen-devel] [PATCH 11/14] xen/mm: Switch mfn_to_virt()/virt_to_mfn() to using mfn_t

2018-11-22 Thread Andrew Cooper
On 22/11/2018 15:44, Jan Beulich wrote: On 21.11.18 at 14:21, wrote: >> Seemingly, a majority of users either override the helpers anyway, or have an >> mfn_t in their hands. >> >> Update the API, and adjust all users to match. In some places, use the >> unsigned long variant in places where

[Xen-devel] [PATCH 0/2] New test and refactoring

2018-11-22 Thread Wei Liu
Wei Liu (2): automation: add a qemu smoke test for clang build automation: break .gitlab-yaml into smaller files .gitlab-ci.yml | 400 +--- automation/gitlab-ci/build.yaml | 379 + automation/gitlab-ci/te

Re: [Xen-devel] [PATCH v6 08/11] libxl: QEMU startup sync based on QMP

2018-11-22 Thread Ian Jackson
Anthony PERARD writes ("Re: [PATCH v6 08/11] libxl: QEMU startup sync based on QMP"): > On Wed, Nov 21, 2018 at 04:49:06PM +, Anthony PERARD wrote: > > I wounder what to do for this. > > Maybe invent a JSON macro which would be: > > JSON(o) (libxl__json_object_to_json(gc, (o)) : ? "\"null\

[Xen-devel] [PATCH 1/2] automation: add a qemu smoke test for clang build

2018-11-22 Thread Wei Liu
Also rename the old test to have -gcc suffix. Signed-off-by: Wei Liu --- This can only apply after Roger's patch to fix clang has been applied. --- .gitlab-ci.yml | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b3ca779

Re: [Xen-devel] [PATCH 13/14] xen/gnttab: Simplify gnttab_map_frame()

2018-11-22 Thread Jan Beulich
>>> On 21.11.18 at 14:21, wrote: > * Reflow some lines to remove unnecessary line breaks. > * Factor out the gnttab_get_frame_gfn() calculation. Neither x86 nor ARM >builds seem to be able to fold the two calls, and the resulting code is far >easier to follow. > > Signed-off-by: Andrew

[Xen-devel] [PATCH 2/2] automation: break .gitlab-yaml into smaller files

2018-11-22 Thread Wei Liu
Break out files for build jobs and test jobs. Keep the top level .gitlab-ci.yaml small. Signed-off-by: Wei Liu --- .gitlab-ci.yml | 417 +--- automation/gitlab-ci/build.yaml | 379 automation/gitlab-ci/test

Re: [Xen-devel] [PATCH 12/14] xen/gnttab: Drop gnttab_create_{shared, status}_page()

2018-11-22 Thread Jan Beulich
>>> On 21.11.18 at 14:21, wrote: > share_xen_page_with_guest() is a common API. Use it directly rather than > wrapping it with unnecessary boilerplate. I was wondering a couple of times whether we should undo this "abstraction". I simply wasn't sure why this had been introduced in the first plac

Re: [Xen-devel] [alsa-devel] [PATCH 3/3] ALSA: xen-front: Use Xen common shared buffer implementation

2018-11-22 Thread Takashi Iwai
On Thu, 22 Nov 2018 11:02:30 +0100, Oleksandr Andrushchenko wrote: > > @@ -214,12 +221,19 @@ static void stream_clear(struct > xen_snd_front_pcm_stream_info *stream) > stream->out_frames = 0; > atomic_set(&stream->hw_ptr, 0); > xen_snd_front_evtchnl_pair_clear(stream->evt_pair);

Re: [Xen-devel] [PATCH 11/14] xen/mm: Switch mfn_to_virt()/virt_to_mfn() to using mfn_t

2018-11-22 Thread Jan Beulich
>>> On 21.11.18 at 14:21, wrote: > Seemingly, a majority of users either override the helpers anyway, or have an > mfn_t in their hands. > > Update the API, and adjust all users to match. In some places, use the > unsigned long variant in places where we are interacting with an external > struct

Re: [Xen-devel] [PATCH v1] x86/hvm: Generic instruction re-execution mechanism for execute faults

2018-11-22 Thread Roger Pau Monné
On Thu, Nov 22, 2018 at 05:25:02PM +0200, Razvan Cojocaru wrote: > On 11/22/18 4:49 PM, Roger Pau Monné wrote: > > On Thu, Nov 22, 2018 at 02:48:07PM +0200, Razvan Cojocaru wrote: > >> On 11/22/18 12:58 PM, Roger Pau Monné wrote: > >>> On Thu, Nov 22, 2018 at 12:14:59PM +0200, Razvan Cojocaru wrote

Re: [Xen-devel] [PATCH 10/14] x86/mm: Switch {get, put}_gfn() infrastructure to using gfn_t

2018-11-22 Thread Jan Beulich
>>> On 21.11.18 at 14:21, wrote: > --- a/xen/arch/x86/cpu/mcheck/vmce.c > +++ b/xen/arch/x86/cpu/mcheck/vmce.c > @@ -512,7 +512,7 @@ int fill_vmsr_data(struct mcinfo_bank *mc_bank, struct > domain *d, > * XXX following situation missed: > * PoD, Foreign mapped, Granted, Shared > */ > -int u

Re: [Xen-devel] [PATCH] common: make sure symbols-dummy.o gets rebuilt when needed

2018-11-22 Thread Wei Liu
On Thu, Nov 22, 2018 at 03:47:41AM -0700, Jan Beulich wrote: > The per-arch top level make files don't record any dependencies for the > file, so its mere existence is enough for make to consider it up-to- > date. As of ab3e5f5ff9 ("xsplice, symbols: Implement fast symbol names > -> virtual address

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

2018-11-22 Thread osstest service owner
flight 130690 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/130690/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-xsm broken build-amd64 6 xen

Re: [Xen-devel] [PATCH v1] x86/hvm: Generic instruction re-execution mechanism for execute faults

2018-11-22 Thread Razvan Cojocaru
On 11/22/18 4:49 PM, Roger Pau Monné wrote: > On Thu, Nov 22, 2018 at 02:48:07PM +0200, Razvan Cojocaru wrote: >> On 11/22/18 12:58 PM, Roger Pau Monné wrote: >>> On Thu, Nov 22, 2018 at 12:14:59PM +0200, Razvan Cojocaru wrote: On 11/22/18 12:05 PM, Roger Pau Monné wrote: > On Wed, Nov 21,

Re: [Xen-devel] [PATCH] mm: fix LLVM code-generation issue

2018-11-22 Thread Andrew Cooper
On 22/11/2018 15:20, Roger Pau Monné wrote: > On Thu, Nov 22, 2018 at 02:03:55PM +, Julien Grall wrote: >> Hi Jan, >> >> On 11/22/18 1:36 PM, Jan Beulich wrote: >> On 22.11.18 at 14:31, wrote: I think Julien's point is that without explicitly barriers, CPU0's update to system_sta

Re: [Xen-devel] [PATCH] mm: fix LLVM code-generation issue

2018-11-22 Thread Roger Pau Monné
On Thu, Nov 22, 2018 at 02:03:55PM +, Julien Grall wrote: > Hi Jan, > > On 11/22/18 1:36 PM, Jan Beulich wrote: > > > > > On 22.11.18 at 14:31, wrote: > > > I think Julien's point is that without explicitly barriers, CPU0's > > > update to system_state may not be visible on CPU1, even though

Re: [Xen-devel] [PATCH 09/14] x86/p2m: Switch the two_gfns infrastructure to using gfn_t

2018-11-22 Thread Jan Beulich
>>> On 21.11.18 at 14:21, wrote: > --- a/xen/arch/x86/mm/mem_sharing.c > +++ b/xen/arch/x86/mm/mem_sharing.c > @@ -901,8 +901,8 @@ static int share_pages(struct domain *sd, gfn_t sgfn, > shr_handle_t sh, > struct two_gfns tg; > struct rmap_iterator ri; > > -get_two_gfns(sd, gfn_x(

Re: [Xen-devel] [PATCH 08/14] xen/memory: Drop ARM put_gfn() stub

2018-11-22 Thread Jan Beulich
>>> On 21.11.18 at 14:21, wrote: > On x86, get_gfn_*() and put_gfn() are reference counting pairs. All the > get_gfn_*() functions are called from within CONFIG_X86 sections, but > put_gfn() is stubbed out on ARM. > > As a result, the common code reads as if ARM is dropping references it never >

Re: [Xen-devel] [Qemu-devel] [PATCH v5 01/24] hw: i386: Decouple the ACPI build from the PC machine type

2018-11-22 Thread Igor Mammedov
On Wed, 21 Nov 2018 15:42:37 +0100 Samuel Ortiz wrote: > Hi Igor, > > On Fri, Nov 09, 2018 at 03:23:16PM +0100, Igor Mammedov wrote: > > On Mon, 5 Nov 2018 02:40:24 +0100 > > Samuel Ortiz wrote: > > > > > ACPI tables are platform and machine type and even architecture > > > agnostic, and as

Re: [Xen-devel] [PATCH 07/14] x86/p2m: Coding style cleanup

2018-11-22 Thread Jan Beulich
>>> On 21.11.18 at 14:21, wrote: > @@ -776,7 +776,7 @@ guest_physmap_add_entry(struct domain *d, gfn_t gfn, > mfn_t mfn, >&a, 0, NULL, NULL); > if ( p2m_is_shared(ot) ) > { > -/* Do an unshare to cleanly take care of all corner > +

Re: [Xen-devel] [PATCH 06/14] x86/hvm: Make the altp2m locking easier to follow

2018-11-22 Thread Jan Beulich
>>> On 21.11.18 at 14:21, wrote: > Drop the ap2m_active boolean, and consistently use the unlocking form: > > if ( p2m != hostp2m ) >__put_gfn(p2m, gfn); > __put_gfn(hostp2m, gfn); > > which makes it clear that we always unlock the altp2m's gfn if it is in use, > and always unlock th

Re: [Xen-devel] [PATCH 05/14] x86/p2m: Don't overwrite p2m_altp2m_lazy_copy()'s callers p2m pointer

2018-11-22 Thread Jan Beulich
>>> On 21.11.18 at 14:21, wrote: > The final parameter to p2m_altp2m_lazy_copy() appears to be unnecessary, and > results in very hard-to-follow code. Have the sole caller set its local p2m > pointer appropriately, and drop the parameter. > > With that done, a level of indirection of ap2m can be

Re: [Xen-devel] [PATCH 04/14] x86/p2m: Fix locking in p2m_altp2m_lazy_copy()

2018-11-22 Thread Jan Beulich
>>> On 21.11.18 at 14:21, wrote: > --- a/xen/arch/x86/mm/p2m.c > +++ b/xen/arch/x86/mm/p2m.c > @@ -2184,24 +2184,29 @@ bool_t p2m_altp2m_lazy_copy(struct vcpu *v, paddr_t > gpa, > unsigned long mask; > mfn_t mfn; > int rv; > +bool ret; > > *ap2m = p2m_get_altp2m(v); >

Re: [Xen-devel] [PATCH] mm: fix LLVM code-generation issue

2018-11-22 Thread Roger Pau Monné
On Thu, Nov 22, 2018 at 12:23:22PM +, Andrew Cooper wrote: > On 22/11/2018 12:03, Roger Pau Monne wrote: > > LLVM code generation can attempt to perform a load from a variable in > > the next condition of an expression under certain circumstances, thus > > turning the following condition: > > >

Re: [Xen-devel] [PATCH 03/14] AMD/IOMMU: Fix multiple reference counting errors

2018-11-22 Thread Jan Beulich
>>> On 21.11.18 at 14:21, wrote: > Most of these issues would be XSAs if these paths were accessible to guests. > > First, override the {get,put}_gfn() helpers to use gfn_t, which was the > original purpose of this patch. > > guest_iommu_get_table_mfn() has two bugs. First, it gets a ref on one

Re: [Xen-devel] [PATCH 1/2] arm/irq: replace an odd tab with spaces

2018-11-22 Thread Julien Grall
Hi, Please provide a cover letter when you send multiple patches together. On 11/16/18 4:24 PM, Andrii Anisov wrote: From: Andrii Anisov Signed-off-by: Andrii Anisov Acked-by: Julien Grall --- xen/arch/arm/irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/

Re: [Xen-devel] [PATCH v1] x86/hvm: Generic instruction re-execution mechanism for execute faults

2018-11-22 Thread Roger Pau Monné
On Thu, Nov 22, 2018 at 02:48:07PM +0200, Razvan Cojocaru wrote: > On 11/22/18 12:58 PM, Roger Pau Monné wrote: > > On Thu, Nov 22, 2018 at 12:14:59PM +0200, Razvan Cojocaru wrote: > >> On 11/22/18 12:05 PM, Roger Pau Monné wrote: > >>> On Wed, Nov 21, 2018 at 08:55:48PM +0200, Razvan Cojocaru wrot

Re: [Xen-devel] [PATCH 01/14] x86/soft-reset: Drop gfn reference after calling get_gfn_query()

2018-11-22 Thread Jan Beulich
>>> On 21.11.18 at 14:21, wrote: > get_gfn_query() internally takes the p2m lock, and this error path leaves it > locked. > > This wasn't included in XSA-277 because the error path can only be triggered > by a carefully timed phymap operation concurrent with the domain being paused > and the tool

Re: [Xen-devel] [PATCH 02/14] x86/mem-sharing: Don't leave the altp2m lock held when nominating a page

2018-11-22 Thread Jan Beulich
>>> On 21.11.18 at 14:21, wrote: > get_gfn_type_access() internally takes the p2m lock, and nothing ever unlocks > it. Switch to using the unlocked accessor instead. > > This wasn't included in XSA-277 because neither mem-sharing nor altp2m are > supported. > > Signed-off-by: Andrew Cooper Sa

Re: [Xen-devel] [PATCH v2 5/5] x86/pv: Expose RDTSCP to PV guests

2018-11-22 Thread Jan Beulich
>>> On 20.11.18 at 15:37, wrote: > The final remnanat of PVRDTSCP is that we would emulate RDTSCP even on > hardware which lacked the instruction. RDTSCP is available on almost all > 64-bit x86 hardware. > > Remove this emulation, drop the TSC_MODE_PVRDTSCP constant, and allow RDTSCP > in a PV g

Re: [Xen-devel] [PATCH v6 08/11] libxl: QEMU startup sync based on QMP

2018-11-22 Thread Anthony PERARD
On Wed, Nov 21, 2018 at 04:49:06PM +, Anthony PERARD wrote: > On Fri, Nov 16, 2018 at 12:14:43PM +, Ian Jackson wrote: > > Anthony PERARD writes ("[PATCH v6 08/11] libxl: QEMU startup sync based on > > QMP"): > > > +LOGD(DEBUG, ev->domid, ".. instead, got: %s", > > > +

Re: [Xen-devel] [PATCH 13/14] xen/gnttab: Simplify gnttab_map_frame()

2018-11-22 Thread Julien Grall
Hi Andrew, On 11/21/18 1:21 PM, Andrew Cooper wrote: * Reflow some lines to remove unnecessary line breaks. * Factor out the gnttab_get_frame_gfn() calculation. Neither x86 nor ARM builds seem to be able to fold the two calls, and the resulting code is far easier to follow. Signed-

Re: [Xen-devel] [PATCH 12/14] xen/gnttab: Drop gnttab_create_{shared, status}_page()

2018-11-22 Thread Julien Grall
Hi Andrew, On 11/21/18 1:21 PM, Andrew Cooper wrote: share_xen_page_with_guest() is a common API. Use it directly rather than wrapping it with unnecessary boilerplate. Signed-off-by: Andrew Cooper Acked-by: Julien Grall Cheers, --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monné CC:

Re: [Xen-devel] [PATCH 2/3] drm/xen-front: Use Xen common shared buffer implementation

2018-11-22 Thread Daniel Vetter
On Thu, Nov 22, 2018 at 12:02:29PM +0200, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > Use page directory based shared buffer implementation > now available as common code for Xen frontend drivers. > > Signed-off-by: Oleksandr Andrushchenko > --- > drivers/gpu/drm/xen/Kco

Re: [Xen-devel] [PATCH 11/14] xen/mm: Switch mfn_to_virt()/virt_to_mfn() to using mfn_t

2018-11-22 Thread Julien Grall
Hi Andrew, On 11/21/18 1:21 PM, Andrew Cooper wrote: Seemingly, a majority of users either override the helpers anyway, or have an mfn_t in their hands. Update the API, and adjust all users to match. In some places, use the unsigned long variant in places where we are interacting with an exter

Re: [Xen-devel] [PATCH] x86/atomic: Improvements and simplifications to assembly constraints

2018-11-22 Thread Jan Beulich
>>> On 22.11.18 at 14:58, wrote: > On 22/11/2018 13:19, Jan Beulich wrote: > On 22.11.18 at 13:38, wrote: >>> On 22/11/2018 08:57, Jan Beulich wrote: >>> On 21.11.18 at 20:37, wrote: > @@ -79,31 +72,27 @@ static always_inline unsigned long __cmpxchg( > switch ( size )

Re: [Xen-devel] [RFC 00/16] xen/arm: Implement Set/Way operations

2018-11-22 Thread Julien Grall
Hi, On 10/8/18 7:33 PM, Julien Grall wrote: Julien Grall (16): xen/arm: Introduce helpers to get/set an MFN from/to an LPAE entry xen/arm: Allow lpae_is_{table, mapping} helpers to work on invalid entry xen/arm: guest_walk_tables: Switch the return to bool xen/arm: p2m: Introduc

Re: [Xen-devel] [PATCH V9 2/7] x86/p2m: switch global_logdirty from bool_t to bool

2018-11-22 Thread Wei Liu
On Thu, Nov 22, 2018 at 01:40:23PM +0200, Razvan Cojocaru wrote: > Signed-off-by: Razvan Cojocaru Reviewed-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [Qemu-devel] [PATCH] Xen PCI passthrough: fix passthrough failure when irq map failure

2018-11-22 Thread Roger Pau Monné
On Thu, Nov 22, 2018 at 08:11:20AM -0500, Zhao Yan wrote: > On Thu, Oct 18, 2018 at 03:56:36PM +0100, Roger Pau Monné wrote: > > On Thu, Oct 18, 2018 at 08:22:41AM +, Zhao, Yan Y wrote: > > > Hi > > > The background for this patch is that: for some pci device, even it's > > > PCI_INTERRUPT_PIN

Re: [Xen-devel] [PATCH 08/14] xen/memory: Drop ARM put_gfn() stub

2018-11-22 Thread Julien Grall
Hi Andrew, On 11/21/18 1:21 PM, Andrew Cooper wrote: On x86, get_gfn_*() and put_gfn() are reference counting pairs. All the get_gfn_*() functions are called from within CONFIG_X86 sections, but put_gfn() is stubbed out on ARM. As a result, the common code reads as if ARM is dropping reference

[Xen-devel] [PATCH 22/24] iommu/dma-iommu: remove the mapping_error dma_map_ops method

2018-11-22 Thread Christoph Hellwig
Return DMA_MAPPING_ERROR instead of 0 on a dma mapping failure and let the core dma-mapping code handle the rest. Signed-off-by: Christoph Hellwig --- arch/arm64/mm/dma-mapping.c | 7 +++ drivers/iommu/dma-iommu.c | 23 --- include/linux/dma-iommu.h | 1 - 3 files c

[Xen-devel] [PATCH 19/24] iommu: remove the mapping_error dma_map_ops method

2018-11-22 Thread Christoph Hellwig
Return DMA_MAPPING_ERROR instead of 0 on a dma mapping failure and let the core dma-mapping code handle the rest. Note that the existing code used AMD_IOMMU_MAPPING_ERROR to check from a 0 return from the IOVA allocator, which is replaced with an explicit 0 as in the implementation and other users

[Xen-devel] [PATCH 24/24] dma-mapping: remove the mapping_error dma_map_ops method

2018-11-22 Thread Christoph Hellwig
No users left except for vmd which just forwards it. Also switch dma_mapping_error to an explicit bool return value. Signed-off-by: Christoph Hellwig --- drivers/pci/controller/vmd.c | 6 -- include/linux/dma-mapping.h | 13 ++--- 2 files changed, 2 insertions(+), 17 deletions(-)

  1   2   >