[PATCH v3 00/10] xen/arm: smmuv3: Merge Linux fixes to Xen

2022-09-05 Thread Rahul Singh
This patch series merge the applicable Linux fixes to Xen. Bixuan Cui (1): xen/arm: smmuv3: Change *array into *const array Christophe JAILLET (1): xen/arm: smmuv3: Avoid open coded arithmetic in memory allocation Gustavo A. R. Silva (1): xen/arm: smmuv3: Fix fall-through warning for

[PATCH v3 01/10] xen/arm: smmuv3: Fix l1 stream table size in the error message

2022-09-05 Thread Rahul Singh
From: Zenghui Yu Backport Linux commit dc898eb84b25. This is the clean backport without any changes. The actual size of level-1 stream table is l1size. This looks like an oversight on commit d2e88e7c081ef ("iommu/arm-smmu: Fix LOG2SIZE setting for 2-level stream tables") which forgot to update

[PATCH v3 05/10] xen/arm: smmuv3: Remove the page 1 fixup

2022-09-05 Thread Rahul Singh
From: Robin Murphy Backport Linux commit 86d2d9214880. This is the clean backport without any changes. Since we now keep track of page 1 via a separate pointer that already encapsulates aliasing to page 0 as necessary, we can remove the clunky fixup routine and simply use the relevant bases

[PATCH v3 04/10] xen/arm: smmuv3: Move definitions to a header

2022-09-05 Thread Rahul Singh
From: Jean-Philippe Brucker Backport Linux commit e881e7839fba. Also, move Xen related struct definition to header to get it compiled. Allow sharing structure definitions with the upcoming SVA support for Arm SMMUv3, by moving them to a separate header. We could surgically extract only what is

[PATCH v3 06/10] xen/arm: smmuv3: Remove the unused fields for PREFETCH_CONFIG command

2022-09-05 Thread Rahul Singh
From: Zenghui Yu Backport Linux commit e0bb4b735404. This is the clean backport without any changes. Per SMMUv3 spec, there is no Size and Addr field in the PREFETCH_CONFIG command and they're not used by the driver. Remove them. We can add them back if we're going to use PREFETCH_ADDR in the

Re: [RFC PATCH 00/30] Code tagging framework and applications

2022-09-05 Thread Steven Rostedt
On Mon, 5 Sep 2022 11:44:55 -0700 Nadav Amit wrote: > I would note that I have a solution in the making (which pretty much works) > for this matter, and does not require any kernel changes. It produces a > call stack that leads to the code that lead to syscall failure. > > The way it works is

[qemu-mainline test] 173000: regressions - FAIL

2022-09-05 Thread osstest service owner
flight 173000 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/173000/ 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

[PATCH v3 03/10] xen/arm: smmuv3: Ensure queue is read after updating prod pointer

2022-09-05 Thread Rahul Singh
From: Zhou Wang Backport Linux commit a76a3f2c. Rename __iomb to iomb() while merging to get in sync with other Xen definitions. Reading the 'prod' MMIO register in order to determine whether or not there is valid data beyond 'cons' for a given queue does not provide sufficient dependency

Re: [PATCH v3 7/7] xen/arm: introduce new xen,enhanced property value

