Re: [PATCH v4 7/8] xen/x86: add detection of memory interleaves for different nodes

2022-06-01 Thread Wei Chen
Hi Jan, On 2022/5/31 21:21, Jan Beulich wrote: On 23.05.2022 08:25, Wei Chen wrote: @@ -119,20 +125,45 @@ int valid_numa_range(paddr_t start, paddr_t end, nodeid_t node) return 0; To limit indentation depth, on of the two sides of the conditional can be moved out, by omitting the

RE: [PATCH v4 7/8] xen/x86: add detection of memory interleaves for different nodes

2022-06-01 Thread Wei Chen
Hi Jan, > -Original Message- > From: Jan Beulich > Sent: 2022年6月1日 14:32 > To: Wei Chen > Cc: nd ; Andrew Cooper ; Roger Pau > Monné ; Wei Liu ; Jiamei Xie > ; xen-devel@lists.xenproject.org > Subject: Re: [PATCH v4 7/8] xen/x86: add detection of memory interleaves > for different nodes

RE: [PATCH v5 2/9] xen: do not free reserved memory into heap

2022-06-01 Thread Penny Zheng
> -Original Message- > From: Jan Beulich > Sent: Tuesday, May 31, 2022 4:37 PM > To: Penny Zheng > Cc: Wei Chen ; Stefano Stabellini > ; Julien Grall ; Bertrand Marquis > ; Volodymyr Babchuk > ; Andrew Cooper > ; George Dunlap ; > Wei Liu ; xen-devel@lists.xenproject.org > Subject: Re:

RE: [PATCH v5 1/9] xen/arm: rename PGC_reserved to PGC_staticmem

2022-06-01 Thread Penny Zheng
Hi jan > -Original Message- > From: Jan Beulich > Sent: Tuesday, May 31, 2022 4:33 PM > To: Penny Zheng > Cc: Wei Chen ; Stefano Stabellini > ; Julien Grall ; Bertrand Marquis > ; Volodymyr Babchuk > ; Andrew Cooper > ; George Dunlap ; > Wei Liu ; xen-devel@lists.xenproject.org >

[xen-unstable test] 170797: tolerable FAIL

2022-06-01 Thread osstest service owner
flight 170797 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/170797/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-amd64-i386-xl-qemut-debianhvm-i386-xsm 12 debian-hvm-install fail in 170792 pass in 170797

Re: [PATCH V2] libxl/arm: Create specific IOMMU node to be referred by virtio-mmio device

2022-06-01 Thread Stefano Stabellini
On Wed, 1 Jun 2022, Oleksandr wrote: > On 01.06.22 04:04, Stefano Stabellini wrote: > > On Tue, 31 May 2022, Oleksandr Tyshchenko wrote: > > > From: Oleksandr Tyshchenko > > > > > > Reuse generic IOMMU device tree bindings to communicate Xen specific > > > information for the virtio devices for

Re: MOVING COMMUNITY CALL Call for agenda items for 9 June Community Call @ 1500 UTC

2022-06-01 Thread Stefano Stabellini
Reducing CC and adding fusa-sig Actually Jun 9 at 8AM California / 4PM UK doesn't work for some of you, so it is either: 1) Jun 9 at 7AM California / 3PM UK 2) Jun 14 at 8AM California / 4PM UK My preference is the first option because it is sooner but let me know if it doesn't work and we'll

[PATCH] xen-blkfront: Handle NULL gendisk

2022-06-01 Thread Jason Andryuk
When a VBD is not fully created and then closed, the kernel can have a NULL pointer dereference: The reproducer is trivial: [user@dom0 ~]$ sudo xl block-attach work backend=sys-usb vdev=xvdi target=/dev/sdz [user@dom0 ~]$ xl block-list work Vdev BE handle state evt-ch ring-ref BE-path 51712 0

[linux-linus test] 170794: regressions - FAIL

2022-06-01 Thread osstest service owner
flight 170794 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/170794/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-dom0pvh-xl-amd 14 guest-start fail REGR. vs. 170714

