Re: [Xen-devel] [PATCH SpectreV1+L1TF v4 05/11] common/grant_table: block speculative out-of-bound accesses

2019-01-30 Thread Norbert Manthey
On 1/29/19 16:11, Jan Beulich wrote: On 29.01.19 at 14:47, wrote: >> On 1/29/19 10:46, Jan Beulich wrote: >> Norbert Manthey 01/29/19 9:35 AM >>> I am aware that both version use the same base array, and access it via different macros, which essentially partition the array base

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

2019-01-30 Thread Juergen Gross
On 29/01/2019 18:08, osstest service owner wrote: > flight 132544 xen-unstable real [real] > http://logs.test-lab.xenproject.org/osstest/logs/132544/ > > Regressions :-( > > Tests which did not succeed and are blocking, > including tests which could not be run: > test-amd64-amd64-xl-qemut-stubdo

[Xen-devel] [PATCH v2 2/2] x86/xen: dont add memory above max allowed allocation

2019-01-30 Thread Juergen Gross
Don't allow memory to be added above the allowed maximum allocation limit set by Xen. Trying to do so would result in cases like the following: [ 584.559652] [ cut here ] [ 584.564897] WARNING: CPU: 2 PID: 1 at ../arch/x86/xen/multicalls.c:129 xen_alloc_pte+0x1c7/0x390(

[Xen-devel] [PATCH v2 0/2] x86: respect memory size limits

2019-01-30 Thread Juergen Gross
On a customer system running Xen a boot problem was observed due to the kernel not respecting the memory size limit imposed by the Xen hypervisor. During analysis I found the same problem should be able to occur on bare metal in case the memory would be limited via the "mem=" boot parameter. The

[Xen-devel] [PATCH v2 1/2] x86: respect memory size limiting via mem= parameter

2019-01-30 Thread Juergen Gross
When limiting memory size via kernel parameter "mem=" this should be respected even in case of memory made accessible via a PCI card. Today this kind of memory won't be made usable in initial memory setup as the memory won't be visible in E820 map, but it might be added when adding PCI devices due

Re: [Xen-devel] [PATCH v2] drm/xen-front: Make shmem backed display buffer coherent

2019-01-30 Thread Oleksandr Andrushchenko
Dropped in favor of https://lkml.org/lkml/2019/1/29/910 On 1/24/19 5:02 PM, Julien Grall wrote: > > > On 24/01/2019 14:34, Oleksandr Andrushchenko wrote: >> Hello, Julien! > > Hi, > >> On 1/22/19 1:44 PM, Julien Grall wrote: >>> >>> >>> On 1/22/19 10:28 AM, Oleksandr Andrushchenko wrote: Hell

Re: [Xen-devel] [PATCH] drm/xen-front: Fix mmap attributes for display buffers

2019-01-30 Thread Oleksandr Andrushchenko
On 1/29/19 9:07 PM, Julien Grall wrote: > Hi Oleksandr, > > On 1/29/19 3:04 PM, Oleksandr Andrushchenko wrote: >> From: Oleksandr Andrushchenko >> >> When GEM backing storage is allocated those are normal pages, >> so there is no point using pgprot_writecombine while mmaping. >> This fixes mismatc

Re: [Xen-devel] [PATCH 2/3] x86/pvh: Fixes to convert_pvh_info()

2019-01-30 Thread Jan Beulich
>>> On 29.01.19 at 21:43, wrote: > On 23/01/2019 11:35, Jan Beulich wrote: > On 21.01.19 at 16:37, wrote: >>> --- a/xen/arch/x86/guest/pvh-boot.c >>> +++ b/xen/arch/x86/guest/pvh-boot.c >>> @@ -38,12 +38,20 @@ static const char *__initdata pvh_loader = "PVH > Directboot"; >>> static void __

Re: [Xen-devel] [PATCH 09/15] x86/pv: Add Hygon Dhyana support to emulate MSRs access

2019-01-30 Thread Pu Wen
On 2019/1/26 1:48, Jan Beulich wrote: On 20.12.18 at 14:14, wrote: >> The Hygon Dhyana CPU supports lots of MSRs(such as perf event select and >> counter MSRs, hardware configuration MSR, MMIO configuration base address >> MSR, MPERF/APERF MSRs) as AMD CPU does, so add Hygon Dhyana support to

Re: [Xen-devel] [PATCH] x86/pv-shim: Avoid a command line parameter warning for CONFIG_PV_SHIM_EXCLUSIVE builds

2019-01-30 Thread Jan Beulich
>>> On 29.01.19 at 20:07, wrote: > --- a/xen/arch/x86/pv/shim.c > +++ b/xen/arch/x86/pv/shim.c > @@ -40,7 +40,11 @@ > #undef virt_to_mfn > #define virt_to_mfn(va) _mfn(__virt_to_mfn(va)) > > -#ifndef CONFIG_PV_SHIM_EXCLUSIVE > +#ifdef CONFIG_PV_SHIM_EXCLUSIVE > +/* Tolerate "pv-shim" being pas

Re: [Xen-devel] [PATCH] x86/pv-shim: Avoid a command line parameter warning for CONFIG_PV_SHIM_EXCLUSIVE builds

2019-01-30 Thread Andrew Cooper
On 30/01/2019 09:57, Jan Beulich wrote: On 29.01.19 at 20:07, wrote: >> --- a/xen/arch/x86/pv/shim.c >> +++ b/xen/arch/x86/pv/shim.c >> @@ -40,7 +40,11 @@ >> #undef virt_to_mfn >> #define virt_to_mfn(va) _mfn(__virt_to_mfn(va)) >> >> -#ifndef CONFIG_PV_SHIM_EXCLUSIVE >> +#ifdef CONFIG_PV_

Re: [Xen-devel] [PATCH 12/15] x86/traps: Add Hygon Dhyana support