2022-09-05 Thread Julien Grall
Hi, On 05/09/2022 14:36, Rahul Singh wrote: Please have a look once if this looks okay. /* * List of possible features for dom0less domUs * * DOM0LESS_ENHANCED_BASIC:Notify the OS it is running on top of Xen. All the *

Re: [PATCH v3 7/7] xen/arm: introduce new xen,enhanced property value

2022-09-05 Thread Rahul Singh
Hi Julien, > On 5 Sep 2022, at 5:40 pm, Julien Grall wrote: > > Hi, > > On 05/09/2022 14:36, Rahul Singh wrote: >> Please have a look once if this looks okay. >> /* >> * List of possible features for dom0less domUs >> * >> * DOM0LESS_ENHANCED_BASIC: Notify the OS it is running on top of

Re: [PATCH v3 03/10] xen/arm: smmuv3: Ensure queue is read after updating prod pointer

2022-09-05 Thread Julien Grall
On 05/09/2022 17:49, Rahul Singh wrote: Hi Julien, Hi Rahul, On 5 Sep 2022, at 5:37 pm, Julien Grall wrote: On 05/09/2022 17:30, Rahul Singh wrote: From: Zhou Wang Backport Linux commit a76a3f2c. Rename __iomb to iomb() while merging to get in sync with other Xen definitions.

Re: [RFC PATCH 00/30] Code tagging framework and applications

2022-09-05 Thread Nadav Amit
On Aug 31, 2022, at 3:19 AM, Mel Gorman wrote: > On Wed, Aug 31, 2022 at 04:42:30AM -0400, Kent Overstreet wrote: >> On Wed, Aug 31, 2022 at 09:38:27AM +0200, Peter Zijlstra wrote: >>> On Tue, Aug 30, 2022 at 02:48:49PM -0700, Suren Baghdasaryan wrote: === Code

Re: [RFC PATCH 00/30] Code tagging framework and applications

2022-09-05 Thread Kent Overstreet
On Mon, Sep 05, 2022 at 11:08:21AM -0700, Suren Baghdasaryan wrote: > On Mon, Sep 5, 2022 at 8:06 AM Steven Rostedt wrote: > > > > On Sun, 4 Sep 2022 18:32:58 -0700 > > Suren Baghdasaryan wrote: > > > > > Page allocations (overheads are compared to get_free_pages() duration): > > > 6.8% Codetag

[ovmf test] 173003: regressions - FAIL

2022-09-05 Thread osstest service owner
flight 173003 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173003/ 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

[PATCH v3 09/10] xen/arm: smmuv3: Fix fall-through warning for Clang

2022-09-05 Thread Rahul Singh
From: "Gustavo A. R. Silva" Backport Linux commit 5a1ab5c0299a. This is the clean backport without any changes. Fix the following fallthrough warning (arm64-randconfig with Clang): drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c:382:2: warning: unannotated fall-through between switch labels

Re: [PATCH v3 03/10] xen/arm: smmuv3: Ensure queue is read after updating prod pointer

2022-09-05 Thread Rahul Singh
Hi Julien, > On 5 Sep 2022, at 5:37 pm, Julien Grall wrote: > > > > On 05/09/2022 17:30, Rahul Singh wrote: >> From: Zhou Wang >> Backport Linux commit a76a3f2c. Rename __iomb to iomb() while >> merging to get in sync with other Xen definitions. >> Reading the 'prod' MMIO register in

Re: [PATCH v2 1/4] docs, xen/arm: Introduce reserved heap memory

2022-09-05 Thread Julien Grall
Hi Michal, On 05/09/2022 13:04, Michal Orzel wrote: On 05/09/2022 09:26, Henry Wang wrote: diff --git a/xen/arch/arm/include/asm/setup.h b/xen/arch/arm/include/asm/setup.h index 5815ccf8c5..d0cc556833 100644 --- a/xen/arch/arm/include/asm/setup.h +++ b/xen/arch/arm/include/asm/setup.h @@

Re: Ryzen 6000 (Mobile)

2022-09-05 Thread Dylanger Daly
Hi Jan, I've managed to finangle a very unstable environment together What I'm seeing is the following: 1. All appVMs including dom0 must have 1 core assigned 2. This means I'm able to launch 4 appVMs, as soon as I launch a 5th, it puts all PCIe devices into a bad state 3. If I shut the 5th VM

[linux-linus test] 172994: regressions - FAIL

2022-09-05 Thread osstest service owner
flight 172994 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/172994/ 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: Enable audio virtualization in Xen

2022-09-05 Thread SHARMA, JYOTIRMOY
[AMD Official Use Only - General] Hi Oleksandr, Thank you for your input. I tried matching the hardware parameter (i.e. buffer size) in the HVM config file, but still no luck with audio from HVM guest. Here is the complete vsnd config: vsnd = [[ 'card, backend=Domain-0, buffer-size=22050,

Re: [PATCH v3 03/10] xen/arm: smmuv3: Ensure queue is read after updating prod pointer

2022-09-05 Thread Julien Grall
On 05/09/2022 17:30, Rahul Singh wrote: From: Zhou Wang Backport Linux commit a76a3f2c. Rename __iomb to iomb() while merging to get in sync with other Xen definitions. Reading the 'prod' MMIO register in order to determine whether or not there is valid data beyond 'cons' for a given

[linux-5.4 test] 172997: regressions - FAIL

2022-09-05 Thread osstest service owner
flight 172997 linux-5.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/172997/ 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

[PATCH v3 10/10] xen/arm: smmuv3: Avoid open coded arithmetic in memory allocation

2022-09-05 Thread Rahul Singh
From: Christophe JAILLET Backport Linux commit 98b64741d611. This is the clean backport without any changes kmalloc_array()/kcalloc() should be used to avoid potential overflow when a multiplication is needed to compute the size of the requested memory. So turn a devm_kzalloc()+explicit size

[PATCH v3 07/10] xen/arm: smmuv3: Change *array into *const array

2022-09-05 Thread Rahul Singh
From: Bixuan Cui Backport Linux commit d56d5162e317. This is the clean backport without any changes. Fix checkpatch warning in arm-smmu-v3.c: static const char * array should probably be static const char * const Signed-off-by: Bixuan Cui Signed-off-by: Will Deacon Origin:

[PATCH v3 08/10] xen/arm: smmuv3: Remove unnecessary oom message

2022-09-05 Thread Rahul Singh
From: Zhen Lei Backport Linux commit affa909571b0. This is the clean backport without any changes. Fixes scripts/checkpatch.pl warning: WARNING: Possible unnecessary 'out of memory' message Remove it can help us save a bit of memory. Signed-off-by: Zhen Lei Link:

Re: [PATCH v2 1/4] docs, xen/arm: Introduce reserved heap memory

2022-09-05 Thread Julien Grall
Hi Henry, On 05/09/2022 08:26, Henry Wang wrote: This commit introduces the reserved heap memory, which is parts of RAM reserved in the beginning of the boot time for heap. Firstly, since a new type of memory bank is needed for marking the memory bank solely as the heap, this commit defines

Re: [RFC PATCH 00/30] Code tagging framework and applications

2022-09-05 Thread Suren Baghdasaryan
On Mon, Sep 5, 2022 at 1:12 AM Michal Hocko wrote: > > On Sun 04-09-22 18:32:58, Suren Baghdasaryan wrote: > > On Thu, Sep 1, 2022 at 12:15 PM Michal Hocko wrote: > [...] > > > Yes, tracking back the call trace would be really needed. The question > > > is whether this is really prohibitively

Re: [RFC PATCH 00/30] Code tagging framework and applications

2022-09-05 Thread Suren Baghdasaryan
On Mon, Sep 5, 2022 at 8:06 AM Steven Rostedt wrote: > > On Sun, 4 Sep 2022 18:32:58 -0700 > Suren Baghdasaryan wrote: > > > Page allocations (overheads are compared to get_free_pages() duration): > > 6.8% Codetag counter manipulations (__lazy_percpu_counter_add + > > __alloc_tag_add) > > 8.8%

Re: [RFC PATCH 00/30] Code tagging framework and applications

2022-09-05 Thread Suren Baghdasaryan
On Mon, Sep 5, 2022 at 1:58 AM Marco Elver wrote: > > On Mon, 5 Sept 2022 at 10:12, Michal Hocko wrote: > > On Sun 04-09-22 18:32:58, Suren Baghdasaryan wrote: > > > On Thu, Sep 1, 2022 at 12:15 PM Michal Hocko wrote: > > [...] > > > > Yes, tracking back the call trace would be really needed.

Re: [PATCH v2 3/4] xen/arm: Handle reserved heap pages in boot and heap allocator

2022-09-05 Thread Julien Grall
Hi Henry, On 05/09/2022 08:26, Henry Wang wrote: This commit firstly adds a bool field `reserved_heap` to bootinfo. This newly introduced field is set at the device tree parsing time if the reserved heap ranges are defined in the device tree chosen node. For Arm32, In `setup_mm`, if the

Re: [for-4.17 3/3] automation: Add a new job for testing boot time cpupools on arm64

2022-09-05 Thread Stefano Stabellini
On Mon, 5 Sep 2022, Michal Orzel wrote: > Hi Stefano, > > On 03/09/2022 01:49, Stefano Stabellini wrote: > > > > > > Currently this test fails with: > > > > + fdtput binaries/virt-gicv2.dtb -p -t s /pl061@903 status disabled > > + [[ boot-cpupools == \b\o\o\t\-\c\p\u\p\o\o\l\s ]] > > ++

[xen-unstable test] 173004: regressions - trouble: blocked/broken/fail/pass

2022-09-05 Thread osstest service owner
flight 173004 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/173004/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-migrupgrade broken test-amd64-amd64-migrupgrade 6

[linux-linus test] 173007: regressions - FAIL

2022-09-05 Thread osstest service owner
flight 173007 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/173007/ 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] xen/arm: acpi: Support memory reserve configuration table

2022-09-05 Thread Leo Yan
On Thu, Aug 25, 2022 at 10:40:41PM +0800, Leo Yan wrote: [...] > > > But here I still cannot create the concept that how GIC RD tables play > > > roles to support the para virtualization or passthrough mode. > > > > I am not sure what you are actually asking. The pending tables are just > >

Re: [PATCH v3 04/10] xen/arm: smmuv3: Move definitions to a header

2022-09-05 Thread Stefano Stabellini
On Mon, 5 Sep 2022, Rahul Singh wrote: > From: Jean-Philippe Brucker > > Backport Linux commit e881e7839fba. Also, move Xen related struct > definition to header to get it compiled. > > Allow sharing structure definitions with the upcoming SVA support for > Arm SMMUv3, by moving them to a

Re: [PATCH v3 05/10] xen/arm: smmuv3: Remove the page 1 fixup

2022-09-05 Thread Stefano Stabellini
On Mon, 5 Sep 2022, Rahul Singh wrote: > From: Robin Murphy > > Backport Linux commit 86d2d9214880. This is the clean backport without > any changes. > > Since we now keep track of page 1 via a separate pointer that > already encapsulates aliasing to page 0 as necessary, we can remove > the

Re: [PATCH v3 7/7] xen/arm: introduce new xen,enhanced property value

2022-09-05 Thread Stefano Stabellini
On Mon, 5 Sep 2022, Rahul Singh wrote: > > On 5 Sep 2022, at 1:59 pm, Bertrand Marquis > > wrote: > > > > Hi Julien, > > > >> On 5 Sep 2022, at 13:08, Julien Grall wrote: > >> > >> > >> > >> On 05/09/2022 12:54, Bertrand Marquis wrote: > >>> Hi Julien, > On 5 Sep 2022, at 12:43,

[ovmf test] 173012: regressions - FAIL

2022-09-05 Thread osstest service owner
flight 173012 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173012/ 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

[ovmf test] 173009: regressions - FAIL

2022-09-05 Thread osstest service owner
flight 173009 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173009/ 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: [RFC PATCH 00/30] Code tagging framework and applications

2022-09-05 Thread Steven Rostedt
On Mon, 5 Sep 2022 16:42:29 -0400 Kent Overstreet wrote: > > Haven't tried that yet but will do. Thanks for the reference code! > > Is it really worth the effort of benchmarking tracing API overhead here? > > The main cost of a tracing based approach is going to to be the data structure >

Re: [RFC PATCH 00/30] Code tagging framework and applications

2022-09-05 Thread Kent Overstreet
On Mon, Sep 05, 2022 at 10:49:38AM +0200, Michal Hocko wrote: > This is really my main concern about this whole work. Not only it adds a > considerable maintenance burden to the core MM because [citation needed] > it adds on top of > our existing allocator layers complexity but it would need to

RE: Xen 4.17 release: Current status before the feature freeze

2022-09-05 Thread Henry Wang
Hi Anthony, > -Original Message- > From: Anthony PERARD > Subject: Re: Xen 4.17 release: Current status before the feature freeze > > On Mon, Sep 05, 2022 at 03:44:33AM +, Henry Wang wrote: > > ** Blocker List **: > > 2. The fix of libvirt after the virtio support in toolstack > >

[ovmf test] 173014: regressions - FAIL

2022-09-05 Thread osstest service owner
flight 173014 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173014/ 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

[PATCH] xen-blkback/common.h: fix spelling typo in comment

2022-09-05 Thread Jiangshan Yi
From: Jiangshan Yi Fix spelling typo in comment. Reported-by: k2ci Signed-off-by: Jiangshan Yi --- drivers/block/xen-blkback/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/xen-blkback/common.h b/drivers/block/xen-blkback/common.h index

Re: [PATCH v5 3/9] xen/arm: add a primitive FF-A mediator

2022-09-05 Thread Julien Grall
Hi Jens, On 18/08/2022 11:55, Jens Wiklander wrote: Adds a FF-A version 1.1 [1] mediator to communicate with a Secure Partition in secure world. This commit brings in only the parts needed to negotiate FF-A version number with guest and SPMC. A guest configuration variable "ffa_enabled" is

Re: [PATCH v2 03/10] xen/arm: smmuv3: Ensure queue is read after updating prod pointer

2022-09-05 Thread Stefano Stabellini
On Mon, 5 Sep 2022, Julien Grall wrote: > On 05/09/2022 11:23, Bertrand Marquis wrote: > > > On 5 Sep 2022, at 10:31, Julien Grall wrote: > > > On 05/09/2022 10:18, Rahul Singh wrote: > > > > > On 3 Sep 2022, at 12:21 am, Stefano Stabellini > > > > > wrote: > > > > > > > > > > On Fri, 2 Sep

Re: [PATCH v2 1/4] docs, xen/arm: Introduce reserved heap memory

2022-09-05 Thread Stefano Stabellini
On Mon, 5 Sep 2022, Henry Wang wrote: > This commit introduces the reserved heap memory, which is parts of RAM > reserved in the beginning of the boot time for heap. > > Firstly, since a new type of memory bank is needed for marking the > memory bank solely as the heap, this commit defines `enum

RE: [PATCH v2 1/4] docs, xen/arm: Introduce reserved heap memory

2022-09-05 Thread Henry Wang
Hi Julien, > -Original Message- > From: Julien Grall > Subject: Re: [PATCH v2 1/4] docs, xen/arm: Introduce reserved heap memory > > Hi Henry, > > On 05/09/2022 08:26, Henry Wang wrote: > > This commit introduces the reserved heap memory, which is parts of RAM > > reserved in the

RE: [PATCH v2 3/4] xen/arm: Handle reserved heap pages in boot and heap allocator

2022-09-05 Thread Henry Wang
Hi Julien, Thanks for your comments, I added my reply and some of the questions that I am not 100% sure inline below. > -Original Message- > From: Julien Grall > Hi Henry, > > + > > +/* > > + * Find the contiguous xenheap region that fits in the reserved heap region > with > > There

[linux-5.4 test] 173008: regressions - FAIL

2022-09-05 Thread osstest service owner
flight 173008 linux-5.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/173008/ 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: [PATCH v5 3/9] xen/arm: add a primitive FF-A mediator

2022-09-05 Thread Julien Grall
Hi Jens, More remarks. On 18/08/2022 11:55, Jens Wiklander wrote: +/* Negotiated FF-A version to use with the SPMC */ +static uint32_t ffa_version __read_mostly; NIT: if this is not meant to be modified after boot, then I would suggest to use __ro_after_init. This was introduced recently

