[GIT PULL] xen: branch for v5.19-rc1b

2022-06-03 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-5.19-rc1b-tag xen: 2nd batch for v5.19-rc1 It contains 2 cleanup patches for Xen related code and (more important) an update of MAINTAINERS for Xen, as Boris Ostrovsky decided to step

Re: [XEN PATCH] tools/libs/light/libxl_pci.c: explicitly grant access to Intel IGD opregion

2022-06-03 Thread Chuck Zmudzinski
On 3/30/22 1:15 PM, Anthony PERARD wrote: Hi Chuck, On Sun, Mar 13, 2022 at 11:41:37PM -0400, Chuck Zmudzinski wrote: When gfx_passthru is enabled for the Intel IGD, hvmloader maps the IGD opregion to the guest but libxl does not grant the guest permission to I'm not reading the same thing whe

[linux-linus test] 170821: regressions - FAIL

2022-06-03 Thread osstest service owner
flight 170821 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/170821/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-libvirt 8 xen-boot fail REGR. vs. 170714 test-amd64-amd64-li

Re: [PATCH 14/16] xen/arm64: mm: Add memory to the boot allocator first

2022-06-03 Thread Stefano Stabellini
On Fri, 20 May 2022, Julien Grall wrote: > From: Julien Grall > > Currently, memory is added to the boot allocator after the xenheap > mappings are done. This will break if the first mapping is more than > 512GB of RAM. > > In addition to that, a follow-up patch will rework setup_xenheap_mapping

Re: [PATCH 16/16] xen/arm: mm: Re-implement setup_frame_table_mappings() with map_pages_to_xen()

2022-06-03 Thread Stefano Stabellini
On Fri, 20 May 2022, Julien Grall wrote: > From: Julien Grall > > Now that map_pages_to_xen() has been extended to support 2MB mappings, > we can replace the create_mappings() call by map_pages_to_xen() call. > > This has the advantage to remove the differences between 32-bit and > 64-bit code.

Re: [PATCH 13/16] xen/arm32: setup: Move out the code to populate the boot allocator

2022-06-03 Thread Stefano Stabellini
On Fri, 20 May 2022, Julien Grall wrote: > From: Julien Grall > > In a follow-up patch, we will want to populate the boot allocator > separately for arm64. The code will end up to be very similar to the one > on arm32. So move out the code in a new helper populate_boot_allocator(). > > For now t

Re: [PATCH 05/16] xen/arm: mm: Re-implement early_fdt_map() using map_pages_to_xen()

2022-06-03 Thread Stefano Stabellini
On Fri, 20 May 2022, Julien Grall wrote: > From: Julien Grall > > Now that map_pages_to_xen() has been extended to support 2MB mappings, > we can replace the create_mappings() calls by map_pages_to_xen() calls. > > The mapping can also be marked read-only as Xen should not modify > the host Devi

Re: [PATCH 04/16] xen/arm: mm: Don't open-code Xen PT update in remove_early_mappings()

2022-06-03 Thread Stefano Stabellini
On Fri, 20 May 2022, Julien Grall wrote: > From: Julien Grall > > Now that xen_pt_update_entry() is able to deal with different mapping > size, we can replace the open-coding of the page-tables update by a call > to modify_xen_mappings(). > > As the function is not meant to fail, a BUG_ON() is a

Re: [PATCH 03/16] xen/arm: mm: Avoid flushing the TLBs when mapping are inserted

2022-06-03 Thread Stefano Stabellini
On Fri, 20 May 2022, Julien Grall wrote: > From: Julien Grall > > Currently, the function xen_pt_update() will flush the TLBs even when > the mappings are inserted. This is a bit wasteful because we don't > allow mapping replacement. Even if we were, the flush would need to > happen earlier becau

Re: [PATCH 01/16] xen/arm: mm: Allow other mapping size in xen_pt_update_entry()

2022-06-03 Thread Stefano Stabellini
On Fri, 20 May 2022, Julien Grall wrote: > From: Julien Grall > > At the moment, xen_pt_update_entry() only supports mapping at level 3 > (i.e 4KB mapping). While this is fine for most of the runtime helper, > the boot code will require to use superpage mapping. > > We don't want to allow superp

[qemu-mainline test] 170820: tolerable FAIL - PUSHED

2022-06-03 Thread osstest service owner
flight 170820 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/170820/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-xl-qemuu-win7-amd64 19 guest-stopfail like 170812 test-armhf-armhf-libvirt 16 sav

Re: [RFC PATCH 1/2] xen/unpopulated-alloc: Introduce helpers for DMA allocations

2022-06-03 Thread Stefano Stabellini
On Tue, 17 May 2022, Oleksandr Tyshchenko wrote: > From: Oleksandr Tyshchenko > > Add ability to allocate unpopulated DMAable (contiguous) pages > suitable for grant mapping into. This is going to be used by gnttab > code (see gnttab_dma_alloc_pages()). > > TODO: There is a code duplication in f