Re: [PATCH 09/15] swiotlb: make the swiotlb_init interface more useful

2022-06-01 Thread Nathan Chancellor
On Wed, Jun 01, 2022 at 08:21:41PM +0200, Christoph Hellwig wrote: > On Wed, Jun 01, 2022 at 11:11:57AM -0700, Nathan Chancellor wrote: > > On Wed, Jun 01, 2022 at 07:57:43PM +0200, Christoph Hellwig wrote: > > > On Wed, Jun 01, 2022 at 10:46:54AM -0700, Nathan Chancellor wrote: > > > > On Wed,

Re: [PATCH 09/15] swiotlb: make the swiotlb_init interface more useful

2022-06-01 Thread Christoph Hellwig
On Wed, Jun 01, 2022 at 11:11:57AM -0700, Nathan Chancellor wrote: > On Wed, Jun 01, 2022 at 07:57:43PM +0200, Christoph Hellwig wrote: > > On Wed, Jun 01, 2022 at 10:46:54AM -0700, Nathan Chancellor wrote: > > > On Wed, Jun 01, 2022 at 07:34:41PM +0200, Christoph Hellwig wrote: > > > > Can you

Re: [PATCH 09/15] swiotlb: make the swiotlb_init interface more useful

2022-06-01 Thread Nathan Chancellor
On Wed, Jun 01, 2022 at 07:57:43PM +0200, Christoph Hellwig wrote: > On Wed, Jun 01, 2022 at 10:46:54AM -0700, Nathan Chancellor wrote: > > On Wed, Jun 01, 2022 at 07:34:41PM +0200, Christoph Hellwig wrote: > > > Can you send me the full dmesg and the content of > > >

[PATCH V9 1/2] libxl: Add support for Virtio disk configuration

2022-06-01 Thread Oleksandr Tyshchenko
From: Oleksandr Tyshchenko This patch adds basic support for configuring and assisting virtio-mmio based virtio-disk backend (emulator) which is intended to run out of Qemu and could be run in any domain. Although the Virtio block device is quite different from traditional Xen PV block device

[PATCH V9 2/2] libxl: Introduce basic virtio-mmio support on Arm

2022-06-01 Thread Oleksandr Tyshchenko
From: Julien Grall This patch introduces helpers to allocate Virtio MMIO params (IRQ and memory region) and create specific device node in the Guest device-tree with allocated params. In order to deal with multiple Virtio devices, reserve corresponding ranges. For now, we reserve 1MB for memory

[PATCH V9 0/2] Virtio support for toolstack on Arm (Was "IOREQ feature (+ virtio-mmio) on Arm")

2022-06-01 Thread Oleksandr Tyshchenko
From: Oleksandr Tyshchenko Hello all. The purpose of this patch series is to add missing virtio-mmio bits to Xen toolstack on Arm. The Virtio support for toolstack [1] was postponed as the main target was to upstream IOREQ/DM support on Arm in the first place. Now, we already have IOREQ

Re: [PATCH 09/15] swiotlb: make the swiotlb_init interface more useful

2022-06-01 Thread Christoph Hellwig
On Wed, Jun 01, 2022 at 10:46:54AM -0700, Nathan Chancellor wrote: > On Wed, Jun 01, 2022 at 07:34:41PM +0200, Christoph Hellwig wrote: > > Can you send me the full dmesg and the content of > > /sys/kernel/debug/swiotlb/io_tlb_nslabs for a good and a bad boot? > > Sure thing, they are attached!

Re: [PATCH 09/15] swiotlb: make the swiotlb_init interface more useful

2022-06-01 Thread Nathan Chancellor
On Wed, Jun 01, 2022 at 07:34:41PM +0200, Christoph Hellwig wrote: > Can you send me the full dmesg and the content of > /sys/kernel/debug/swiotlb/io_tlb_nslabs for a good and a bad boot? Sure thing, they are attached! If there is anything else I can provide or test, I am more than happy to do

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