Re: [RFC PATCH 00/30] Code tagging framework and applications

2022-09-05 Thread Kent Overstreet
On Mon, Sep 05, 2022 at 06:16:50PM -0400, Steven Rostedt wrote: > On Mon, 5 Sep 2022 16:42:29 -0400 > Kent Overstreet wrote: > > > > Haven't tried that yet but will do. Thanks for the reference code! > > > > Is it really worth the effort of benchmarking tracing API overhead here? > > > > The

RE: [PATCH v2 1/4] docs, xen/arm: Introduce reserved heap memory

2022-09-05 Thread Henry Wang
Hi Stefano, > -Original Message- > From: Stefano Stabellini > Subject: Re: [PATCH v2 1/4] docs, xen/arm: Introduce reserved heap memory > > On Mon, 5 Sep 2022, Henry Wang wrote: > > This commit introduces the reserved heap memory, which is parts of RAM > > reserved in the beginning of

Re: [for-4.17 3/3] automation: Add a new job for testing boot time cpupools on arm64

2022-09-05 Thread Michal Orzel
Hi Stefano, On 03/09/2022 01:49, Stefano Stabellini wrote: > > > Currently this test fails with: > > + fdtput binaries/virt-gicv2.dtb -p -t s /pl061@903 status disabled > + [[ boot-cpupools == \b\o\o\t\-\c\p\u\p\o\o\l\s ]] > ++ fdtget binaries/virt-gicv2.dtb -t x /cpus/cpu@1 phandle >

