[linux-5.4 test] 173180: regressions - FAIL

2022-09-13 Thread osstest service owner
flight 173180 linux-5.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/173180/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172128 build-amd64-libvirt

Re: Linux pin_user_pages_fast fails on Xen

2022-09-13 Thread Jan Beulich
On 14.09.2022 01:31, Stefano Stabellini wrote: > The problem is that drivers/xen/privcmd.c:privcmd_mmap sets VM_IO | > VM_PFNMAP, and either flag would cause check_vma_flags to return > -EFAULT. > > Do you know if it works if you remove VM_IO | VM_PFNMAP from > privcmd_mmap? My Linux MM knowledge

Re: Setting constant-time mode CPU flag

2022-09-13 Thread Jan Beulich
On 14.09.2022 08:40, Demi Marie Obenour wrote: > On Wed, Sep 14, 2022 at 08:36:02AM +0200, Jan Beulich wrote: >> On 13.09.2022 19:22, Demi Marie Obenour wrote: >>> On Tue, Sep 13, 2022 at 04:47:24PM +0200, Jan Beulich wrote: On 13.09.2022 16:22, Demi Marie Obenour wrote: > On Tue, Sep 06,

Re: Setting constant-time mode CPU flag

2022-09-13 Thread Demi Marie Obenour
On Wed, Sep 14, 2022 at 08:36:02AM +0200, Jan Beulich wrote: > On 13.09.2022 19:22, Demi Marie Obenour wrote: > > On Tue, Sep 13, 2022 at 04:47:24PM +0200, Jan Beulich wrote: > >> On 13.09.2022 16:22, Demi Marie Obenour wrote: > >>> On Tue, Sep 06, 2022 at 10:01:00AM +, Andrew Cooper wrote: > >

Re: Setting constant-time mode CPU flag

2022-09-13 Thread Jan Beulich
On 13.09.2022 19:22, Demi Marie Obenour wrote: > On Tue, Sep 13, 2022 at 04:47:24PM +0200, Jan Beulich wrote: >> On 13.09.2022 16:22, Demi Marie Obenour wrote: >>> On Tue, Sep 06, 2022 at 10:01:00AM +, Andrew Cooper wrote: On 06/09/2022 10:52, Jan Beulich wrote: > On 02.09.2022 04:05,

RE: Linux pin_user_pages_fast fails on Xen

2022-09-13 Thread NK, JESHWANTHKUMAR (JESHWANTH KUMAR)
[AMD Official Use Only - General] Hi Stefano, Thanks for the suggestion, >Do you know if it works if you remove VM_IO | VM_PFNMAP from privcmd_mmap? >> Gave a try, looks like the DomU doesn't boot without these two flags. Regards, Jeshwanth -Original Message- From: Stefano Stabellini

[ovmf test] 173182: regressions - FAIL

2022-09-13 Thread osstest service owner
flight 173182 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173182/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172136 build-amd64-libvirt

[qemu-mainline test] 173178: regressions - FAIL

2022-09-13 Thread osstest service owner
flight 173178 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/173178/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-pvhv2-intel broken in 173172 build-amd64-libvirt

[linux-linus test] 173176: regressions - FAIL

2022-09-13 Thread osstest service owner
flight 173176 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/173176/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-libvirt 6 libvirt-buildfail REGR. vs. 172133 build-i386-libvirt

RE: Linux pin_user_pages_fast fails on Xen

2022-09-13 Thread Stefano Stabellini
The problem is that drivers/xen/privcmd.c:privcmd_mmap sets VM_IO | VM_PFNMAP, and either flag would cause check_vma_flags to return -EFAULT. Do you know if it works if you remove VM_IO | VM_PFNMAP from privcmd_mmap? Juergen, do you think the flags are necessary and useful? Any suggestions? On

[ovmf test] 173179: regressions - FAIL

2022-09-13 Thread osstest service owner
flight 173179 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173179/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172136 build-amd64-libvirt

[linux-5.4 test] 173167: regressions - FAIL

2022-09-13 Thread osstest service owner
flight 173167 linux-5.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/173167/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172128 build-amd64-libvirt

[ovmf test] 173177: regressions - FAIL

2022-09-13 Thread osstest service owner
flight 173177 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173177/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172136 build-amd64-libvirt

Re: [ImageBuilder v2 2/2] Add support for lopper to generate partial dts