2022-06-01 Thread Julien Grall
On 31/05/2022 11:53, Daniel P. Smith wrote: On 5/31/22 05:25, Julien Grall wrote: Hi, On 31/05/2022 03:41, Daniel P. Smith wrote: diff --git a/xen/arch/Kconfig b/xen/arch/Kconfig index f16eb0df43..57b14e22c9 100644 --- a/xen/arch/Kconfig +++ b/xen/arch/Kconfig @@ -17,3 +17,15 @@ config

Re: [PATCH 09/15] swiotlb: make the swiotlb_init interface more useful

2022-06-01 Thread Christoph Hellwig
Can you send me the full dmesg and the content of /sys/kernel/debug/swiotlb/io_tlb_nslabs for a good and a bad boot? Thanks!

Re: [XEN PATCH 3/4] build: replace get-fields.sh by a perl script

2022-06-01 Thread Elliott Mitchell
On Wed, Jun 01, 2022 at 05:59:08PM +0100, Anthony PERARD wrote: > diff --git a/xen/tools/compat-xlat-header b/xen/tools/compat-xlat-header > new file mode 100755 > index 00..f1f42a9dde > --- /dev/null > +++ b/xen/tools/compat-xlat-header > @@ -0,0 +1,539 @@ > +#!/usr/bin/perl -w > + > +use

Re: [PATCH 09/15] swiotlb: make the swiotlb_init interface more useful

2022-06-01 Thread Nathan Chancellor
Hi Christoph, On Mon, Apr 04, 2022 at 07:05:53AM +0200, Christoph Hellwig wrote: > Pass a bool to pass if swiotlb needs to be enabled based on the > addressing needs and replace the verbose argument with a set of > flags, including one to force enable bounce buffering. > > Note that this patch

Re: [PATCH v2 2/2] docs/misra: add Rule 5.1

2022-06-01 Thread Julien Grall
Hi Stefano, On 01/06/2022 02:44, Stefano Stabellini wrote: From: Stefano Stabellini Add Rule 5.1, with the additional note that the character limit for Xen is 40 characters. The max length identifiers found by ECLAIR are: __mitigate_spectre_bhb_clear_insn_start

Re: [PATCH v2 1/2] docs/misra: introduce rules.rst

2022-06-01 Thread Julien Grall
Hi Stefano, On 01/06/2022 02:44, Stefano Stabellini wrote: From: Stefano Stabellini Introduce a list of MISRA C rules that apply to the Xen hypervisor. The list is in RST format. Specify that rules deviations need to be documented. Introduce a documentation tag for in-code comments to mark

Re: [XEN PATCH 0/4] xen: rework compat headers generation

2022-06-01 Thread Andrew Cooper
On 01/06/2022 17:59, Anthony PERARD wrote: > Patch series available in this git branch: > https://xenbits.xen.org/git-http/people/aperard/xen-unstable.git > br.build-system-xen-include-rework-v1 > > Hi, > > This patch series is about 2 improvement. First one is to use $(if_changed, ) > in

[XEN PATCH 3/4] build: replace get-fields.sh by a perl script