Re: [RFC PATCH 00/30] Code tagging framework and applications

2022-09-05 Thread Michal Hocko
On Thu 01-09-22 16:15:02, Kent Overstreet wrote: > On Thu, Sep 01, 2022 at 12:39:11PM -0700, Suren Baghdasaryan wrote: > > kmemleak is known to be slow and it's even documented [1], so I hope I > > can skip that part. For page_owner to provide the comparable > > information we would have to

Re: [RFC PATCH 00/30] Code tagging framework and applications

2022-09-05 Thread Marco Elver
On Mon, 5 Sept 2022 at 10:12, Michal Hocko wrote: > On Sun 04-09-22 18:32:58, Suren Baghdasaryan wrote: > > On Thu, Sep 1, 2022 at 12:15 PM Michal Hocko wrote: > [...] > > > Yes, tracking back the call trace would be really needed. The question > > > is whether this is really prohibitively

Re: [PATCH v2 04/10] xen/arm: smmuv3: Move definitions to a header

2022-09-05 Thread Rahul Singh
Hi Stefano, > On 3 Sep 2022, at 12:29 am, Stefano Stabellini wrote: > > On Fri, 2 Sep 2022, Rahul Singh wrote: >> From: Jean-Philippe Brucker >> >> Backport Linux commit e881e7839fba. This is the clean backport without >> any changes. > > I don't think we can say that this is a clean