2019-01-30 Thread Pu Wen
On 2019/1/29 19:11, Jan Beulich wrote: Pu Wen 12/20/18 2:16 PM >>> --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -1973,6 +1973,8 @@ static unsigned int calc_ler_msr(void) return MSR_IA32_LASTINTFROMIP; } break; +case X86_VENDOR_HYGON: +return MSR_IA32_LASTINTFROMIP; Wit

Re: [Xen-devel] [PATCH] x86/pv-shim: Avoid a command line parameter warning for CONFIG_PV_SHIM_EXCLUSIVE builds

2019-01-30 Thread Andrew Cooper
On 30/01/2019 10:01, Andrew Cooper wrote: > On 30/01/2019 09:57, Jan Beulich wrote: > On 29.01.19 at 20:07, wrote: >>> --- a/xen/arch/x86/pv/shim.c >>> +++ b/xen/arch/x86/pv/shim.c >>> @@ -40,7 +40,11 @@ >>> #undef virt_to_mfn >>> #define virt_to_mfn(va) _mfn(__virt_to_mfn(va)) >>> >>> -#i

Re: [Xen-devel] [PATCH] x86/pv-shim: Avoid a command line parameter warning for CONFIG_PV_SHIM_EXCLUSIVE builds

2019-01-30 Thread Jan Beulich
>>> On 30.01.19 at 11:01, wrote: > On 30/01/2019 09:57, Jan Beulich wrote: > On 29.01.19 at 20:07, wrote: >>> --- a/xen/arch/x86/pv/shim.c >>> +++ b/xen/arch/x86/pv/shim.c >>> @@ -40,7 +40,11 @@ >>> #undef virt_to_mfn >>> #define virt_to_mfn(va) _mfn(__virt_to_mfn(va)) >>> >>> -#ifndef CO

Re: [Xen-devel] [PATCH 09/15] x86/pv: Add Hygon Dhyana support to emulate MSRs access

2019-01-30 Thread Jan Beulich
>>> On 30.01.19 at 10:52, wrote: > On 2019/1/26 1:48, Jan Beulich wrote: > On 20.12.18 at 14:14, wrote: >>> The Hygon Dhyana CPU supports lots of MSRs(such as perf event select and >>> counter MSRs, hardware configuration MSR, MMIO configuration base address >>> MSR, MPERF/APERF MSRs) as AMD

[Xen-devel] [xen-unstable-coverity test] 132615: regressions - ALL FAIL

2019-01-30 Thread osstest service owner
flight 132615 xen-unstable-coverity real [real] http://logs.test-lab.xenproject.org/osstest/logs/132615/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: coverity-amd647 coverity-upload fail REGR. vs. 132424 version t

[Xen-devel] [PATCH for-4.12 0/8] pvh/dom0/shadow/amd fixes

2019-01-30 Thread Roger Pau Monne
Hello, The following series contains fixes that should be considered for 4.12. I'm not sure whether patches 6, 7 and 8 should be aimed at 4.12, they contain changes to the p2m code that could affect HVM guests. Note that without those changes a PVH dom0 running on AMD hardware will be unable to c

[Xen-devel] [PATCH for-4.12 4/8] x86/shadow: alloc enough pages so initialization doesn't fail

2019-01-30 Thread Roger Pau Monne
Current code in shadow_enable will allocate a shadow pool of 4MB regardless of the values of sh_min_allocation or shadow_min_acceptable_pages, which means that calls to shadow_alloc_p2m_page can fail even after the check and allocation done just above. Fix this by always checking that the pool is

[Xen-devel] [PATCH for-4.12 2/8] amd/ntp: remove assert that prevents creating 2M MMIO entries

2019-01-30 Thread Roger Pau Monne
The assert was originally added to make sure that higher order regions (> PAGE_ORDER_4K) could not be used to bypass the mmio_ro_ranges check performed by p2m_type_to_flags. This however is already checked in set_mmio_p2m_entry, which makes sure that higher order mappings don't overlap with mmio_r

[Xen-devel] [PATCH for-4.12 1/8] dom0/pvh: align allocation and mapping order to start address

2019-01-30 Thread Roger Pau Monne
Due to the recent changes in the iommu mapping logic, the start addresses provided need to be aligned to the order intended to be mapped. dom0 PVH domain builder didn't take this into account when populating the p2m, fix this by making sure the order is chosen so that the start address is aligned

[Xen-devel] [PATCH for-4.12 3/8] iommu/pvh: add reserved regions below 1MB to the iommu page tables

2019-01-30 Thread Roger Pau Monne
Reserved memory ranges below 1MB on a PVH dom0 are added to the HAP page tables, but due to this being done before setting up the IOMMU the non RAM regions in those areas are not added to the IOMMU page tables. Fix this by making sure any reserved regions below 1MB are added to the IOMMU page table

[Xen-devel] [PATCH 8/8] npt/shadow: allow getting foreign page table entries

2019-01-30 Thread Roger Pau Monne
Current npt and shadow code to get an entry will always return INVALID_MFN for foreign entries. Allow to return the entry mfn for foreign entries, like it's done for grant table entries. Signed-off-by: Roger Pau Monné --- Cc: George Dunlap Cc: Jan Beulich Cc: Andrew Cooper Cc: Wei Liu --- xe

[Xen-devel] [PATCH for-4.12 5/8] pvh/dom0: warn when dom0_mem is not set to a fixed value

2019-01-30 Thread Roger Pau Monne
There have been several reports of the dom0 builder running out of memory when buildign a PVH dom0 without havingf specified a dom0_mem value. Print a warning message if dom0_mem is not set to a fixed value when booting in PVH mode. Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich Cc: Andrew C

[Xen-devel] [PATCH 6/8] x86/mm: split p2m ioreq server pages special handling into helper

