RE: [PATCH 07/10] xen/arm: intruduce alloc_domstatic_pages

2021-05-20 Thread Penny Zheng
Hi Jan > -Original Message- > From: Jan Beulich > Sent: Tuesday, May 18, 2021 7:23 PM > To: Penny Zheng > Cc: Bertrand Marquis ; Wei Chen > ; nd ; xen-devel@lists.xenproject.org; > sstabell...@kernel.org; jul...@xen.org > Subject: Re: [PATCH 07/10] xen/arm: intruduce alloc_domstatic_page

Re: [PATCH v3 10/10] arm64: Change type of hsr, cpsr, spsr_el1 to uint64_t

2021-05-20 Thread Michal Orzel
Hi guys, On 17.05.2021 18:03, Julien Grall wrote: > Hi Jan, > > On 17/05/2021 08:01, Jan Beulich wrote: >> On 12.05.2021 19:59, Julien Grall wrote: >>> Hi, >>> >>> On 11/05/2021 07:37, Michal Orzel wrote: On 05.05.2021 10:00, Jan Beulich wrote: > On 05.05.2021 09:43, Michal Orzel wrote:

Re: [PATCH v3 01/11] xen/manage: keep track of the on-going suspend mode

2021-05-20 Thread Anchal Agarwal
On Thu, Oct 01, 2020 at 08:43:58AM -0400, boris.ostrov...@oracle.com wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you can confirm the sender and know the > content is safe. > > > > >>> Also, wrt KASLR stuff, that

Re: QEMU backport necessary for building with "recent" toolchain (on openSUSE Tumbleweed)

2021-05-20 Thread Dario Faggioli
On Thu, 2021-05-20 at 14:55 +0100, Anthony PERARD wrote: > On Tue, May 18, 2021 at 05:24:30PM +0200, Dario Faggioli wrote: > > > > I think we need the following commit in our QEMU: bbd2d5a812077 > > ("build: -no-pie is no functional linker flag"). > > Hi Dario, > Hi, > I'm hoping to update qemu

Re: [PATCH v2] libelf: improve PVH elfnote parsing