Re: [PATCH v2 2/4] xen/arm: bootfdt: Make process_chosen_node() return int

2022-09-05 Thread Michal Orzel
Hi Henry, On 05/09/2022 09:26, Henry Wang wrote: > > At the boot time, it is saner to stop booting early if an error occurs > when parsing the device tree chosen node, rather than seeing random > behavior afterwards. Therefore, this commit changes the return type of > the process_chosen_node()

Re: [PATCH v2 03/10] xen/arm: smmuv3: Ensure queue is read after updating prod pointer

2022-09-05 Thread Rahul Singh
Hi Stefano, > On 3 Sep 2022, at 12:21 am, Stefano Stabellini wrote: > > On Fri, 2 Sep 2022, Rahul Singh wrote: >> From: Zhou Wang >> >> Backport Linux commit a76a3f2c. This is the clean backport without >> any changes. >> >> Reading the 'prod' MMIO register in order to determine whether

Re: [PATCH v2 03/10] xen/arm: smmuv3: Ensure queue is read after updating prod pointer

2022-09-05 Thread Julien Grall
On 05/09/2022 10:18, Rahul Singh wrote: On 3 Sep 2022, at 12:21 am, Stefano Stabellini wrote: On Fri, 2 Sep 2022, Rahul Singh wrote: From: Zhou Wang Backport Linux commit a76a3f2c. This is the clean backport without any changes. Reading the 'prod' MMIO register in order to determine

Re: [PATCH v2 03/10] xen/arm: smmuv3: Ensure queue is read after updating prod pointer

2022-09-05 Thread Julien Grall
Hi Bertrand, On 05/09/2022 11:23, Bertrand Marquis wrote: Hi, On 5 Sep 2022, at 10:31, Julien Grall wrote: On 05/09/2022 10:18, Rahul Singh wrote: On 3 Sep 2022, at 12:21 am, Stefano Stabellini wrote: On Fri, 2 Sep 2022, Rahul Singh wrote: From: Zhou Wang Backport Linux commit

Re: [PATCH v2 05/10] xen/arm: smmuv3: Remove the page 1 fixup

2022-09-05 Thread Rahul Singh
Hi Stefano, > On 3 Sep 2022, at 12:17 am, Stefano Stabellini wrote: > > On Fri, 2 Sep 2022, Rahul Singh wrote: >> From: Robin Murphy >> >> Backport Linux commit 86d2d9214880. This is the clean backport without >> any changes. >> >> Since we now keep track of page 1 via a separate pointer