Re: [RFC PATCH 2/2] xen/grant-table: Use unpopulated DMAable pages instead of real RAM ones

2022-06-03 Thread Stefano Stabellini
On Tue, 17 May 2022, Oleksandr Tyshchenko wrote: > From: Oleksandr Tyshchenko > > Depends on CONFIG_XEN_UNPOPULATED_ALLOC. If enabled then unpopulated > DMAable (contiguous) pages will be allocated for grant mapping into > instead of ballooning out real RAM pages. > > TODO: Fallback to real RAM

[linux-linus test] 170815: regressions - FAIL

2022-06-03 Thread osstest service owner
flight 170815 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/170815/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-libvirt 8 xen-boot fail REGR. vs. 170714 test-amd64-amd64-li

Re: [PATCH RFC 3/6] x86/ioapic: RTE modifications must use ioapic_write_entry

2022-06-03 Thread Roger Pau Monné
On Fri, Jun 03, 2022 at 03:34:33PM +0200, Jan Beulich wrote: > On 21.04.2022 15:21, Roger Pau Monne wrote: > > Do not allow to write to RTE registers using io_apic_write and instead > > require changes to RTE to be performed using ioapic_write_entry. > > Hmm, this doubles the number of MMIO access

Re: [PATCH RFC 2/6] x86/ioapic: add a raw field to RTE struct

2022-06-03 Thread Roger Pau Monné
On Fri, Jun 03, 2022 at 03:24:37PM +0200, Jan Beulich wrote: > On 21.04.2022 15:21, Roger Pau Monne wrote: > > No functional change intended. > > > > Signed-off-by: Roger Pau Monné > > Once seeing the purpose (in a later patch, I suppose) I certainly > don't mind. We do have a couple of literal

Re: [PATCH v3] xen/gntdev: Avoid blocking in unmap_grant_pages()

2022-06-03 Thread Juergen Gross
On 03.06.22 00:53, Demi Marie Obenour wrote: unmap_grant_pages() currently waits for the pages to no longer be used. In https://github.com/QubesOS/qubes-issues/issues/7481, this lead to a deadlock against i915: i915 was waiting for gntdev's MMU notifier to finish, while gntdev was waiting for i91

Re: [PATCH RFC 1/6] x86/ioapic: set disable hook for masking edge interrupts