2022-09-13 Thread Stefano Stabellini
On Tue, 13 Sep 2022, Michal Orzel wrote: > Currently ImageBuilder can compile and merge partial dts obtained from > a repository specified using PASSTHROUGH_DTS_REPO. With the recent > changes done in the lopper, we can use it to generate partial dts > automatically (to some extent as this is still

[qemu-mainline test] 173172: regressions - trouble: blocked/broken/fail/pass

2022-09-13 Thread osstest service owner
flight 173172 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/173172/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-pvhv2-intel broken build-amd64-libvirt 6 libvi

Re: [ImageBuilder 0/2] Use lopper to generate partial dts

2022-09-13 Thread Stefano Stabellini
On Tue, 13 Sep 2022, Michal Orzel wrote: > Hi Ayan, > > On 12/09/2022 18:27, Ayan Kumar Halder wrote: > > Hi Michal, > > > > On 12/09/2022 12:59, Michal Orzel wrote: > >> This patch series introduces support to generate automatically passthrough > >> device trees using lopper. This feature should

Re: [ImageBuilder 2/2] Add support for lopper to generate partial dts

2022-09-13 Thread Stefano Stabellini
On Mon, 12 Sep 2022, Michal Orzel wrote: > On 12/09/2022 18:41, Ayan Kumar Halder wrote: > > Hi Michal, > > > > On 12/09/2022 12:59, Michal Orzel wrote: > >> Currently ImageBuilder can compile and merge partial dts obtained from > >> a repository specified using PASSTHROUGH_DTS_REPO. With the rece

Re: Setting constant-time mode CPU flag

2022-09-13 Thread Demi Marie Obenour
On Tue, Sep 13, 2022 at 04:47:24PM +0200, Jan Beulich wrote: > On 13.09.2022 16:22, Demi Marie Obenour wrote: > > On Tue, Sep 06, 2022 at 10:01:00AM +, Andrew Cooper wrote: > >> On 06/09/2022 10:52, Jan Beulich wrote: > >>> On 02.09.2022 04:05, Demi Marie Obenour wrote: > On Intel chips (I

[ovmf test] 173175: regressions - FAIL

2022-09-13 Thread osstest service owner
flight 173175 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173175/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172136 build-amd64-libvirt

Re: [PATCH v2] x86/PV: issue branch prediction barrier when switching 64-bit guest to kernel mode

2022-09-13 Thread Roger Pau Monné
On Tue, Sep 13, 2022 at 06:05:30PM +0200, Jan Beulich wrote: > On 13.09.2022 17:41, Roger Pau Monné wrote: > > On Tue, Jul 19, 2022 at 02:55:17PM +0200, Jan Beulich wrote: > >> Since both kernel and user mode run in ring 3, they run in the same > >> "predictor mode". While the kernel could take car

[linux-linus test] 173165: regressions - FAIL

2022-09-13 Thread osstest service owner
flight 173165 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/173165/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-libvirt 6 libvirt-buildfail REGR. vs. 172133 build-i386-libvirt

Re: [PATCH v2] x86/PV: issue branch prediction barrier when switching 64-bit guest to kernel mode

2022-09-13 Thread Jan Beulich
On 13.09.2022 17:41, Roger Pau Monné wrote: > On Tue, Jul 19, 2022 at 02:55:17PM +0200, Jan Beulich wrote: >> Since both kernel and user mode run in ring 3, they run in the same >> "predictor mode". While the kernel could take care of this itself, doing >> so would be yet another item distinguishin

Re: Licensing issues

2022-09-13 Thread Roger Pau Monné
On Fri, Jul 22, 2022 at 02:31:28PM +, Andrew Cooper wrote: > I've been cross-checking licensing details, and we have some problems. > > 1) We install xen/include/public/COPYING into /usr/include/xen/COPYING, > which is not common practice.  The installed file is mostly useless > because it dis

Re: [PATCH v2] x86/PV: issue branch prediction barrier when switching 64-bit guest to kernel mode

2022-09-13 Thread Roger Pau Monné
On Tue, Jul 19, 2022 at 02:55:17PM +0200, Jan Beulich wrote: > Since both kernel and user mode run in ring 3, they run in the same > "predictor mode". While the kernel could take care of this itself, doing > so would be yet another item distinguishing PV from native. Additionally > we're in a much

Re: [PATCH] x86: enable interrupts around dump_execstate()

2022-09-13 Thread Roger Pau Monné
On Mon, Dec 13, 2021 at 04:12:55PM +0100, Jan Beulich wrote: > show_hvm_stack() requires interrupts to be enabled to avoids triggering > the consistency check in check_lock() for the p2m lock. To do so in > spurious_interrupt() requires adding reentrancy protection / handling > there. There's also

Re: Setting constant-time mode CPU flag

2022-09-13 Thread Jan Beulich
On 13.09.2022 16:22, Demi Marie Obenour wrote: > On Tue, Sep 06, 2022 at 10:01:00AM +, Andrew Cooper wrote: >> On 06/09/2022 10:52, Jan Beulich wrote: >>> On 02.09.2022 04:05, Demi Marie Obenour wrote: On Intel chips (Ice Lake and later) and ARM64, a bit needs to be set in a CPU regis

Re: Setting constant-time mode CPU flag

2022-09-13 Thread Demi Marie Obenour
On Tue, Sep 06, 2022 at 10:01:00AM +, Andrew Cooper wrote: > On 06/09/2022 10:52, Jan Beulich wrote: > > On 02.09.2022 04:05, Demi Marie Obenour wrote: > >> On Intel chips (Ice Lake and later) and ARM64, a bit needs to be set in > >> a CPU register to enforce constant-time execution. Linux pla

Re: [PATCH] Add support for ESRT loading under Xen

2022-09-13 Thread Demi Marie Obenour
On Tue, Sep 06, 2022 at 08:49:54AM +0200, Jan Beulich wrote: > On 26.08.2022 20:01, Demi Marie Obenour wrote: > > On Fri, Aug 26, 2022 at 09:53:29AM +0200, Jan Beulich wrote: > >> On 25.08.2022 23:52, Demi Marie Obenour wrote: > >>> @@ -40,6 +41,38 @@ > >>> > >>> #define efi_data(op) (op.u.e

Re: [PATCH v2] x86/PCI: Prefer MMIO over PIO on all hypervisor

2022-09-13 Thread Vitaly Kuznetsov
Ajay Kaher writes: > Note: Corrected the Subject. > >> On 07/09/22, 8:50 PM, "Vitaly Kuznetsov" wrote: >> >>> diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c >>> index ddb7986..1e5a8f7 100644 >>> --- a/arch/x86/pci/common.c >>> +++ b/arch/x86/pci/common.c >>> @@ -20,6 +20,7 @@ >>> #

[xen-unstable test] 173162: tolerable FAIL

2022-09-13 Thread osstest service owner
flight 173162 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/173162/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-amd64-amd64-pygrub 17 guest-localmigrate fail pass in 173144 Tests which did not succeed, but

Re: [PATCH v2] Add support for ESRT loading under Xen

2022-09-13 Thread Demi Marie Obenour
On Mon, Sep 05, 2022 at 01:46:54PM +0200, Ard Biesheuvel wrote: > On Sun, 28 Aug 2022 at 04:52, Demi Marie Obenour > wrote: > > > > This is needed for fwupd to work in Qubes OS. > > > > Please elaborate on: Will do in v3. > - the current situation The ESRT is not available in dom0 under Xen.

Re: [PATCH] libvirt: disable Werror for non-libvirt flights

2022-09-13 Thread Roger Pau Monné
On Tue, Sep 13, 2022 at 01:54:12PM +0100, Ian Jackson wrote: > Roger Pau Monne writes ("[PATCH] libvirt: disable Werror for non-libvirt > flights"): > > Current usage of Werror=switch-enum by default for libvirt builds out > > of the git tree causes issues when new items are added to libxl public

Re: [PATCH] libvirt: disable Werror for non-libvirt flights

2022-09-13 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH] libvirt: disable Werror for non-libvirt flights"): > Current usage of Werror=switch-enum by default for libvirt builds out > of the git tree causes issues when new items are added to libxl public > API enums if those are used in a switch statement in libvirt code.

Re: [PATCH v2] x86/PCI: Prefer MMIO over PIO on all hypervisor

2022-09-13 Thread Ajay Kaher
Note: Corrected the Subject. > On 07/09/22, 8:50 PM, "Vitaly Kuznetsov" wrote: > >> diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c >> index ddb7986..1e5a8f7 100644 >> --- a/arch/x86/pci/common.c >> +++ b/arch/x86/pci/common.c >> @@ -20,6 +20,7 @@ >> #include >> #include >> #inc

[ImageBuilder v2 2/2] Add support for lopper to generate partial dts

2022-09-13 Thread Michal Orzel
Currently ImageBuilder can compile and merge partial dts obtained from a repository specified using PASSTHROUGH_DTS_REPO. With the recent changes done in the lopper, we can use it to generate partial dts automatically (to some extent as this is still an early support). Introduce LOPPER_PATH option

[ImageBuilder v2 1/2] Refactor sanity_check_partial_dts

2022-09-13 Thread Michal Orzel
Currently function sanity_check_partial_dts from scripts/common takes three arguments where the last two (repo, dir) are used always in conjuction to form a path to a directory storing partial dts. Modify the function to take only two arguments where the second one is to be a path to a directory st

[ImageBuilder v2 0/2] Use lopper to generate partial dts

2022-09-13 Thread Michal Orzel
This patch series introduces support to generate automatically passthrough device trees using lopper. This feature should be used with care as the corresponding lopper changes are still in an early support state. Current integration has been tested with several devices from ZynqMP ZCU102 board e.g.

[ovmf test] 173166: regressions - FAIL

2022-09-13 Thread osstest service owner
flight 173166 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173166/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172136 build-amd64-libvirt

Re: [ImageBuilder 0/2] Use lopper to generate partial dts

2022-09-13 Thread Michal Orzel
Hi Ayan, On 12/09/2022 18:27, Ayan Kumar Halder wrote: > Hi Michal, > > On 12/09/2022 12:59, Michal Orzel wrote: >> This patch series introduces support to generate automatically passthrough >> device trees using lopper. This feature should be used with care as the >> corresponding lopper changes

Re: [PATCH v6 0/3] amd/msr: implement MSR_VIRT_SPEC_CTRL for HVM guests

2022-09-13 Thread Roger Pau Monné
On Mon, Aug 15, 2022 at 06:49:08PM +, Andrew Cooper wrote: > On 15/08/2022 10:14, Jan Beulich wrote: > > On 15.08.2022 10:15, Andrew Cooper wrote: > >> On 15/08/2022 09:01, Jan Beulich wrote: > >>> On 17.05.2022 17:31, Roger Pau Monne wrote: > Roger Pau Monne (3): > amd/msr: impleme

[qemu-mainline test] 173160: regressions - FAIL

2022-09-13 Thread osstest service owner
flight 173160 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/173160/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-libvirt 6 libvirt-buildfail REGR. vs. 172123 build-i386-libvir

Re: [ImageBuilder 2/2] Add support for lopper to generate partial dts

2022-09-13 Thread Michal Orzel
On 13/09/2022 09:54, Michal Orzel wrote: > > Hi Stefano, > > On 13/09/2022 03:13, Stefano Stabellini wrote: >> >> On Mon, 12 Sep 2022, Michal Orzel wrote: >>> Currently ImageBuilder can compile and merge partial dts obtained from >>> a repository specified using PASSTHROUGH_DTS_REPO. With the

[PATCH] libvirt: disable Werror for non-libvirt flights

2022-09-13 Thread Roger Pau Monne
Current usage of Werror=switch-enum by default for libvirt builds out of the git tree causes issues when new items are added to libxl public API enums if those are used in a switch statement in libvirt code. This leads to libvirt build failures for seemingly unrelated libxl changes. In order to pr

[PATCH v2 2/2] xen/gnttab: reduce size of struct active_grant_entry

2022-09-13 Thread Juergen Gross
The size of struct active_grant_entry for 64-bit builds is 40 or 48 bytes today (with or without NDEBUG). It can easily be reduced by 8 bytes by replacing the trans_domain pointer with the domid of the related domain. trans_domain is only ever used for transitive grants, which doesn't have any kno

[PATCH v2 1/2] xen: add knownalive_domain_from_domid() helper

2022-09-13 Thread Juergen Gross
Add a helper knownalive_domain_from_domid() returning the struct domain pointer for a domain give by its domid and which is known not being able to be released (its reference count isn't incremented and no rcu_lock_domain() is called for it). In order to simplify coding add an internal helper for

[PATCH v2 0/2] xen/gnttab: reduce size of struct active_grant_entry

2022-09-13 Thread Juergen Gross
While looking at the grant table code I thought it should be possible to have a smaller struct active_grant_entry. This approach should only hit transitive grants with some negative performance effect, "normal" grants should be not affected. Juergen Gross (2): xen: add knownalive_domain_from_dom

[libvirt test] 173164: regressions - FAIL

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

[linux-5.4 test] 173158: regressions - FAIL

2022-09-13 Thread osstest service owner
flight 173158 linux-5.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/173158/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172128 build-amd64-libvirt

[ovmf test] 173163: regressions - FAIL

2022-09-13 Thread osstest service owner
flight 173163 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173163/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt6 libvirt-buildfail REGR. vs. 172136 build-amd64-libvirt

Re: [ImageBuilder 2/2] Add support for lopper to generate partial dts

2022-09-13 Thread Michal Orzel
Hi Stefano, On 13/09/2022 03:13, Stefano Stabellini wrote: > > On Mon, 12 Sep 2022, Michal Orzel wrote: >> Currently ImageBuilder can compile and merge partial dts obtained from >> a repository specified using PASSTHROUGH_DTS_REPO. With the recent >> changes done in the lopper, we can use it to g