Re: [PATCH v2 00/10] xen/arm: smmuv3: Merge Linux fixes to Xen

2022-09-05 Thread Rahul Singh
Hi Stefano, > On 3 Sep 2022, at 12:31 am, Stefano Stabellini wrote: > > I checked all the patches against the originals. > > I had comments on patches 3,4,5. > > You can add: > > Acked-by: Stefano Stabellini > > to all the others (1,2,6,7,8,9,10). > Thanks for reviewing the patches. I

Re: [PATCH v2 2/4] xen/arm: bootfdt: Make process_chosen_node() return int

2022-09-05 Thread Julien Grall
On 05/09/2022 10:16, Michal Orzel wrote: Hi Henry, On 05/09/2022 09:26, Henry Wang wrote: At the boot time, it is saner to stop booting early if an error occurs when parsing the device tree chosen node, rather than seeing random behavior afterwards. Therefore, this commit changes the

RE: [PATCH v2 2/4] xen/arm: bootfdt: Make process_chosen_node() return int

2022-09-05 Thread Henry Wang
Hi Julien and Michal, > -Original Message- > From: Julien Grall > >> Changes from v1 to v2: > >> - New commit. > >> --- > > > > The patch looks good but I think it should be put as the first one in the > series > > as this is a natural prerequisite for the introduction of the reserved

[ovmf test] 172998: regressions - FAIL

2022-09-05 Thread osstest service owner
flight 172998 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/172998/ 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 03/10] xen/arm: smmuv3: Ensure queue is read after updating prod pointer

2022-09-05 Thread Bertrand Marquis
Hi, > On 5 Sep 2022, at 10:31, Julien Grall wrote: > > > > On 05/09/2022 10:18, Rahul Singh wrote: >>> On 3 Sep 2022, at 12:21 am, Stefano Stabellini >>> wrote: >>> >>> On Fri, 2 Sep 2022, Rahul Singh wrote: From: Zhou Wang Backport Linux commit a76a3f2c. This is the

Re: [PATCH v4 3/3] xen/sched: fix cpu hotplug

2022-09-05 Thread Andrew Cooper
On 05/09/2022 08:00, Juergen Gross wrote: > @@ -3312,17 +3325,18 @@ void free_cpu_rm_data(struct cpu_rm_data *mem, > unsigned int cpu) > * The cpu is already marked as "free" and not valid any longer for its > * cpupool. > */ > -int schedule_cpu_rm(unsigned int cpu) > +int

Re: [PATCH v4 3/3] xen/sched: fix cpu hotplug