2022-06-03 Thread Roger Pau Monné
On Fri, Jun 03, 2022 at 03:19:34PM +0200, Jan Beulich wrote: > On 21.04.2022 15:21, Roger Pau Monne wrote: > > Allow disabling (masking) IO-APIC pins set to edge trigger mode. This > > is required in order to safely migrate such interrupts between CPUs, > > as the write to update the IO-APIC RTE (

Re: [PATCH v2 3/3] x86/vmx: implement Notify VM Exit

2022-06-03 Thread Roger Pau Monné
On Fri, Jun 03, 2022 at 02:49:54PM +0200, Jan Beulich wrote: > On 26.05.2022 13:11, Roger Pau Monne wrote: > > Under certain conditions guests can get the CPU stuck in an unbounded > > loop without the possibility of an interrupt window to occur on > > instruction boundary. This was the case with

[ovmf test] 170819: all pass - PUSHED

2022-06-03 Thread osstest service owner
flight 170819 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170819/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 0a4019ec9de64c6565ea545dc8d847afe2b30d6c baseline version: ovmf 632574ced10fe184d5665

Re: [PATCH v2 1/3] x86/vmx: implement Bus Lock detection

2022-06-03 Thread Roger Pau Monné
On Fri, Jun 03, 2022 at 02:16:47PM +0200, Jan Beulich wrote: > On 26.05.2022 13:11, Roger Pau Monne wrote: > > Add support for enabling Bus Lock Detection on Intel systems. Such > > detection works by triggering a vmexit, which ought to be enough of a > > pause to prevent a guest from abusing of t

Re: [RFC v2 6/8] tools/arm: Introduce force_assign_without_iommu option to xl.cfg

2022-06-03 Thread Jan Beulich
On 08.02.2022 19:00, Oleksii Moisieiev wrote: > --- a/xen/common/domain.c > +++ b/xen/common/domain.c > @@ -512,7 +512,7 @@ static int sanitise_domain_config(struct > xen_domctl_createdomain *config) > > if ( iommu ) > { > -if ( config->iommu_opts & ~XEN_DOMCTL_IOMMU_no_sharept

Re: [PATCH RFC 3/6] x86/ioapic: RTE modifications must use ioapic_write_entry

2022-06-03 Thread Jan Beulich
On 21.04.2022 15:21, Roger Pau Monne wrote: > Do not allow to write to RTE registers using io_apic_write and instead > require changes to RTE to be performed using ioapic_write_entry. Hmm, this doubles the number of MMIO access in affected code fragments. > --- a/xen/arch/x86/include/asm/io_apic.

Re: [PATCH RFC 2/6] x86/ioapic: add a raw field to RTE struct

2022-06-03 Thread Jan Beulich
On 21.04.2022 15:21, Roger Pau Monne wrote: > No functional change intended. > > Signed-off-by: Roger Pau Monné Once seeing the purpose (in a later patch, I suppose) I certainly don't mind. We do have a couple of literal initializers, though (see e.g. the top of ioapic_guest_write()). Do those s

Re: [PATCH RFC 1/6] x86/ioapic: set disable hook for masking edge interrupts

2022-06-03 Thread Jan Beulich
On 21.04.2022 15:21, Roger Pau Monne wrote: > Allow disabling (masking) IO-APIC pins set to edge trigger mode. This > is required in order to safely migrate such interrupts between CPUs, > as the write to update the IO-APIC RTE (or the IRTE) is not done > atomically, For IRTE on VT-d we use cmpxc

Re: [RFC PATCH 1/4] kconfig: allow configuration of maximum modules

2022-06-03 Thread Jan Beulich
On 31.05.2022 04:41, Daniel P. Smith wrote: > --- a/xen/arch/x86/guest/xen/pvh-boot.c > +++ b/xen/arch/x86/guest/xen/pvh-boot.c > @@ -32,7 +32,7 @@ bool __initdata pvh_boot; > uint32_t __initdata pvh_start_info_pa; > > static multiboot_info_t __initdata pvh_mbi; > -static module_t __initdata pv

Re: [PATCH v2 3/3] x86/vmx: implement Notify VM Exit

2022-06-03 Thread Jan Beulich
On 26.05.2022 13:11, Roger Pau Monne wrote: > Under certain conditions guests can get the CPU stuck in an unbounded > loop without the possibility of an interrupt window to occur on > instruction boundary. This was the case with the scenarios described > in XSA-156. > > Make use of the Notify VM

Re: [PATCH v2 2/3] x86/vmx: introduce helper to set VMX_INTR_SHADOW_NMI

2022-06-03 Thread Jan Beulich
On 26.05.2022 13:11, Roger Pau Monne wrote: > Introduce a small helper to OR VMX_INTR_SHADOW_NMI in > GUEST_INTERRUPTIBILITY_INFO in order to help dealing with the NMI > unblocked by IRET case. Replace the existing usage in handling > EXIT_REASON_EXCEPTION_NMI and also add such handling to EPT vio

Re: [PATCH v2 1/3] x86/vmx: implement Bus Lock detection

2022-06-03 Thread Jan Beulich
On 26.05.2022 13:11, Roger Pau Monne wrote: > Add support for enabling Bus Lock Detection on Intel systems. Such > detection works by triggering a vmexit, which ought to be enough of a > pause to prevent a guest from abusing of the Bus Lock. > > Add an extra Xen perf counter to track the number o

[ovmf test] 170818: all pass - PUSHED

2022-06-03 Thread osstest service owner
flight 170818 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170818/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 632574ced10fe184d5665b73c62c959109c39961 baseline version: ovmf 0223898f3e45e8c7e9d8b

Re: [RFC PATCH 2/2] tools/misc: Add xen-stats tool

2022-06-03 Thread Matias Ezequiel Vara Larsen
Hello Anthony and thanks for your comments. I addressed them below: On Tue, May 31, 2022 at 12:16:02PM +0100, Anthony PERARD wrote: > Hi Matias, > > On Tue, May 17, 2022 at 04:33:15PM +0200, Matias Ezequiel Vara Larsen wrote: > > Add a demostration tool that uses the stats_table resource to > > q

[xen-unstable test] 170813: tolerable FAIL

2022-06-03 Thread osstest service owner
flight 170813 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/170813/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-amd64-i386-examine-uefi 6 xen-install fail in 170806 pass in 170813 test-armhf-armhf-xl-rtds 18

[ovmf test] 170816: all pass - PUSHED

2022-06-03 Thread osstest service owner
flight 170816 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170816/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 0223898f3e45e8c7e9d8ba01aea5f95a282f420b baseline version: ovmf 64706ef761273ba403f9c

[libvirt test] 170814: regressions - FAIL

2022-06-03 Thread osstest service owner
flight 170814 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/170814/ 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

[qemu-mainline test] 170812: tolerable FAIL - PUSHED

2022-06-03 Thread osstest service owner
flight 170812 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/170812/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt-vhd 19 guest-start/debian.repeat fail blocked in 170809 test-amd64-amd64-xl-qemuu-win7-a