2022-06-01 Thread Anthony PERARD
The get-fields.sh which generate all the include/compat/.xlat/*.h headers is quite slow. It takes for example nearly 3 seconds to generate platform.h on a recent machine, or 2.3 seconds for memory.h. Since it's only text processing, rewriting the mix of shell/sed/python into a single perl script

[XEN PATCH 4/4] build: remove auto.conf prerequisite from compat/xlat.h target

2022-06-01 Thread Anthony PERARD
Now that the command line generating "xlat.h" is check on rebuild, the header will be regenerated whenever the list of xlat headers changes due to change in ".config". We don't need to force a regeneration for every changes in ".config". Signed-off-by: Anthony PERARD --- xen/include/Makefile |

[XEN PATCH 2/4] build: set PERL

2022-06-01 Thread Anthony PERARD
We are going to use it in a moment. Signed-off-by: Anthony PERARD --- xen/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/Makefile b/xen/Makefile index 82f5310b12..a6650a2acc 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -22,6 +22,7 @@ PYTHON_INTERPRETER:= $(word

[XEN PATCH 1/4] build: xen/include: use if_changed

2022-06-01 Thread Anthony PERARD
Use "define" for the headers*_chk commands as otherwise the "#" is interpreted as a comment and make can't find the end of $(foreach,). Adding several .PRECIOUS as without them `make` deletes the intermediate targets. This is an issue because the macro $(if_changed,) check if the target exist in

[XEN PATCH 0/4] xen: rework compat headers generation

2022-06-01 Thread Anthony PERARD
Patch series available in this git branch: https://xenbits.xen.org/git-http/people/aperard/xen-unstable.git br.build-system-xen-include-rework-v1 Hi, This patch series is about 2 improvement. First one is to use $(if_changed, ) in "include/Makefile" to make the generation of the compat headers

Re: [PATCH V2] libxl/arm: Create specific IOMMU node to be referred by virtio-mmio device

2022-06-01 Thread Oleksandr
On 01.06.22 19:43, Julien Grall wrote: Hi Oleksandr, Hello Julien On 30/05/2022 22:06, Oleksandr Tyshchenko wrote: diff --git a/xen/include/public/device_tree_defs.h b/xen/include/public/device_tree_defs.h index 209d43d..df58944 100644 --- a/xen/include/public/device_tree_defs.h +++

Re: [PATCH V2] libxl/arm: Create specific IOMMU node to be referred by virtio-mmio device

2022-06-01 Thread Julien Grall
Hi Oleksandr, On 30/05/2022 22:06, Oleksandr Tyshchenko wrote: diff --git a/xen/include/public/device_tree_defs.h b/xen/include/public/device_tree_defs.h index 209d43d..df58944 100644 --- a/xen/include/public/device_tree_defs.h +++ b/xen/include/public/device_tree_defs.h @@ -7,6 +7,7 @@ *

Re: MOVING COMMUNITY CALL Call for agenda items for 9 June Community Call @ 1500 UTC

2022-06-01 Thread Stefano Stabellini
Hi all, I would like to suggest to have the MISRA C meeting just before the community call (7AM California time). If it is difficult for any of the must-have attendees, then I would like to ask to reserve 30 minutes of the community call to make progress on MISRA. Cheers, Stefano On Wed, 1

Re: [PATCH v5 03/15] IOMMU/x86: support freeing of pagetables

2022-06-01 Thread Jan Beulich
On 01.06.2022 11:24, Roger Pau Monné wrote: > On Wed, Jun 01, 2022 at 09:32:44AM +0200, Jan Beulich wrote: >> On 31.05.2022 18:25, Roger Pau Monné wrote: >>> On Fri, May 27, 2022 at 01:13:09PM +0200, Jan Beulich wrote: @@ -566,6 +567,98 @@ struct page_info *iommu_alloc_pgtable(st

[ovmf test] 170798: all pass - PUSHED

2022-06-01 Thread osstest service owner
flight 170798 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170798/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 62044aa99bcf0a7b1581b24ad8e8f105e48fa15a baseline version: ovmf

Re: [PATCH v5 01/15] IOMMU/x86: restrict IO-APIC mappings for PV Dom0

2022-06-01 Thread Jan Beulich
On 01.06.2022 10:17, Roger Pau Monné wrote: > On Wed, Jun 01, 2022 at 09:10:09AM +0200, Jan Beulich wrote: >> On 31.05.2022 18:15, Roger Pau Monné wrote: >>> On Tue, May 31, 2022 at 05:40:03PM +0200, Jan Beulich wrote: On 31.05.2022 16:40, Roger Pau Monné wrote: > On Fri, May 27, 2022 at

Re: [PATCH] x86/spec-ctrl: Enumeration for new Intel BHI controls

2022-06-01 Thread Jan Beulich
On 31.05.2022 21:21, Andrew Cooper wrote: > https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/technical-documentation/branch-history-injection.html > > Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich

Re: [PATCH V2] libxl/arm: Create specific IOMMU node to be referred by virtio-mmio device

2022-06-01 Thread Oleksandr
On 01.06.22 04:04, Stefano Stabellini wrote: Hello Stefano On Tue, 31 May 2022, Oleksandr Tyshchenko wrote: From: Oleksandr Tyshchenko Reuse generic IOMMU device tree bindings to communicate Xen specific information for the virtio devices for which the restricted memory access using Xen

Re: [PATCH V3 5/8] dt-bindings: Add xen,grant-dma IOMMU description for xen-grant DMA ops

2022-06-01 Thread Oleksandr
On 01.06.22 03:34, Stefano Stabellini wrote: Hello Stefano On Tue, 31 May 2022, Oleksandr Tyshchenko wrote: From: Oleksandr Tyshchenko The main purpose of this binding is to communicate Xen specific information using generic IOMMU device tree bindings (which is a good fit here) rather

Re: Process for cherry-picking patches from other projects

2022-06-01 Thread George Dunlap
> On 18 May 2022, at 08:38, Julien Grall wrote: > > Hi Stefano, > > On 18/05/2022 04:12, Stefano Stabellini wrote: >> On Tue, 17 May 2022, Jan Beulich wrote: >>> Hmm. The present rules written down in docs/process/sending-patches.pandoc >>> are a result of me having been accused of unduly

Re: [PATCH v5 08/15] IOMMU/x86: prefill newly allocate page tables

2022-06-01 Thread Jan Beulich
On 01.06.2022 14:59, Roger Pau Monné wrote: > On Fri, May 27, 2022 at 01:17:35PM +0200, Jan Beulich wrote: >> Page tables are used for two purposes after allocation: They either >> start out all empty, or they are filled to replace a superpage. >> Subsequently, to replace all empty or fully

[xen-unstable-smoke test] 170796: tolerable all pass - PUSHED

2022-06-01 Thread osstest service owner
flight 170796 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/170796/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 15 migrate-support-checkfail never pass test-arm64-arm64-xl-xsm

Re: [PATCH v5 07/15] x86: introduce helper for recording degree of contiguity in page tables

2022-06-01 Thread Roger Pau Monné
On Wed, Jun 01, 2022 at 02:11:53PM +0200, Jan Beulich wrote: > On 01.06.2022 13:29, Roger Pau Monné wrote: > > On Fri, May 27, 2022 at 01:17:08PM +0200, Jan Beulich wrote: > >> --- /dev/null > >> +++ b/xen/arch/x86/include/asm/pt-contig-markers.h > >> @@ -0,0 +1,110 @@ > >> +#ifndef

Re: [PATCH v5 08/15] IOMMU/x86: prefill newly allocate page tables

2022-06-01 Thread Roger Pau Monné
On Fri, May 27, 2022 at 01:17:35PM +0200, Jan Beulich wrote: > Page tables are used for two purposes after allocation: They either > start out all empty, or they are filled to replace a superpage. > Subsequently, to replace all empty or fully contiguous page tables, > contiguous sub-regions will

Re: [PATCH v5 07/15] x86: introduce helper for recording degree of contiguity in page tables

2022-06-01 Thread Jan Beulich
On 01.06.2022 13:29, Roger Pau Monné wrote: > On Fri, May 27, 2022 at 01:17:08PM +0200, Jan Beulich wrote: >> --- /dev/null >> +++ b/xen/arch/x86/include/asm/pt-contig-markers.h >> @@ -0,0 +1,110 @@ >> +#ifndef __ASM_X86_PT_CONTIG_MARKERS_H >> +#define __ASM_X86_PT_CONTIG_MARKERS_H >> + >> +/* >>

[libvirt test] 170793: regressions - FAIL

2022-06-01 Thread osstest service owner
flight 170793 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/170793/ 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: [PATCH v5 07/15] x86: introduce helper for recording degree of contiguity in page tables

2022-06-01 Thread Roger Pau Monné
On Fri, May 27, 2022 at 01:17:08PM +0200, Jan Beulich wrote: > This is a re-usable helper (kind of a template) which gets introduced > without users so that the individual subsequent patches introducing such > users can get committed independently of one another. > > See the comment at the top of

Re: [PATCH] tools/libxl: optimize domain creation skipping domain cpupool move

2022-06-01 Thread Anthony PERARD
On Thu, May 26, 2022 at 09:12:30AM +0100, Luca Fancellu wrote: > Commit 92ea9c54fc81 ("arm/dom0less: assign dom0less guests to cpupools") > introduced a way to start a domain directly on a certain cpupool, > adding a "cpupool_id" member to struct xen_domctl_createdomain. > > This was done to be

MOVING COMMUNITY CALL Call for agenda items for 9 June Community Call @ 1500 UTC

2022-06-01 Thread George Dunlap
Hi all, Sorry for sending this out so late; my calendar was screwed up. Due to it being a public holiday in the UK, I propose moving the monthly community call to NEXT THURSDAY, 9 June, same time. The proposed agenda is in https://cryptpad.fr/pad/#/2/pad/edit/URCDNNBOVKsEK2grXf2l954a/ and

RE: [Xen-devel] SMMU permission fault on Dom0 when init vpu_decoder

2022-06-01 Thread Peng Fan
> Subject: Re: [Xen-devel] SMMU permission fault on Dom0 when init > vpu_decoder > > (+ Stefano) > > On 30/05/2022 16:21, Oleksii Moisieiev wrote: > > Hello, > > Hi Oleksii, > > > I'm getting permission fault from SMMU when trying to init > > VPU_Encoder/Decoder in Dom0 on IMX8QM board: > >

Re: [Xen-devel] SMMU permission fault on Dom0 when init vpu_decoder

2022-06-01 Thread Oleksii Moisieiev
On Wed, Jun 01, 2022 at 09:28:18AM +, Peng Fan wrote: > > Subject: Re: [Xen-devel] SMMU permission fault on Dom0 when init > > vpu_decoder > > > > On Wed, Jun 01, 2022 at 07:59:23AM +, Peng Fan wrote: > > > > Subject: [Xen-devel] SMMU permission fault on Dom0 when init > > > > vpu_decoder

RE: [Xen-devel] SMMU permission fault on Dom0 when init vpu_decoder

2022-06-01 Thread Peng Fan
> Subject: Re: [Xen-devel] SMMU permission fault on Dom0 when init > vpu_decoder > > On Wed, Jun 01, 2022 at 07:59:23AM +, Peng Fan wrote: > > > Subject: [Xen-devel] SMMU permission fault on Dom0 when init > > > vpu_decoder > > > > > > Hello, > > > > > > I'm getting permission fault from SMMU

Re: [PATCH v5 03/15] IOMMU/x86: support freeing of pagetables

2022-06-01 Thread Roger Pau Monné
On Wed, Jun 01, 2022 at 09:32:44AM +0200, Jan Beulich wrote: > On 31.05.2022 18:25, Roger Pau Monné wrote: > > On Fri, May 27, 2022 at 01:13:09PM +0200, Jan Beulich wrote: > >> @@ -566,6 +567,98 @@ struct page_info *iommu_alloc_pgtable(st > >> return pg; > >> } > >> > >> +/* > >> + *

Re: [Xen-devel] SMMU permission fault on Dom0 when init vpu_decoder

2022-06-01 Thread Oleksii Moisieiev
On Wed, Jun 01, 2022 at 07:59:23AM +, Peng Fan wrote: > > Subject: [Xen-devel] SMMU permission fault on Dom0 when init vpu_decoder > > > > Hello, > > > > I'm getting permission fault from SMMU when trying to init > > VPU_Encoder/Decoder in Dom0 on IMX8QM board: > > (XEN) smmu:

Re: [PATCH v5 02/15] IOMMU/x86: perform PV Dom0 mappings in batches

2022-06-01 Thread Roger Pau Monné
On Wed, Jun 01, 2022 at 09:30:07AM +0200, Jan Beulich wrote: > On 31.05.2022 18:01, Roger Pau Monné wrote: > > On Fri, May 27, 2022 at 01:12:48PM +0200, Jan Beulich wrote: > >> @@ -406,20 +406,41 @@ void __hwdom_init arch_iommu_hwdom_init( > >> if ( !perms ) > >> rc = 0; > >>

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

2022-06-01 Thread Roger Pau Monné
On Wed, Jun 01, 2022 at 07:40:12AM +, George Dunlap wrote: > > > > On 31 May 2022, at 14:52, Roger Pau Monne wrote: > > > > On Tue, May 31, 2022 at 06:45:52AM -0400, Daniel P. Smith wrote: > >> On 5/31/22 05:07, Bertrand Marquis wrote: > >>> Hi Daniel, > >> > >> Greetings Bertrand. > >>

Re: [Xen-devel] SMMU permission fault on Dom0 when init vpu_decoder

2022-06-01 Thread Oleksii Moisieiev
On Mon, May 30, 2022 at 04:44:36PM +0100, Julien Grall wrote: Hi Julien, > (+ Stefano) > > On 30/05/2022 16:21, Oleksii Moisieiev wrote: > > Hello, > > Hi Oleksii, > > > I'm getting permission fault from SMMU when trying to init > > VPU_Encoder/Decoder > > in Dom0 on IMX8QM board: > > (XEN)

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

2022-06-01 Thread osstest service owner
flight 170792 xen-unstable real [real] flight 170795 xen-unstable real-retest [real] http://logs.test-lab.xenproject.org/osstest/logs/170792/ http://logs.test-lab.xenproject.org/osstest/logs/170795/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking):

Re: [PATCH v5 01/15] IOMMU/x86: restrict IO-APIC mappings for PV Dom0

2022-06-01 Thread Roger Pau Monné
On Wed, Jun 01, 2022 at 09:10:09AM +0200, Jan Beulich wrote: > On 31.05.2022 18:15, Roger Pau Monné wrote: > > On Tue, May 31, 2022 at 05:40:03PM +0200, Jan Beulich wrote: > >> On 31.05.2022 16:40, Roger Pau Monné wrote: > >>> On Fri, May 27, 2022 at 01:12:06PM +0200, Jan Beulich wrote: > @@

RE: [Xen-devel] SMMU permission fault on Dom0 when init vpu_decoder

2022-06-01 Thread Peng Fan
> Subject: [Xen-devel] SMMU permission fault on Dom0 when init vpu_decoder > > Hello, > > I'm getting permission fault from SMMU when trying to init > VPU_Encoder/Decoder in Dom0 on IMX8QM board: > (XEN) smmu: /iommu@5140: Unhandled context fault: fsr=0x408, > iova=0x86000a60,

Re: [Xen-devel] SMMU permission fault on Dom0 when init vpu_decoder

2022-06-01 Thread Julien Grall
Hi Stefano, On 01/06/2022 00:13, Stefano Stabellini wrote: arm: Set p2m_type to p2m_mmio_direct_nc_x for reserved memory regions This is the enhancement of the 46b3dd3718144ca6ac2c12a3b106e57fb7156554. Those patch introduces p2m_mmio_direct_nc_x p2m type which sets the e->p2m.xn = 0 for the

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

2022-06-01 Thread George Dunlap
> On 31 May 2022, at 14:52, Roger Pau Monne wrote: > > On Tue, May 31, 2022 at 06:45:52AM -0400, Daniel P. Smith wrote: >> On 5/31/22 05:07, Bertrand Marquis wrote: >>> Hi Daniel, >> >> Greetings Bertrand. >> On 31 May 2022, at 03:41, Daniel P. Smith wrote: For x86 the

Re: [PATCH v5 03/15] IOMMU/x86: support freeing of pagetables

2022-06-01 Thread Jan Beulich
On 31.05.2022 18:25, Roger Pau Monné wrote: > On Fri, May 27, 2022 at 01:13:09PM +0200, Jan Beulich wrote: >> @@ -566,6 +567,98 @@ struct page_info *iommu_alloc_pgtable(st >> return pg; >> } >> >> +/* >> + * Intermediate page tables which get replaced by large pages may only be >> + *

Re: [PATCH v5 02/15] IOMMU/x86: perform PV Dom0 mappings in batches

2022-06-01 Thread Jan Beulich
On 31.05.2022 18:01, Roger Pau Monné wrote: > On Fri, May 27, 2022 at 01:12:48PM +0200, Jan Beulich wrote: >> For large page mappings to be easily usable (i.e. in particular without >> un-shattering of smaller page mappings) and for mapping operations to >> then also be more efficient, pass

Re: [PATCH v5 01/15] IOMMU/x86: restrict IO-APIC mappings for PV Dom0

2022-06-01 Thread Jan Beulich
On 31.05.2022 18:15, Roger Pau Monné wrote: > On Tue, May 31, 2022 at 05:40:03PM +0200, Jan Beulich wrote: >> On 31.05.2022 16:40, Roger Pau Monné wrote: >>> On Fri, May 27, 2022 at 01:12:06PM +0200, Jan Beulich wrote: @@ -289,44 +290,75 @@ static bool __hwdom_init hwdom_iommu_map

Re: [PATCH v4 3/3] xsm: properly handle error from XSM init

2022-06-01 Thread Jan Beulich
On 31.05.2022 21:18, Andrew Cooper wrote: > On 31/05/2022 19:20, Daniel P. Smith wrote: >> diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c >> index 53a73010e0..ed67b50c9d 100644 >> --- a/xen/arch/x86/setup.c >> +++ b/xen/arch/x86/setup.c >> @@ -1700,7 +1701,11 @@ void __init noreturn

Re: [RFC PATCH 5/6] xen/riscv: Add early_printk

2022-06-01 Thread Jan Beulich
On 01.06.2022 05:59, Alistair Francis wrote: > On Tue, May 31, 2022 at 5:09 PM Xie Xun wrote: >> --- /dev/null >> +++ b/xen/arch/riscv/early_printk.c > > This should be named differently. This file should be called > `sbi_console_early_printk.c` to better indicate that it's using the >

Re: [PATCH v4 7/8] xen/x86: add detection of memory interleaves for different nodes

2022-06-01 Thread Jan Beulich
On 01.06.2022 04:53, Wei Chen wrote: >> From: Jan Beulich >> Sent: 2022年5月31日 21:21 >> >> On 23.05.2022 08:25, Wei Chen wrote: >>> @@ -119,20 +125,45 @@ int valid_numa_range(paddr_t start, paddr_t end, >> nodeid_t node) >>> return 0; >>> } >>> >>> -static __init int

Re: [PATCH v3 3/3] xsm: properly handle error from XSM init

2022-06-01 Thread Jan Beulich
On 31.05.2022 17:08, Daniel P. Smith wrote: > @@ -1690,7 +1691,7 @@ void __init noreturn __start_xen(unsigned long mbi_p) > > open_softirq(NEW_TLBFLUSH_CLOCK_PERIOD_SOFTIRQ, > new_tlbflush_clock_period); > > -if ( opt_watchdog ) > +if ( opt_watchdog ) > nmi_watchdog =

Re: [PATCH v3 1/3] xsm: only search for a policy file when needed

2022-06-01 Thread Jan Beulich
On 31.05.2022 17:08, Daniel P. Smith wrote: > It is possible to select a few different build configurations that results in > the unnecessary walking of the boot module list looking for a policy module. > This specifically occurs when the flask policy is enabled but either the dummy > or the SILO

Re: [PATCH v3 1/3] xsm: only search for a policy file when needed

2022-06-01 Thread Jan Beulich
On 31.05.2022 18:15, Daniel P. Smith wrote: > > On 5/31/22 11:51, Jan Beulich wrote: >> On 31.05.2022 17:08, Daniel P. Smith wrote: >>> It is possible to select a few different build configurations that results >>> in >>> the unnecessary walking of the boot module list looking for a policy