2021-05-20 Thread Juergen Gross
On 20.05.21 11:28, Jan Beulich wrote: On 20.05.2021 11:27, Roger Pau Monné wrote: On Wed, May 19, 2021 at 12:34:19PM +0200, Jan Beulich wrote: On 18.05.2021 16:47, Roger Pau Monne wrote: @@ -425,8 +425,11 @@ static elf_errorstatus elf_xen_addr_calc_check(struct elf_binary *elf, retu

[linux-linus test] 162106: regressions - FAIL

2021-05-20 Thread osstest service owner
flight 162106 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/162106/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-xsm7 xen-install fail REGR. vs. 152332 test-amd64-i386-xl-

[qemu-mainline test] 162104: regressions - FAIL

2021-05-20 Thread osstest service owner
flight 162104 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/162104/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-qemuu-freebsd11-amd64 16 guest-saverestore fail REGR. vs. 152631 test-amd64-i3

[linux-linus test] 162103: regressions - FAIL

2021-05-20 Thread osstest service owner
flight 162103 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/162103/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-xsm7 xen-install fail REGR. vs. 152332 test-amd64-i386-xl-

[xen-unstable test] 162102: tolerable FAIL - PUSHED

2021-05-20 Thread osstest service owner
flight 162102 xen-unstable real [real] flight 162105 xen-unstable real-retest [real] http://logs.test-lab.xenproject.org/osstest/logs/162102/ http://logs.test-lab.xenproject.org/osstest/logs/162105/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-amd6

Re: [PATCH v2 1/2] xen-pciback: redo VF placement in the virtual topology

2021-05-20 Thread Boris Ostrovsky
On 5/20/21 10:46 AM, Jan Beulich wrote: > On 20.05.2021 16:44, Jan Beulich wrote: >> On 20.05.2021 16:38, Boris Ostrovsky wrote: >>> On 5/20/21 3:43 AM, Jan Beulich wrote: On 20.05.2021 02:36, Boris Ostrovsky wrote: > On 5/18/21 12:13 PM, Jan Beulich wrote: >> >> @@ -95,22 +95,

Re: Uses of /hypervisor memory range (was: FreeBSD/Xen/ARM issues)

2021-05-20 Thread Stefano Stabellini
On Thu, 20 May 2021, Julien Grall wrote: > On 20/05/2021 00:25, Stefano Stabellini wrote: > > On Sat, 15 May 2021, Julien Grall wrote: > > > > My feeling is one of two things should happen with the /hypervisor > > > > address range: > > > > > > > > 1> OSes could be encouraged to use it for all fo

Re: [PATCH 00/13] Intel Hardware P-States (HWP) support

2021-05-20 Thread Jan Beulich
On 03.05.2021 21:27, Jason Andryuk wrote: > Open questions: > > HWP defaults to enabled and running in balanced mode. This is useful > for testing, but should the old ACPI cpufreq driver remain the default? As long as this new code is experimental, yes. But once it's deemed stable and fully supp

Re: [PATCH v2 1/2] xen-pciback: redo VF placement in the virtual topology

2021-05-20 Thread Jan Beulich
On 20.05.2021 16:44, Jan Beulich wrote: > On 20.05.2021 16:38, Boris Ostrovsky wrote: >> >> On 5/20/21 3:43 AM, Jan Beulich wrote: >>> On 20.05.2021 02:36, Boris Ostrovsky wrote: On 5/18/21 12:13 PM, Jan Beulich wrote: > > @@ -95,22 +95,25 @@ static int __xen_pcibk_add_pci_dev(struc

Re: [PATCH v2 1/2] xen-pciback: redo VF placement in the virtual topology

2021-05-20 Thread Jan Beulich
On 20.05.2021 16:38, Boris Ostrovsky wrote: > > On 5/20/21 3:43 AM, Jan Beulich wrote: >> On 20.05.2021 02:36, Boris Ostrovsky wrote: >>> On 5/18/21 12:13 PM, Jan Beulich wrote: @@ -95,22 +95,25 @@ static int __xen_pcibk_add_pci_dev(struc /* * Keep multi-functio

Re: [PATCH v2 1/2] xen-pciback: redo VF placement in the virtual topology

2021-05-20 Thread Boris Ostrovsky
On 5/20/21 3:43 AM, Jan Beulich wrote: > On 20.05.2021 02:36, Boris Ostrovsky wrote: >> On 5/18/21 12:13 PM, Jan Beulich wrote: >>> >>> @@ -95,22 +95,25 @@ static int __xen_pcibk_add_pci_dev(struc >>> >>> /* >>> * Keep multi-function devices together on the virtual PCI bus, except >>

Re: QEMU backport necessary for building with "recent" toolchain (on openSUSE Tumbleweed)

2021-05-20 Thread Anthony PERARD
On Tue, May 18, 2021 at 05:24:30PM +0200, Dario Faggioli wrote: > Hello, > > I think we need the following commit in our QEMU: bbd2d5a812077 > ("build: -no-pie is no functional linker flag"). Hi Dario, I'm hoping to update qemu-xen to a newer version of QEMU (6.0) which would have the fix, but t

[PATCH v2] x86emul: de-duplicate scatters to the same linear address

2021-05-20 Thread Jan Beulich
The SDM specifically allows for earlier writes to fully overlapping ranges to be dropped. If a guest did so, hvmemul_phys_mmio_access() would crash it if varying data was written to the same address. Detect overlaps early, as doing so in hvmemul_{linear,phys}_mmio_access() would be quite a bit more

[qemu-mainline test] 162099: regressions - FAIL

2021-05-20 Thread osstest service owner
flight 162099 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/162099/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-qemuu-freebsd11-amd64 16 guest-saverestore fail REGR. vs. 152631 test-amd64-i3

Re: Hand over of the Xen shared info page

2021-05-20 Thread Oleksandr Andrushchenko
Hi, On 5/20/21 12:46 PM, Julien Grall wrote: > > > On 20/05/2021 06:21, Oleksandr Andrushchenko wrote: >> Hi, all! > > Hi, > > >> On 5/20/21 2:11 AM, Stefano Stabellini wrote: >>> On Wed, 19 May 2021, Julien Grall wrote: On 14/05/2021 10:50, Anastasiia Lukianenko wrote: > Hi Julien!

Re: [PATCH v3 2/2] libelf: improve PVH elfnote parsing

2021-05-20 Thread Jan Beulich
On 20.05.2021 14:30, Roger Pau Monne wrote: > Pass an hvm boolean parameter to the elf note parsing and checking > routines, so that better checking can be done in case libelf is > dealing with an hvm container. > > elf_xen_note_check shouldn't return early unless PHYS32_ENTRY is set > and the con

Re: [PATCH v3 1/2] libelf: don't attempt to parse __xen_guest for PVH

2021-05-20 Thread Jan Beulich
On 20.05.2021 14:30, Roger Pau Monne wrote: > The legacy __xen_guest section doesn't support the PHYS32_ENTRY > elfnote, so it's pointless to attempt to parse the elfnotes from that > section when called from an hvm container. > > Suggested-by: Jan Beulich > Signed-off-by: Roger Pau Monné > ---

[PATCH v3 1/2] libelf: don't attempt to parse __xen_guest for PVH

2021-05-20 Thread Roger Pau Monne
The legacy __xen_guest section doesn't support the PHYS32_ENTRY elfnote, so it's pointless to attempt to parse the elfnotes from that section when called from an hvm container. Suggested-by: Jan Beulich Signed-off-by: Roger Pau Monné --- Changes since v2: - New in this version. --- xen/common/

[PATCH v3 2/2] libelf: improve PVH elfnote parsing

2021-05-20 Thread Roger Pau Monne
Pass an hvm boolean parameter to the elf note parsing and checking routines, so that better checking can be done in case libelf is dealing with an hvm container. elf_xen_note_check shouldn't return early unless PHYS32_ENTRY is set and the container is of type HVM, or else the loader and version ch

[PATCH v3 0/2] libelf: small fixes for PVH

2021-05-20 Thread Roger Pau Monne
Hello, A couple of small fixes for PVH loading. The first one is likely not very relevant, since PVH couldn't be booted anyway with the data in the __xen_guest section, so it's mostly a cleanup. Second patch fixes the checks for PVH loading, as in that case physical addresses must always be used

Re: [PATCH] x86/Xen: swap NX determination and GDT setup on BSP

2021-05-20 Thread Juergen Gross
On 20.05.21 14:08, Jan Beulich wrote: On 20.05.2021 13:57, Juergen Gross wrote: On 20.05.21 13:42, Jan Beulich wrote: xen_setup_gdt(), via xen_load_gdt_boot(), wants to adjust page tables. For this to work when NX is not available, x86_configure_nx() needs to be called first. Reported-by: Olaf

Re: [PATCH] x86/Xen: swap NX determination and GDT setup on BSP

2021-05-20 Thread Jan Beulich
On 20.05.2021 13:57, Juergen Gross wrote: > On 20.05.21 13:42, Jan Beulich wrote: >> xen_setup_gdt(), via xen_load_gdt_boot(), wants to adjust page tables. >> For this to work when NX is not available, x86_configure_nx() needs to >> be called first. >> >> Reported-by: Olaf Hering >> Signed-off-by:

Re: [PATCH] x86/Xen: swap NX determination and GDT setup on BSP

2021-05-20 Thread Juergen Gross
On 20.05.21 13:42, Jan Beulich wrote: xen_setup_gdt(), via xen_load_gdt_boot(), wants to adjust page tables. For this to work when NX is not available, x86_configure_nx() needs to be called first. Reported-by: Olaf Hering Signed-off-by: Jan Beulich Reviewed-by: Juergen Gross Juergen Ope

Re: [PATCH] xen-netback: correct success/error reporting for the SKB-with-fraglist case

2021-05-20 Thread Jan Beulich
On 25.02.2021 17:23, Paul Durrant wrote: > On 25/02/2021 14:00, Jan Beulich wrote: >> On 25.02.2021 13:11, Paul Durrant wrote: >>> On 25/02/2021 07:33, Jan Beulich wrote: On 24.02.2021 17:39, Paul Durrant wrote: > On 23/02/2021 16:29, Jan Beulich wrote: >> When re-entering the main loo

[PATCH] x86/Xen: swap NX determination and GDT setup on BSP

2021-05-20 Thread Jan Beulich
xen_setup_gdt(), via xen_load_gdt_boot(), wants to adjust page tables. For this to work when NX is not available, x86_configure_nx() needs to be called first. Reported-by: Olaf Hering Signed-off-by: Jan Beulich --- a/arch/x86/xen/enlighten_pv.c +++ b/arch/x86/xen/enlighten_pv.c @@ -1273,16 +127

Re: Uses of /hypervisor memory range (was: FreeBSD/Xen/ARM issues)

2021-05-20 Thread Julien Grall
Hi Stefano, On 20/05/2021 00:25, Stefano Stabellini wrote: On Sat, 15 May 2021, Julien Grall wrote: My feeling is one of two things should happen with the /hypervisor address range: 1> OSes could be encouraged to use it for all foreign mappings. The range should be dynamic in some fashion.

Re: Hand over of the Xen shared info page

2021-05-20 Thread Julien Grall
On 20/05/2021 06:21, Oleksandr Andrushchenko wrote: Hi, all! Hi, On 5/20/21 2:11 AM, Stefano Stabellini wrote: On Wed, 19 May 2021, Julien Grall wrote: On 14/05/2021 10:50, Anastasiia Lukianenko wrote: Hi Julien! Hello, On Thu, 2021-05-13 at 09:37 +0100, Julien Grall wrote: On 13/0

Re: [PATCH 03/10] xen/arm: introduce PGC_reserved

2021-05-20 Thread Julien Grall
Hi Jan, On 20/05/2021 10:27, Jan Beulich wrote: On 20.05.2021 10:59, Julien Grall wrote: On 20/05/2021 09:40, Penny Zheng wrote: Oh, Second thought on this. And I think you are referring to balloon in/out here, hmm, also, like Yes I am referring to balloon in/out. I replied there: "For iss

Re: regression in recent pvops kernels, dom0 crashes early

2021-05-20 Thread Olaf Hering
Am Thu, 20 May 2021 09:45:03 +0200 schrieb Olaf Hering : > Am Thu, 20 May 2021 09:03:34 +0200 > schrieb Jan Beulich : > > > Just to be sure - you did not need the other patch that I said I suspect > > is needed as a prereq? > Yes, I needed just this single patch which moves x86_configure_nx up.

Re: [PATCH 04/10] xen/arm: static memory initialization

2021-05-20 Thread Jan Beulich
On 20.05.2021 11:04, Penny Zheng wrote: > Hi Jan > >> -Original Message- >> From: Jan Beulich >> Sent: Tuesday, May 18, 2021 6:43 PM >> To: Penny Zheng >> Cc: Bertrand Marquis ; Wei Chen >> ; nd ; xen-devel@lists.xenproject.org; >> sstabell...@kernel.org; jul...@xen.org >> Subject: Re: [

Re: [PATCH v2] libelf: improve PVH elfnote parsing

2021-05-20 Thread Jan Beulich
On 20.05.2021 11:27, Roger Pau Monné wrote: > On Wed, May 19, 2021 at 12:34:19PM +0200, Jan Beulich wrote: >> On 18.05.2021 16:47, Roger Pau Monne wrote: >>> @@ -425,8 +425,11 @@ static elf_errorstatus elf_xen_addr_calc_check(struct >>> elf_binary *elf, >>> return -1; >>> } >>> >>>

Re: [PATCH v2] libelf: improve PVH elfnote parsing

2021-05-20 Thread Roger Pau Monné
On Wed, May 19, 2021 at 12:34:19PM +0200, Jan Beulich wrote: > On 18.05.2021 16:47, Roger Pau Monne wrote: > > @@ -425,8 +425,11 @@ static elf_errorstatus elf_xen_addr_calc_check(struct > > elf_binary *elf, > > return -1; > > } > > > > -/* Initial guess for virt_base is 0 if it

Re: [PATCH 03/10] xen/arm: introduce PGC_reserved

2021-05-20 Thread Jan Beulich
On 20.05.2021 10:59, Julien Grall wrote: > On 20/05/2021 09:40, Penny Zheng wrote: >> Oh, Second thought on this. >> And I think you are referring to balloon in/out here, hmm, also, like > > Yes I am referring to balloon in/out. > >> I replied there: >> "For issues on ballooning out or in, it is

Re: [PATCH] Xen: Design doc for 1:1 direct-map and static allocation

2021-05-20 Thread Julien Grall
On 20/05/2021 06:36, Penny Zheng wrote: Hi Julien Hi Penny, + +Later, when domain get destroyed and memory relinquished, only pages +in `page_list` go back to heap, and pages in `reserved_page_list` shall not. While going through the series, I could not find any code implementing this. H

Re: [PATCH v2 2/2] automation: fix dependencies on openSUSE Tumbleweed containers

2021-05-20 Thread Dario Faggioli
On Wed, 2021-05-19 at 20:25 +0100, Andrew Cooper wrote: > > I built the container locally, which reused some of the layers you > pushed, and it all pushed successfully for me. > > I've committed this series so xen.git matches reality.  Lets see how > the > updated container fairs... > Well, some

[linux-linus test] 162097: regressions - FAIL

2021-05-20 Thread osstest service owner
flight 162097 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/162097/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-xsm7 xen-install fail REGR. vs. 152332 test-amd64-i386-xl-

RE: [PATCH 04/10] xen/arm: static memory initialization

2021-05-20 Thread Penny Zheng
Hi Jan > -Original Message- > From: Jan Beulich > Sent: Tuesday, May 18, 2021 6:43 PM > To: Penny Zheng > Cc: Bertrand Marquis ; Wei Chen > ; nd ; xen-devel@lists.xenproject.org; > sstabell...@kernel.org; jul...@xen.org > Subject: Re: [PATCH 04/10] xen/arm: static memory initialization >

Re: [PATCH 03/10] xen/arm: introduce PGC_reserved

2021-05-20 Thread Julien Grall
On 20/05/2021 09:40, Penny Zheng wrote: Hi julien Hi Penny, -Original Message- From: Penny Zheng Sent: Thursday, May 20, 2021 2:20 PM To: Julien Grall ; xen-devel@lists.xenproject.org; sstabell...@kernel.org Cc: Bertrand Marquis ; Wei Chen ; nd Subject: RE: [PATCH 03/10] xen/arm

Re: [PATCH 01/10] xen/arm: introduce domain on Static Allocation

2021-05-20 Thread Julien Grall
Hi, On 20/05/2021 07:07, Penny Zheng wrote: It will be consistent with the ones defined in the parent node, domUx. Hmmm... To take the example you provided, the parent would be chosen. However, from the example, I would expect the property #{address, size}-cells in domU1 to be used. What did I

RE: [PATCH 03/10] xen/arm: introduce PGC_reserved

2021-05-20 Thread Penny Zheng
Hi julien > -Original Message- > From: Penny Zheng > Sent: Thursday, May 20, 2021 2:20 PM > To: Julien Grall ; xen-devel@lists.xenproject.org; > sstabell...@kernel.org > Cc: Bertrand Marquis ; Wei Chen > ; nd > Subject: RE: [PATCH 03/10] xen/arm: introduce PGC_reserved > > Hi Julien >

[libvirt test] 162100: regressions - FAIL

2021-05-20 Thread osstest service owner
flight 162100 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/162100/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-libvirt 6 libvirt-buildfail REGR. vs. 151777 build-amd64-libvirt

Re: regression in recent pvops kernels, dom0 crashes early

2021-05-20 Thread Olaf Hering
Am Thu, 20 May 2021 09:03:34 +0200 schrieb Jan Beulich : > Just to be sure - you did not need the other patch that I said I suspect > is needed as a prereq? Yes, I needed just this single patch which moves x86_configure_nx up. Olaf pgpmf2cPPAnBx.pgp Description: Digitale Signatur von OpenPGP

Re: [PATCH v2 1/2] xen-pciback: redo VF placement in the virtual topology

2021-05-20 Thread Jan Beulich
On 20.05.2021 02:36, Boris Ostrovsky wrote: > > On 5/18/21 12:13 PM, Jan Beulich wrote: >> >> @@ -95,22 +95,25 @@ static int __xen_pcibk_add_pci_dev(struc >> >> /* >> * Keep multi-function devices together on the virtual PCI bus, except >> - * virtual functions. >> + * that

[xen-unstable test] 162095: tolerable FAIL - PUSHED

2021-05-20 Thread osstest service owner
flight 162095 xen-unstable real [real] flight 162101 xen-unstable real-retest [real] http://logs.test-lab.xenproject.org/osstest/logs/162095/ http://logs.test-lab.xenproject.org/osstest/logs/162101/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-armh

Re: [PATCH 03/10] xen/arm: introduce PGC_reserved

2021-05-20 Thread Jan Beulich
On 19.05.2021 21:49, Julien Grall wrote: > On 19/05/2021 10:49, Jan Beulich wrote: >> On 19.05.2021 05:16, Penny Zheng wrote: From: Julien Grall Sent: Tuesday, May 18, 2021 5:46 PM On 18/05/2021 06:21, Penny Zheng wrote: > --- a/xen/include/asm-arm/mm.h > +++ b/xen/incl

Re: regression in recent pvops kernels, dom0 crashes early

2021-05-20 Thread Jan Beulich
On 19.05.2021 20:42, Olaf Hering wrote: > Am Mon, 17 May 2021 12:54:02 +0200 > schrieb Jan Beulich : > >> x86/Xen: swap NX determination and GDT setup on BSP >> >> xen_setup_gdt(), via xen_load_gdt_boot(), wants to adjust page tables. >> For this to work when NX is not available, x86_configure_nx(