2019-01-30 Thread Roger Pau Monne
So that it can be shared by both ept, npt and shadow code, instead of duplicating it. No change in functionality intended. Signed-off-by: Roger Pau Monné --- Cc: George Dunlap Cc: Jan Beulich Cc: Andrew Cooper Cc: Wei Liu Cc: Jun Nakajima Cc: Kevin Tian Cc: Paul Durrant --- xen/arch/x86/

[Xen-devel] [PATCH 7/8] x86/mm: handle foreign mappings in p2m_entry_modify

2019-01-30 Thread Roger Pau Monne
So that the specific handling can be removed from atomic_write_ept_entry and be shared with npt and shadow code. This commit also removes the check that prevent non-ept PVH dom0 from mapping foreign pages. Signed-off-by: Roger Pau Monné --- Cc: George Dunlap Cc: Jan Beulich Cc: Andrew Cooper

Re: [Xen-devel] [PATCH 13/15] x86/xstate: Add Hygon Dhyana support

2019-01-30 Thread Pu Wen
On 2019/1/29 19:15, Jan Beulich wrote: Pu Wen 12/20/18 2:16 PM >>> >> --- a/xen/arch/x86/xstate.c >> +++ b/xen/arch/x86/xstate.c >> @@ -369,7 +369,7 @@ void xrstor(struct vcpu *v, uint64_t mask) >> unsigned int faults, prev_faults; > > >> /* >> - * AMD CPUs don't save/restore FDP/FIP/FO

Re: [Xen-devel] [PATCH v2 2/2] x86/xen: dont add memory above max allowed allocation

2019-01-30 Thread William Kucharski
> On Jan 30, 2019, at 1:22 AM, Juergen Gross wrote: > > +#ifdef CONFIG_MEMORY_HOTPLUG > + /* > + * Don't allow adding memory not in E820 map while > + * booting the system. Once the balloon driver is up > + * it

Re: [Xen-devel] RT Xen on ARM - R-Car series

2019-01-30 Thread LOPEZ, FUENTES NACARINO Jairo Eduardo
Hello Andrii, 2019年1月29日(火) 22:30 Andrii Anisov : > Hello Jairo, > > On 29.01.19 17:30, LOPEZ, FUENTES NACARINO Jairo Eduardo wrote: > > (XEN) Checking for initrd in /chosen > > (XEN) RAM: 4800 - 7fff > > (XEN) RAM: 0006 - 00063fff > > (XEN) RAM: 00

[Xen-devel] [linux-3.18 bisection] complete test-amd64-amd64-xl-qemuu-dmrestrict-amd64-dmrestrict

2019-01-30 Thread osstest service owner
branch xen-unstable xenbranch xen-unstable job test-amd64-amd64-xl-qemuu-dmrestrict-amd64-dmrestrict testid xen-boot Tree: linux git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git Tree: linuxfirmware git://xenbits.xen.org/osstest/linux-firmware.git Tree: qemu git://xenbits.xen.

Re: [Xen-devel] [PATCH] x86/pv-shim: Avoid a command line parameter warning for CONFIG_PV_SHIM_EXCLUSIVE builds

2019-01-30 Thread Jan Beulich
>>> On 30.01.19 at 11:07, wrote: > On 30/01/2019 10:01, Andrew Cooper wrote: >> On 30/01/2019 09:57, Jan Beulich wrote: >> On 29.01.19 at 20:07, wrote: --- a/xen/arch/x86/pv/shim.c +++ b/xen/arch/x86/pv/shim.c @@ -40,7 +40,11 @@ #undef virt_to_mfn #define virt_to_mf

Re: [Xen-devel] [Xen 4.12 bug] HVM/PVH boot confusion

2019-01-30 Thread Roger Pau Monné
Adding Anthony who likely knows more about all this since it's closely related to QEMU. On Tue, Jan 29, 2019 at 07:49:51PM +, Andrew Cooper wrote: > Hello, > > Given the following vm.cfg file: > > name="vm" > type="hvm" > > vcpus=4 > memory=1024 > > firmware_override="/root/xen-syms" > >

Re: [Xen-devel] [PATCH SpectreV1+L1TF v4 05/11] common/grant_table: block speculative out-of-bound accesses

2019-01-30 Thread Jan Beulich
>>> On 30.01.19 at 09:06, wrote: > On 1/29/19 16:11, Jan Beulich wrote: > On 29.01.19 at 14:47, wrote: >>> On 1/29/19 10:46, Jan Beulich wrote: >>> Norbert Manthey 01/29/19 9:35 AM >>> > I am aware that both version use the same base array, and access it via > different macros, w

Re: [Xen-devel] [PATCH for-4.12] arm: gic: deactivate sgi immediately after eoi

2019-01-30 Thread Julien Grall
On 30/01/2019 01:21, Peng Fan wrote: Hi Julien Hi Peng, -Original Message- From: Julien Grall [mailto:julien.gr...@arm.com] Sent: 2019年1月29日 23:57 To: Peng Fan ; sstabell...@kernel.org; jgr...@suse.com Cc: xen-devel@lists.xenproject.org; Andre Przywara Subject: Re: [PATCH for-4.12]

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

2019-01-30 Thread osstest service owner
flight 132575 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/132575/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-libvirt-pair 10 xen-boot/src_hostfail REGR. vs. 132422 test-amd64-i386-xl

Re: [Xen-devel] [Xen 4.12 bug] HVM/PVH boot confusion

2019-01-30 Thread Wei Liu
On Tue, Jan 29, 2019 at 07:49:51PM +, Andrew Cooper wrote: > Hello, > > Given the following vm.cfg file: > > name="vm" > type="hvm" > > vcpus=4 > memory=1024 > > firmware_override="/root/xen-syms" > > kernel="/boot/vmlinuz-4.4-xen" > ramdisk="/boot/initrd-4.4.0+10.img" > > cmdline="consol

Re: [Xen-devel] [PATCH] arm: gic-v3: clear GICR active interrupts

2019-01-30 Thread Julien Grall
Hi Replying to this thread again. On 22/01/2019 10:54, Julien Grall wrote: Hi Peng, The commit title is a bit confusing. It suggests that all interrupts should be deactivated at boot, however you are only deactivating the SGIs. On 1/22/19 2:35 AM, Peng Fan wrote: On i.MX8, we implemented p

Re: [Xen-devel] [Xen 4.12 bug] HVM/PVH boot confusion

2019-01-30 Thread Anthony PERARD
On Wed, Jan 30, 2019 at 12:25:20PM +0100, Roger Pau Monné wrote: > Adding Anthony who likely knows more about all this since it's closely > related to QEMU. > > On Tue, Jan 29, 2019 at 07:49:51PM +, Andrew Cooper wrote: > > Hello, > > > > Given the following vm.cfg file: > > > > name="vm" >

Re: [Xen-devel] RT Xen on ARM - R-Car series

2019-01-30 Thread Julien Grall
Hi, On 30/01/2019 20:23, LOPEZ, FUENTES NACARINO Jairo Eduardo wrote: My e-mail client thinks the e-mail was sent from the future. Can you make sure your timezone is set correctly? [    0.682996] CPU features: detected feature: Kernel page table isolation (KPTI) (XEN) p2m.c:1844: d0v1: Fai

Re: [Xen-devel] [Xen 4.12 bug] HVM/PVH boot confusion

2019-01-30 Thread Andrew Cooper
On 30/01/2019 11:25, Roger Pau Monné wrote: > Adding Anthony who likely knows more about all this since it's closely > related to QEMU. > > On Tue, Jan 29, 2019 at 07:49:51PM +, Andrew Cooper wrote: >> Hello, >> >> Given the following vm.cfg file: >> >> name="vm" >> type="hvm" >> >> vcpus=4 >>

Re: [Xen-devel] [Xen 4.12 bug] HVM/PVH boot confusion

2019-01-30 Thread Andrew Cooper
On 30/01/2019 11:59, Wei Liu wrote: > On Tue, Jan 29, 2019 at 07:49:51PM +, Andrew Cooper wrote: >> Hello, >> >> Given the following vm.cfg file: >> >> name="vm" >> type="hvm" >> >> vcpus=4 >> memory=1024 >> >> firmware_override="/root/xen-syms" >> >> kernel="/boot/vmlinuz-4.4-xen" >> ramdisk="

Re: [Xen-devel] [PATCH for-4.12 1/8] dom0/pvh: align allocation and mapping order to start address

2019-01-30 Thread Wei Liu
On Wed, Jan 30, 2019 at 11:36:39AM +0100, Roger Pau Monne wrote: > Due to the recent changes in the iommu mapping logic, the start > addresses provided need to be aligned to the order intended to be > mapped. > Can you reference some commits here? What would happen if the address is not aligned?

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

2019-01-30 Thread Jan Beulich
>>> On 29.01.19 at 19:55, wrote: > On 29/01/2019 18:49, osstest service owner wrote: >> flight 132484 xen-4.9-testing real [real] >> http://logs.test-lab.xenproject.org/osstest/logs/132484/ >> >> Regressions :-( >> >> Tests which did not succeed and are blocking, >> including tests which could no

Re: [Xen-devel] [Xen 4.12 bug] HVM/PVH boot confusion

2019-01-30 Thread Wei Liu
On Wed, Jan 30, 2019 at 12:30:44PM +, Andrew Cooper wrote: > >> There are at least two bugs here. > >> > >> 1) RSDP was a late addition to the PVH boot protocol.  Xen's PVH > >> entrypoint must not mandate its existence, because there are releases of > >> the domain builder which don't provide

[Xen-devel] [PATCH v7 20/28] x86/asm: make some functions local

2019-01-30 Thread Jiri Slaby
There is a couple of assembly functions, which are invoked only locally in the file they are defined. In C, we mark them "static". In assembly, annotate them using SYM_{FUNC,CODE}_START_LOCAL (and switch their ENDPROC to SYM_{FUNC,CODE}_END too). Whether we use FUNC or CODE, depends on whether ENDP

[Xen-devel] [PATCH v7 23/28] x86_64/asm: change all ENTRY+END to SYM_CODE_*

2019-01-30 Thread Jiri Slaby
Here, we change all assembly code which is marked using END (and not ENDPROC). We switch all these to appropriate new markings SYM_CODE_START and SYM_CODE_END. Signed-off-by: Jiri Slaby Reviewed-by: Boris Ostrovsky [xen bits] Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@k

[Xen-devel] [PATCH v7 09/28] x86/asm: annotate aliases

2019-01-30 Thread Jiri Slaby
_key_expansion_128 is an alias to _key_expansion_256a, __memcpy to memcpy, xen_syscall32_target to xen_sysenter_target, and so on. Annotate them all using the new SYM_FUNC_START_ALIAS, SYM_FUNC_START_LOCAL_ALIAS, and SYM_FUNC_END_ALIAS. This will make the tools generating the debuginfo happy. Sign

[Xen-devel] [PATCH v7 01/28] linkage: new macros for assembler symbols

2019-01-30 Thread Jiri Slaby
Introduce new C macros for annotations of functions and data in assembly. There is a long-standing mess in macros like ENTRY, END, ENDPROC and similar. They are used in different manners and sometimes incorrectly. So introduce macros with clear use to annotate assembly as follows: a) Support macr

[Xen-devel] [PATCH v7 14/28] xen/pvh: annotate data appropriatelly

2019-01-30 Thread Jiri Slaby
Use the new SYM_DATA_START_LOCAL, and SYM_DATA_END* macros to have: 8 OBJECT LOCAL DEFAULT6 gdt 000832 OBJECT LOCAL DEFAULT6 gdt_start 0028 0 OBJECT LOCAL DEFAULT6 gdt_end 0028 256 OBJECT LOCAL DEFAULT6 early_stack 0128 0 OBJECT LOCAL DEFAU

[Xen-devel] [PATCH v7 22/28] x86_64/asm: add ENDs to some functions and relabel with SYM_CODE_*

2019-01-30 Thread Jiri Slaby
All these are functions which are invoked from elsewhere, but they are not typical C functions. So we annotate them using the new SYM_CODE_START. All these were not balanced with any END, so mark their ends by SYM_CODE_END appropriatelly too. Signed-off-by: Jiri Slaby Reviewed-by: Boris Ostrovsky

[Xen-devel] [PATCH v7 25/28] x86_32/asm: add ENDs to some functions and relabel with SYM_CODE_*

2019-01-30 Thread Jiri Slaby
All these are functions which are invoked from elsewhere, but they are not typical C functions. So we annotate them using the new SYM_CODE_START. All these were not balanced with any END, so mark their ends by SYM_CODE_END, appropriatelly. Signed-off-by: Jiri Slaby Reviewed-by: Boris Ostrovsky [

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

2019-01-30 Thread Andrew Cooper
On 30/01/2019 12:43, Jan Beulich wrote: On 29.01.19 at 19:55, wrote: >> On 29/01/2019 18:49, osstest service owner wrote: >>> flight 132484 xen-4.9-testing real [real] >>> http://logs.test-lab.xenproject.org/osstest/logs/132484/ >>> >>> Regressions :-( >>> >>> Tests which did not succeed and

Re: [Xen-devel] [PATCH] arm: gic-v3: clear GICR active interrupts

2019-01-30 Thread Peng Fan
Hi Julien > -Original Message- > From: Julien Grall [mailto:julien.gr...@arm.com] > Sent: 2019年1月30日 20:06 > To: Peng Fan ; sstabell...@kernel.org > Cc: xen-devel@lists.xenproject.org; Andre Przywara > > Subject: Re: [PATCH] arm: gic-v3: clear GICR active interrupts > > Hi > > Replying

Re: [Xen-devel] [PATCH v5 8/8] microcode: update microcode on cores in parallel

2019-01-30 Thread Chao Gao
On Tue, Jan 29, 2019 at 12:27:30PM +0100, Roger Pau Monné wrote: >On Mon, Jan 28, 2019 at 03:06:50PM +0800, Chao Gao wrote: >> Currently, microcode_update_lock and microcode_mutex prevent cores >> from updating microcode in parallel. Below changes are made to support >> parallel microcode update on

Re: [Xen-devel] [PATCH] arm: gic-v3: clear GICR active interrupts

2019-01-30 Thread Peng Fan
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xenproject.org] On Behalf > Of Peng Fan > Sent: 2019年1月30日 21:24 > To: Julien Grall ; sstabell...@kernel.org > Cc: xen-devel@lists.xenproject.org; Andre Przywara > > Subject: Re: [Xen-devel] [PATCH] arm: gic-v3: clear

Re: [Xen-devel] [Xen 4.12 bug] HVM/PVH boot confusion

2019-01-30 Thread Wei Liu
On Wed, Jan 30, 2019 at 12:46:45PM +, Wei Liu wrote: > On Wed, Jan 30, 2019 at 12:30:44PM +, Andrew Cooper wrote: > > >> There are at least two bugs here. > > >> > > >> 1) RSDP was a late addition to the PVH boot protocol.  Xen's PVH > > >> entrypoint must not mandate its existence, because

Re: [Xen-devel] [PATCH v2 21/21] memblock: drop memblock_alloc_*_nopanic() variants

2019-01-30 Thread Petr Mladek
On Mon 2019-01-21 10:04:08, Mike Rapoport wrote: > As all the memblock allocation functions return NULL in case of error > rather than panic(), the duplicates with _nopanic suffix can be removed. > > Signed-off-by: Mike Rapoport > Acked-by: Greg Kroah-Hartman > --- > arch/arc/kernel/unwind.c

Re: [Xen-devel] [PATCH v5 7/8] x86/microcode: Synchronize late microcode loading

2019-01-30 Thread Chao Gao
On Tue, Jan 29, 2019 at 11:37:12AM +0100, Roger Pau Monné wrote: >On Mon, Jan 28, 2019 at 03:06:49PM +0800, Chao Gao wrote: >> This patch ports microcode improvement patches from linux kernel. >> >> Before you read any further: the early loading method is still the >> preferred one and you should

Re: [Xen-devel] [PATCH] arm: gic-v3: clear GICR active interrupts

2019-01-30 Thread Julien Grall
Hi, On 30/01/2019 13:36, Peng Fan wrote: Each ICACTIVER0 registers hold the active bit for 32 interrupts. However, this code assumes the register only hold 4 interrupts. So this will write to unwanted area. There are only 16 SGIs, so it fits in one write to ICACTIVER0. As wrote above, you also

Re: [Xen-devel] [Xen 4.12 bug] HVM/PVH boot confusion

2019-01-30 Thread Juergen Gross
On 30/01/2019 14:38, Wei Liu wrote: > On Wed, Jan 30, 2019 at 12:46:45PM +, Wei Liu wrote: >> On Wed, Jan 30, 2019 at 12:30:44PM +, Andrew Cooper wrote: > There are at least two bugs here. > > 1) RSDP was a late addition to the PVH boot protocol.  Xen's PVH > entrypoint must

Re: [Xen-devel] [Xen 4.12 bug] HVM/PVH boot confusion

2019-01-30 Thread Wei Liu
On Wed, Jan 30, 2019 at 02:49:52PM +0100, Juergen Gross wrote: > On 30/01/2019 14:38, Wei Liu wrote: > > On Wed, Jan 30, 2019 at 12:46:45PM +, Wei Liu wrote: > >> On Wed, Jan 30, 2019 at 12:30:44PM +, Andrew Cooper wrote: > > There are at least two bugs here. > > > > 1) RSDP was

Re: [Xen-devel] [PATCH] arm: gic-v3: clear GICR active interrupts

2019-01-30 Thread Peng Fan
> -Original Message- > From: Julien Grall [mailto:julien.gr...@arm.com] > Sent: 2019年1月30日 21:49 > To: Peng Fan ; sstabell...@kernel.org > Cc: xen-devel@lists.xenproject.org; Andre Przywara > > Subject: Re: [PATCH] arm: gic-v3: clear GICR active interrupts > > Hi, > > On 30/01/2019 13:

Re: [Xen-devel] [PATCH v3 5/6] xen/x86: add PHYSDEVOP_msi_msix_set_enable

2019-01-30 Thread Roger Pau Monné
On Sat, Jan 26, 2019 at 03:31:16AM +0100, Marek Marczykowski-Górecki wrote: > Allow device model running in stubdomain to enable/disable MSI(-X), > bypassing pciback. While pciback is still used to access config space > from within stubdomain, it refuse to write to > PCI_MSI_FLAGS_ENABLE/PCI_MSIX_F

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

2019-01-30 Thread osstest service owner
flight 132618 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/132618/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-arm64-arm64-xl-xsm 13 migrate-support-checkfail never pass test-arm64-arm64-xl-xsm 1

[Xen-devel] [PATCH v2 for-4.12] x86/pvh-boot: don't mandate validity of RSDP pointer

2019-01-30 Thread Wei Liu
RSDP is not mandatory according to PVH spec. Remove the BUG_ON. The guest (xen) will fall back to scanning if necessary. Reported-by: Andrew Cooper Signed-off-by: Wei Liu --- xen/arch/x86/guest/pvh-boot.c | 1 - 1 file changed, 1 deletion(-) diff --git a/xen/arch/x86/guest/pvh-boot.c b/xen/arc

Re: [Xen-devel] [PATCH v2 for-4.12] x86/pvh-boot: don't mandate validity of RSDP pointer

2019-01-30 Thread Andrew Cooper
On 30/01/2019 13:55, Wei Liu wrote: > RSDP is not mandatory according to PVH spec. Remove the BUG_ON. The > guest (xen) will fall back to scanning if necessary. > > Reported-by: Andrew Cooper > Signed-off-by: Wei Liu Reviewed-by: Andrew Cooper ___ Xe

[Xen-devel] [PATCH for-4.12 v2] arm: gic-v3: deactivate SGI/PPI during initialization

2019-01-30 Thread Peng Fan
On i.MX8, we implemented partition reboot which means Cortex-A reboot will not impact M4 cores and System control Unit core. However GICv3 is not reset because we also need to support A72 Cluster reboot without affecting A53 Cluster. The gic-v3 controller is configured with EOImode to 1, so during

Re: [Xen-devel] [PATCH for-4.12 1/8] dom0/pvh: align allocation and mapping order to start address

2019-01-30 Thread Roger Pau Monné
On Wed, Jan 30, 2019 at 12:37:28PM +, Wei Liu wrote: > On Wed, Jan 30, 2019 at 11:36:39AM +0100, Roger Pau Monne wrote: > > Due to the recent changes in the iommu mapping logic, the start > > addresses provided need to be aligned to the order intended to be > > mapped. > > > > Can you referen

Re: [Xen-devel] [PATCH v2 for-4.12] x86/pvh-boot: don't mandate validity of RSDP pointer

2019-01-30 Thread Juergen Gross
On 30/01/2019 14:55, Wei Liu wrote: > RSDP is not mandatory according to PVH spec. Remove the BUG_ON. The > guest (xen) will fall back to scanning if necessary. > > Reported-by: Andrew Cooper > Signed-off-by: Wei Liu Release-acked-by: Juergen Gross Juergen __

Re: [Xen-devel] [PATCH] x86/pv-shim: Avoid a command line parameter warning for CONFIG_PV_SHIM_EXCLUSIVE builds

2019-01-30 Thread Juergen Gross
On 30/01/2019 11:06, Jan Beulich wrote: On 30.01.19 at 11:01, wrote: >> On 30/01/2019 09:57, Jan Beulich wrote: >> On 29.01.19 at 20:07, wrote: --- a/xen/arch/x86/pv/shim.c +++ b/xen/arch/x86/pv/shim.c @@ -40,7 +40,11 @@ #undef virt_to_mfn #define virt_to_mfn(v

Re: [Xen-devel] [PATCH] x86/pv-shim: Avoid a command line parameter warning for CONFIG_PV_SHIM_EXCLUSIVE builds

2019-01-30 Thread Juergen Gross
On 30/01/2019 15:09, Juergen Gross wrote: > On 30/01/2019 11:06, Jan Beulich wrote: > On 30.01.19 at 11:01, wrote: >>> On 30/01/2019 09:57, Jan Beulich wrote: >>> On 29.01.19 at 20:07, wrote: > --- a/xen/arch/x86/pv/shim.c > +++ b/xen/arch/x86/pv/shim.c > @@ -40,7 +40,11 @@ >>

Re: [Xen-devel] [PATCH v3 5/6] xen/x86: add PHYSDEVOP_msi_msix_set_enable

2019-01-30 Thread Jan Beulich
>>> On 30.01.19 at 14:51, wrote: > On Sat, Jan 26, 2019 at 03:31:16AM +0100, Marek Marczykowski-Górecki wrote: >> --- a/xen/arch/x86/msi.c >> +++ b/xen/arch/x86/msi.c >> @@ -1474,6 +1474,22 @@ int pci_restore_msi_state(struct pci_dev *pdev) >> return 0; >> } >> >> +int msi_msix_set_enable(

Re: [Xen-devel] [PATCH for-4.12] libxl: When restricted, start QEMU paused

2019-01-30 Thread Ian Jackson
Anthony PERARD writes ("[PATCH for-4.12] libxl: When restricted, start QEMU paused"): > [stuff] Thanks for this. I think the code looks right but to make it easier to understand what was going on I have taken the liberty of trying to reword your commit message for English grammar. Can you pleas

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

2019-01-30 Thread Wei Liu
On Wed, Jan 30, 2019 at 09:15:58AM +0100, Juergen Gross wrote: > On 29/01/2019 18:08, osstest service owner wrote: > > flight 132544 xen-unstable real [real] > > http://logs.test-lab.xenproject.org/osstest/logs/132544/ > > > > Regressions :-( > > > > Tests which did not succeed and are blocking,

Re: [Xen-devel] [BUG]

2019-01-30 Thread Михаил Казанцев
Ater some years. I am figure out that on these machime was hardware deffect. Hardware is not stable. > > >"IRQ problem dom0 xen4.5-amd64" >i have mothrboard geforce 6100pm-m2(v3.0) latest bios and athtlon 64 x2 5000+ >cpu >Mothrboard based on nforce 430 chipset >if in bios enabled apic mode. Xe

Re: [Xen-devel] [linux-4.19 test] 132468: regressions - FAIL

2019-01-30 Thread Roger Pau Monné
On Tue, Jan 29, 2019 at 05:46:55PM +, osstest service owner wrote: > flight 132468 linux-4.19 real [real] > http://logs.test-lab.xenproject.org/osstest/logs/132468/ > > Regressions :-( > > Tests which did not succeed and are blocking, > including tests which could not be run: > test-amd64-am

[Xen-devel] [PATCH v2 for-4.12] xen/cmdline: Work around some specific command line warnings

2019-01-30 Thread Andrew Cooper
Xen will warn when an unknown parameter is found in the command line. e.g. (d8) [ 1556.334664] (XEN) parameter "pv-shim" unknown! One case where this goes wrong is a workaround for an old grub bug, which resulted in "placeholder" being prepended to the command line. Another case is when booti

Re: [Xen-devel] [PATCH for-4.12] libxl: When restricted, start QEMU paused

2019-01-30 Thread Anthony PERARD
On Wed, Jan 30, 2019 at 03:09:45PM +, Ian Jackson wrote: > Anthony PERARD writes ("[PATCH for-4.12] libxl: When restricted, start QEMU > paused"): > > [stuff] > > Thanks for this. I think the code looks right but to make it easier > to understand what was going on I have taken the liberty of

[Xen-devel] [PATCH v2] xen-block: handle resize callback

2019-01-30 Thread Paul Durrant
Some frontend drivers will handle dynamic resizing of PV disks, so set up the BlockDevOps resize_cb() method during xen_block_realize() to allow this to be done. Signed-off-by: Paul Durrant --- Cc: Stefan Hajnoczi Cc: Stefano Stabellini Cc: Anthony Perard Cc: Kevin Wolf Cc: Max Reitz v2: -

Re: [Xen-devel] [PATCH for-4.12] libxl: When restricted, start QEMU paused

2019-01-30 Thread Ian Jackson
Anthony PERARD writes ("Re: [PATCH for-4.12] libxl: When restricted, start QEMU paused"): > On Wed, Jan 30, 2019 at 03:09:45PM +, Ian Jackson wrote: > > - libxl connects and hand-checks [xxx???] with QEMU, then sends the > > cmd "query-status". > > - QEMU prepares and maybe tries to se

Re: [Xen-devel] Ping: [PATCH] x86emul: correct AVX512BW write masking checks

2019-01-30 Thread Jan Beulich
>>> On 24.01.19 at 11:54, wrote: On 16.01.19 at 12:40, wrote: >> On 14/01/2019 12:40, Jan Beulich wrote: >>> For VPSADBW this likely was a result of bad copy-and-paste. >>> >>> For VPS{L,R}LDQ comment and code were not in line, but then again the >>> comment also wasn't fully updated from t

Re: [Xen-devel] [PATCH v2 for-4.12] xen/cmdline: Work around some specific command line warnings

2019-01-30 Thread Juergen Gross
On 30/01/2019 16:55, Andrew Cooper wrote: > Xen will warn when an unknown parameter is found in the command line. e.g. > > (d8) [ 1556.334664] (XEN) parameter "pv-shim" unknown! > > One case where this goes wrong is a workaround for an old grub bug, which > resulted in "placeholder" being prep

Re: [Xen-devel] [PATCH v2 for-4.12] xen/cmdline: Work around some specific command line warnings

2019-01-30 Thread Jan Beulich
>>> On 30.01.19 at 16:55, wrote: > Xen will warn when an unknown parameter is found in the command line. e.g. > > (d8) [ 1556.334664] (XEN) parameter "pv-shim" unknown! > > One case where this goes wrong is a workaround for an old grub bug, which > resulted in "placeholder" being prepended to

[Xen-devel] [xen-4.10-testing test] 132577: regressions - FAIL

2019-01-30 Thread osstest service owner
flight 132577 xen-4.10-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/132577/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-debianhvm-amd64 16 guest-localmigrate/x10 fail REGR. vs. 132485 Te

Re: [Xen-devel] [PATCH v2 for-4.12] xen/cmdline: Work around some specific command line warnings

2019-01-30 Thread Andrew Cooper
On 30/01/2019 16:31, Juergen Gross wrote: > On 30/01/2019 16:55, Andrew Cooper wrote: >> Xen will warn when an unknown parameter is found in the command line. e.g. >> >> (d8) [ 1556.334664] (XEN) parameter "pv-shim" unknown! >> >> One case where this goes wrong is a workaround for an old grub bu

Re: [Xen-devel] [PATCH v2 for-4.12] xen/cmdline: Work around some specific command line warnings

2019-01-30 Thread Andrew Cooper
On 30/01/2019 17:07, Andrew Cooper wrote: > On 30/01/2019 16:31, Juergen Gross wrote: >> On 30/01/2019 16:55, Andrew Cooper wrote: >>> Xen will warn when an unknown parameter is found in the command line. e.g. >>> >>> (d8) [ 1556.334664] (XEN) parameter "pv-shim" unknown! >>> >>> One case where

Re: [Xen-devel] [PATCH v2 for-4.12] xen/cmdline: Work around some specific command line warnings

2019-01-30 Thread Andrew Cooper
On 30/01/2019 16:38, Jan Beulich wrote: On 30.01.19 at 16:55, wrote: >> Xen will warn when an unknown parameter is found in the command line. e.g. >> >> (d8) [ 1556.334664] (XEN) parameter "pv-shim" unknown! >> >> One case where this goes wrong is a workaround for an old grub bug, which >>

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

2019-01-30 Thread osstest service owner
flight 132627 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/132627/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-arm64-arm64-xl-xsm 13 migrate-support-checkfail never pass test-arm64-arm64-xl-xsm 1

[Xen-devel] Pings for 4.12 [PATCH 00/14] XSA-277 followup

2019-01-30 Thread Andrew Cooper
On 21/11/2018 13:21, Andrew Cooper wrote: > This covers various fixes related to XSA-277 which weren't in security > supported areas, and associated cleanup. > > The biggest issue noticed here is that altp2m's use of hardware #VE support > will cause general memory corruption if the guest ever ball

Re: [Xen-devel] [PATCH v2 for-4.12] xen/cmdline: Work around some specific command line warnings

2019-01-30 Thread Wei Liu
On Wed, Jan 30, 2019 at 05:16:47PM +, Andrew Cooper wrote: > On 30/01/2019 17:07, Andrew Cooper wrote: > > On 30/01/2019 16:31, Juergen Gross wrote: > >> On 30/01/2019 16:55, Andrew Cooper wrote: > >>> Xen will warn when an unknown parameter is found in the command line. > >>> e.g. > >>> > >>

Re: [Xen-devel] 4.10.1 Xen crash and reboot

2019-01-30 Thread Andy Smith
Hi, On Tue, Jan 01, 2019 at 07:46:57PM +, Andy Smith wrote: > The test host is slightly different hardware to the others: Xeon > E5-1680v4 on there as opposed to Xeon D-1540 previously. > > Test host is now running with pcid=0 to see if that helps. The > longest this guest has been able to ru

Re: [Xen-devel] [PATCH] x86emul: correct AVX512BW write masking checks

2019-01-30 Thread Andrew Cooper
On 14/01/2019 11:40, Jan Beulich wrote: > For VPSADBW this likely was a result of bad copy-and-paste. > > For VPS{L,R}LDQ comment and code were not in line, but then again the > comment also wasn't fully updated from the AVX2 original it got cloned > from. > > Signed-off-by: Jan Beulich I'm guess

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

2019-01-30 Thread Julien Grall
Hi Andrew, On 11/22/18 5:56 PM, Andrew Cooper wrote: 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: R

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

2019-01-30 Thread Andrew Cooper
On 30/01/2019 20:04, Julien Grall wrote: > Hi Andrew, > > On 11/22/18 5:56 PM, Andrew Cooper wrote: >> 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. >>> >

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

2019-01-30 Thread osstest service owner
flight 132633 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/132633/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-arm64-arm64-xl-xsm 13 migrate-support-checkfail never pass test-arm64-arm64-xl-xsm 1

Re: [Xen-devel] [PATCH] x86/cpuid: correct dependencies of post-SSE ISA extensions

2019-01-30 Thread Andrew Cooper
On 14/01/2019 12:48, Jan Beulich wrote: On 14.01.19 at 13:00, wrote: >> On 14/01/2019 11:39, Jan Beulich wrote: >>> First of all a PCLMULQDQ dependency was missing entirely. Add it as well >>> as AESNI and SHA to SSE2, as all of them act on vectors of integers, >>> whereas plain SSE supports

[Xen-devel] Xen Project Developer and Design Summit 2019: Cfp and Registration Open Now

2019-01-30 Thread Lars Kurth
Dear Community Members, starting today, registration officially opens for The Xen Project Developer & Design Summit. This year’s Summit, taking place from July 9 through 11 in Chicago, will bring together the Xen Project community of developers and power users to share ideas, latest development

[Xen-devel] [linux-3.18 bisection] complete test-amd64-amd64-xl-xsm

2019-01-30 Thread osstest service owner
branch xen-unstable xenbranch xen-unstable job test-amd64-amd64-xl-xsm testid xen-boot Tree: linux git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git Tree: linuxfirmware git://xenbits.xen.org/osstest/linux-firmware.git Tree: qemu git://xenbits.xen.org/qemu-xen-traditional.git T

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

2019-01-30 Thread osstest service owner
flight 132578 linux-4.19 real [real] http://logs.test-lab.xenproject.org/osstest/logs/132578/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm 7 xen-boot fail REGR. vs. 129313 test-amd64-

[Xen-devel] [PATCHv2 0/9] Use vm_insert_range and vm_insert_range_buggy

2019-01-30 Thread Souptick Joarder
Previouly drivers have their own way of mapping range of kernel pages/memory into user vma and this was done by invoking vm_insert_page() within a loop. As this pattern is common across different drivers, it can be generalized by creating new functions and use it across the drivers. vm_insert_ran

[Xen-devel] [PATCHv2 1/9] mm: Introduce new vm_insert_range and vm_insert_range_buggy API

2019-01-30 Thread Souptick Joarder
Previouly drivers have their own way of mapping range of kernel pages/memory into user vma and this was done by invoking vm_insert_page() within a loop. As this pattern is common across different drivers, it can be generalized by creating new functions and use it across the drivers. vm_insert_ran

  1   2   >