2022-09-05 Thread Juergen Gross
On 05.09.22 12:36, Andrew Cooper wrote: On 05/09/2022 08:00, Juergen Gross wrote: @@ -3312,17 +3325,18 @@ void free_cpu_rm_data(struct cpu_rm_data *mem, unsigned int cpu) * The cpu is already marked as "free" and not valid any longer for its * cpupool. */ -int schedule_cpu_rm(unsigned

Re: Xen 4.17 release: Current status before the feature freeze

2022-09-05 Thread Michal Orzel
Hi Henry, On 05/09/2022 05:44, Henry Wang wrote: > > Hi all, > > As the feature freeze date is around the corner (Sep. 9, 2022) and we are > currently summarizing the series for the release, here are the list of series > pending in the mailing list. Please add the ones that I probably missed. >

RE: Xen 4.17 release: Current status before the feature freeze

2022-09-05 Thread Henry Wang
Hi Michal, > -Original Message- > From: Michal Orzel > > 2. automation: Test a pv network interface under dom0less enhanced > > > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatc > hwork.kernel.org%2Fproject%2Fxen- >

RE: [PATCH v10 8/9] xen: retrieve reserved pages on populate_physmap

2022-09-05 Thread Penny Zheng
Hi jan > -Original Message- > From: Jan Beulich > Sent: Wednesday, August 17, 2022 6:05 PM > To: Penny Zheng > Cc: Wei Chen ; Andrew Cooper > ; George Dunlap ; > Julien Grall ; Stefano Stabellini ; > Wei Liu ; xen-devel@lists.xenproject.org > Subject: Re: [PATCH v10 8/9] xen: retrieve

[PATCH v2 3/4] xen/arm: Handle reserved heap pages in boot and heap allocator

2022-09-05 Thread Henry Wang
This commit firstly adds a bool field `reserved_heap` to bootinfo. This newly introduced field is set at the device tree parsing time if the reserved heap ranges are defined in the device tree chosen node. For Arm32, In `setup_mm`, if the reserved heap is enabled, we use the reserved heap region

[PATCH v2 2/4] xen/arm: bootfdt: Make process_chosen_node() return int

2022-09-05 Thread Henry Wang
At the boot time, it is saner to stop booting early if an error occurs when parsing the device tree chosen node, rather than seeing random behavior afterwards. Therefore, this commit changes the return type of the process_chosen_node() from void to int, and return correct errno based on the error

[ovmf test] 172995: regressions - FAIL

2022-09-05 Thread osstest service owner
flight 172995 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/172995/ 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

[PATCH v4 1/3] xen/sched: introduce cpupool_update_node_affinity()

2022-09-05 Thread Juergen Gross
For updating the node affinities of all domains in a cpupool add a new function cpupool_update_node_affinity(). In order to avoid multiple allocations of cpumasks carve out memory allocation and freeing from domain_update_node_affinity() into new helpers, which can be used by

[PATCH v4 3/3] xen/sched: fix cpu hotplug

2022-09-05 Thread Juergen Gross
Cpu unplugging is calling schedule_cpu_rm() via stop_machine_run() with interrupts disabled, thus any memory allocation or freeing must be avoided. Since commit 5047cd1d5dea ("xen/common: Use enhanced ASSERT_ALLOC_CONTEXT in xmalloc()") this restriction is being enforced via an assertion, which

[PATCH v4 0/3] xen/sched: fix cpu hotplug

2022-09-05 Thread Juergen Gross
A recent change in the hypervisor memory allocation framework led to crashes when unplugging host cpus. This was due to the (correct) assertion that allocating and freeing memory is allowed with enabled interrupts only. As the main cpu unplug operation is done in stop-machine context, this

[PATCH v4 2/3] xen/sched: carve out memory allocation and freeing from schedule_cpu_rm()

2022-09-05 Thread Juergen Gross
In order to prepare not allocating or freeing memory from schedule_cpu_rm(), move this functionality to dedicated functions. For now call those functions from schedule_cpu_rm(). No change of behavior expected. Signed-off-by: Juergen Gross --- V2: - add const (Jan Beulich) - use "unsigned int"

[PATCH v2 0/4] Introduce reserved heap

2022-09-05 Thread Henry Wang
The reserved heap, or statically configured heap, refers to parts of RAM reserved in the beginning for heap. Like the static memory allocation, such reserved heap regions are reserved by configuration in the device tree using physical address ranges. This feature is useful to run Xen on Arm MPU

[PATCH v2 1/4] docs, xen/arm: Introduce reserved heap memory

2022-09-05 Thread Henry Wang
This commit introduces the reserved heap memory, which is parts of RAM reserved in the beginning of the boot time for heap. Firstly, since a new type of memory bank is needed for marking the memory bank solely as the heap, this commit defines `enum membank_type` and use this enum in function

[PATCH v2 4/4] xen/arm: mm: Rename xenheap_* variable to directmap_*

2022-09-05 Thread Henry Wang
With the reserved heap setup, keep using xenheap_* in the function setup_xenheap_mappings() will make the code confusing to read, because we always need to map the full RAM on Arm64. Therefore, renaming all "xenheap_*" variables to "directmap_*" to make clear the area is used to access the RAM

Re: [RFC PATCH 00/30] Code tagging framework and applications

2022-09-05 Thread Michal Hocko
On Sun 04-09-22 18:32:58, Suren Baghdasaryan wrote: > On Thu, Sep 1, 2022 at 12:15 PM Michal Hocko wrote: [...] > > Yes, tracking back the call trace would be really needed. The question > > is whether this is really prohibitively expensive. How much overhead are > > we talking about? There is no

[qemu-mainline test] 172991: regressions - FAIL

2022-09-05 Thread osstest service owner
flight 172991 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/172991/ 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

Re: [RFC PATCH v1] xen/docs: Document acquire resource interface

2022-09-05 Thread Matias Vara
On Tue, Aug 30, 2022 at 01:06:11PM +0100, Paul Durrant wrote: > On 29/08/2022 10:03, Matias Ezequiel Vara Larsen wrote: > > This commit creates a new doc to document the acquire resource interface. > > This > > is a reference document. > > > > Signed-off-by: Matias Ezequiel Vara Larsen > > --- >

Re: [PATCH v3 7/7] xen/arm: introduce new xen,enhanced property value

2022-09-05 Thread Rahul Singh
Hi Julien, > On 5 Sep 2022, at 1:59 pm, Bertrand Marquis wrote: > > Hi Julien, > >> On 5 Sep 2022, at 13:08, Julien Grall wrote: >> >> >> >> On 05/09/2022 12:54, Bertrand Marquis wrote: >>> Hi Julien, On 5 Sep 2022, at 12:43, Julien Grall wrote: On 05/09/2022

[PATCH 1/2] vchan-socket-proxy: add reconnect marker support

2022-09-05 Thread Marek Marczykowski-Górecki
When vchan client reconnect quickly, the server may not notice it. This means, it won't reconnect the UNIX socket either. For QMP, it will prevent the client to see the QMP protocol handshake, and the communication will timeout. Solve the issue by sending in-band connect marker. Whenever server

[PATCH 2/2] tools/libxl: enable in-band reconnect marker for stubdom QMP proxy

2022-09-05 Thread Marek Marczykowski-Górecki
This enables stubdom reliably detect when it needs to reconnect QMP socket. It is critical, as otherwise QEMU will not send its handshake, and so libxl will timeout while waiting on one. When it happens during domain startup, it can result in error like this: libxl:

[PATCH v4 4/4] tools/xenstore: add migration stream extensions for new features

2022-09-05 Thread Juergen Gross
Extend the definition of the Xenstore migration stream to cover new features: - per domain features - extended watches (watch depth) - per domain quota Signed-off-by: Juergen Gross --- V3: - new patch V4: - add new record types instead of modifying the existing ones (Julien Grall) ---

[PATCH v4 3/4] tools/xenstore: add documentation for extended watch command

2022-09-05 Thread Juergen Gross
Add documentation for an extension of the WATCH command used to limit the scope of watched paths. Additionally it enables to receive more information in the events related to special watches (@introduceDomain or @releaseDomain). Signed-off-by: Juergen Gross Reviewed-by: Julien Grall ---

[PATCH v4 1/4] tools/xenstore: minor fix of the migration stream doc

2022-09-05 Thread Juergen Gross
Drop mentioning the non-existent read-only socket in the migration stream description document. The related record field was removed in commit 8868a0e3f674 ("docs: update the xenstore migration stream documentation). Signed-off-by: Juergen Gross --- V3: - new patch ---

[PATCH v4 2/4] tools/xenstore: add documentation for new set/get-quota commands

2022-09-05 Thread Juergen Gross
Add documentation for two new Xenstore wire commands SET_QUOTA and GET_QUOTA used to set or query the global Xenstore quota or those of a given domain. Signed-off-by: Juergen Gross Reviewed-by: Julien Grall --- V2: - remove feature bit (Julien Grall) - add possibility to access global quota and

[PATCH v4 0/4] tools/xenstore: add some new features to the documentation

2022-09-05 Thread Juergen Gross
In the past there have been spotted some shortcomings in the Xenstore interface, which should be repaired. Those are in detail: - Using driver domains for large number of domains needs per domain Xenstore quota [1]. The feedback sent was rather slim (one reply), but it was preferring a new

Re: [PATCH v3 7/7] xen/arm: introduce new xen,enhanced property value

2022-09-05 Thread Bertrand Marquis
Hi Julien, > On 5 Sep 2022, at 13:08, Julien Grall wrote: > > > > On 05/09/2022 12:54, Bertrand Marquis wrote: >> Hi Julien, >>> On 5 Sep 2022, at 12:43, Julien Grall wrote: >>> >>> >>> >>> On 05/09/2022 12:12, Rahul Singh wrote: Hi Julien, >>> >>> Hi Rahul, >>> > On 2 Sep

[ovmf test] 173001: regressions - FAIL

2022-09-05 Thread osstest service owner
flight 173001 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173001/ 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

[xen-unstable test] 172993: tolerable FAIL

2022-09-05 Thread osstest service owner
flight 172993 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/172993/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-amd64-i386-freebsd10-i386 17 guest-localmigrate fail in 172972 pass in 172993 test-amd64-i386-pair

Re: [PATCH v3 7/7] xen/arm: introduce new xen,enhanced property value

2022-09-05 Thread Julien Grall
On 05/09/2022 12:12, Rahul Singh wrote: Hi Julien, Hi Rahul, On 2 Sep 2022, at 5:20 pm, Julien Grall wrote: On 02/09/2022 16:54, Rahul Singh wrote: Hi Julien, Hi Rahul, On 2 Sep 2022, at 4:05 pm, Julien Grall wrote: Hi Bertrand, On 02/09/2022 15:51, Bertrand Marquis wrote:

Re: [PATCH v3 7/7] xen/arm: introduce new xen,enhanced property value

2022-09-05 Thread Bertrand Marquis
Hi Julien, > On 5 Sep 2022, at 12:43, Julien Grall wrote: > > > > On 05/09/2022 12:12, Rahul Singh wrote: >> Hi Julien, > > Hi Rahul, > >>> On 2 Sep 2022, at 5:20 pm, Julien Grall wrote: >>> >>> >>> >>> On 02/09/2022 16:54, Rahul Singh wrote: Hi Julien, >>> >>> Hi Rahul, >>>

Re: [PATCH v2 1/4] docs, xen/arm: Introduce reserved heap memory

2022-09-05 Thread Michal Orzel
Hi Henry, On 05/09/2022 09:26, Henry Wang wrote: > > diff --git a/xen/arch/arm/include/asm/setup.h > b/xen/arch/arm/include/asm/setup.h > index 5815ccf8c5..d0cc556833 100644 > --- a/xen/arch/arm/include/asm/setup.h > +++ b/xen/arch/arm/include/asm/setup.h > @@ -22,11 +22,16 @@ typedef enum { >

Re: [PATCH v3 7/7] xen/arm: introduce new xen,enhanced property value

2022-09-05 Thread Julien Grall
On 05/09/2022 12:54, Bertrand Marquis wrote: Hi Julien, On 5 Sep 2022, at 12:43, Julien Grall wrote: On 05/09/2022 12:12, Rahul Singh wrote: Hi Julien, Hi Rahul, On 2 Sep 2022, at 5:20 pm, Julien Grall wrote: On 02/09/2022 16:54, Rahul Singh wrote: Hi Julien, Hi Rahul, On

  1   2   >