Re: [PATCH v3 2/6] xen/x86: move generically usable NUMA code from x86 to common

2022-09-06 Thread Jan Beulich
On 29.08.2022 11:49, Wei Chen wrote: >> -Original Message- >> From: Jan Beulich >> Sent: 2022年8月25日 18:58 >> >> On 22.08.2022 04:58, Wei Chen wrote: >>> +nodemask_t __read_mostly node_online_map = { { [0] = 1UL } }; >>> + >>> +bool __read_mostly numa_off; >> >> This, otoh, can be, or have

Re: [PATCH v3 5/6] xen/x86: move NUMA scan nodes codes from x86 to common

2022-09-06 Thread Jan Beulich
On 29.08.2022 12:47, Wei Chen wrote: >> -Original Message- >> From: Jan Beulich >> Sent: 2022年8月25日 20:50 >> >> On 22.08.2022 04:58, Wei Chen wrote: >>> +bool __init numa_memblks_available(void) >>> +{ >>> +return num_node_memblks < NR_NODE_MEMBLKS; >>> +} >> >> This is kind of clumsy,

Re: [PATCH v3 6/6] xen: introduce a Kconfig option to configure NUMA nodes number

2022-09-06 Thread Jan Beulich
On 29.08.2022 13:00, Wei Chen wrote: >> -Original Message- >> From: Jan Beulich >> Sent: 2022年8月25日 21:06 >> >> Note that there's an alternative with less #ifdef-ary: >> >> config NR_NUMA_NODES >> int "Maximum number of NUMA nodes supported" if NUMA >> range 2 64 if NUMA >>

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

2022-09-06 Thread Penny Zheng
Hi Jan > -Original Message- > From: Jan Beulich > Sent: Tuesday, September 6, 2022 2:34 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 re

Re: [PATCH] xen/arm: acpi: Support memory reserve configuration table

2022-09-06 Thread Leo Yan
Hi Marc, On Tue, Sep 06, 2022 at 07:27:17AM +0100, Marc Zyngier wrote: > On Tue, 06 Sep 2022 03:52:37 +0100, > Leo Yan wrote: > > > > 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 > >

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

2022-09-06 Thread Jan Beulich
On 06.09.2022 09:14, Penny Zheng wrote: > Hi Jan > >> -Original Message- >> From: Jan Beulich >> Sent: Tuesday, September 6, 2022 2:34 PM >> To: Penny Zheng >> Cc: Wei Chen ; Andrew Cooper >> ; George Dunlap ; >> Julien Grall ; Stefano Stabellini ; >> Wei Liu ; xen-devel@lists.xenproject

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

2022-09-06 Thread Bertrand Marquis
Hi Julien, > On 5 Sep 2022, at 17:55, Julien Grall wrote: > > > > 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 com

Re: [PATCH] xen/arm: acpi: Support memory reserve configuration table

2022-09-06 Thread Ard Biesheuvel
On Tue, 6 Sept 2022 at 09:17, Leo Yan wrote: > > Hi Marc, > > On Tue, Sep 06, 2022 at 07:27:17AM +0100, Marc Zyngier wrote: > > On Tue, 06 Sep 2022 03:52:37 +0100, > > Leo Yan wrote: > > > > > > On Thu, Aug 25, 2022 at 10:40:41PM +0800, Leo Yan wrote: > > > > > > [...] > > > > > > > > > But here

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

2022-09-06 Thread Michal Hocko
On Mon 05-09-22 19:46:49, Kent Overstreet wrote: > 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] I thought this was clear f

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

2022-09-06 Thread Bertrand Marquis
Hi Stefano, > On 5 Sep 2022, at 23:41, Stefano Stabellini wrote: > > 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, Bertran

Re: [PATCH] xen/arm: acpi: Support memory reserve configuration table

2022-09-06 Thread Leo Yan
On Tue, Sep 06, 2022 at 09:22:00AM +0200, Ard Biesheuvel wrote: [...] > > IIUC, you consider the general flow from architecture view, so you prefer > > to ask Xen to implement EFI stub to comply the general flow for EFI > > booting sequence, right? > > > > If the conclusion is to change Xen for s

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

2022-09-06 Thread Ajay Kaher
During boot-time there are many PCI config reads, these could be performed either using Port IO instructions (PIO) or memory mapped I/O (MMIO). PIO are less efficient than MMIO, they require twice as many PCI accesses and PIO instructions are serializing. As a result, MMIO should be preferred when

[PATCH v12 1/6] xen: do not free reserved memory into heap

2022-09-06 Thread Penny Zheng
Pages used as guest RAM for static domain, shall be reserved to this domain only. So in case reserved pages being used for other purpose, users shall not free them back to heap, even when last ref gets dropped. This commit introduces a new helper free_domstatic_page to free static page in runtime,

[PATCH v12 0/6] populate/unpopulate memory when domain on static allocation

2022-09-06 Thread Penny Zheng
Today when a domain unpopulates the memory on runtime, they will always hand the memory over to the heap allocator. And it will be a problem if it is a static domain. Pages used as guest RAM for static domain shall always be reserved to this domain only, and not be used for any other purposes, so t

[PATCH v12 2/6] xen/arm: introduce CDF_staticmem

2022-09-06 Thread Penny Zheng
In order to have an easy and quick way to find out whether this domain memory is statically configured, this commit introduces a new flag CDF_staticmem and a new helper is_domain_using_staticmem() to tell. Signed-off-by: Penny Zheng Acked-by: Julien Grall Acked-by: Jan Beulich --- v12 changes:

[PATCH v12 3/6] xen: unpopulate memory when domain is static

2022-09-06 Thread Penny Zheng
Today when a domain unpopulates the memory on runtime, they will always hand the memory back to the heap allocator. And it will be a problem if domain is static. Pages as guest RAM for static domain shall be reserved to only this domain and not be used for any other purposes, so they shall never g

[PATCH v12 4/6] xen: introduce prepare_staticmem_pages

2022-09-06 Thread Penny Zheng
Later, we want to use acquire_domstatic_pages() for populating memory for static domain on runtime, however, there are a lot of pointless work (checking mfn_valid(), scrubbing the free part, cleaning the cache...) considering we know the page is valid and belong to the guest. This commit splits ac

[PATCH v12 5/6] xen: rename free_staticmem_pages to unprepare_staticmem_pages

2022-09-06 Thread Penny Zheng
The name of free_staticmem_pages is inappropriate, considering it is the opposite of function prepare_staticmem_pages. Rename free_staticmem_pages to unprepare_staticmem_pages. Signed-off-by: Penny Zheng Acked-by: Jan Beulich --- v12 changes: - no change --- v11 changes: - moved ahead of "xen:

[PATCH v12 6/6] xen: retrieve reserved pages on populate_physmap

2022-09-06 Thread Penny Zheng
When a static domain populates memory through populate_physmap at runtime, it shall retrieve reserved pages from resv_page_list to make sure that guest RAM is still restricted in statically configured memory regions. This commit also introduces a new helper acquire_reserved_page to make it work. S

Re: [PATCH] xen/arm: acpi: Support memory reserve configuration table

2022-09-06 Thread Leo Yan
On Tue, Sep 06, 2022 at 03:27:47PM +0800, Leo Yan wrote: > On Tue, Sep 06, 2022 at 09:22:00AM +0200, Ard Biesheuvel wrote: > > [...] > > > > IIUC, you consider the general flow from architecture view, so you prefer > > > to ask Xen to implement EFI stub to comply the general flow for EFI > > > bo

Re: [PATCH] xen/arm: acpi: Support memory reserve configuration table

2022-09-06 Thread Marc Zyngier
On Tue, 06 Sep 2022 08:17:14 +0100, Leo Yan wrote: > > Hi Marc, > > On Tue, Sep 06, 2022 at 07:27:17AM +0100, Marc Zyngier wrote: > > On Tue, 06 Sep 2022 03:52:37 +0100, > > Leo Yan wrote: > > > > > > On Thu, Aug 25, 2022 at 10:40:41PM +0800, Leo Yan wrote: > > > > > > [...] > > > > > > > >

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

2022-09-06 Thread Julien Grall
Hi Bertrand, On 06/09/2022 08:24, Bertrand Marquis wrote: I agree with Julien: I prefer this proposal compared to the earlier one by Bertrand and Rahul because I think it is a lot clearer and "ENHANCED" should mean everything. Also, it makes it easier from a compatibility perspective because it

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

2022-09-06 Thread Michal Hocko
On Mon 05-09-22 11:03:35, Suren Baghdasaryan wrote: > 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

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

2022-09-06 Thread Julien Grall
Hi Henry and Michal, On 06/09/2022 07:41, Henry Wang wrote: -Original Message- From: Michal Orzel Subject: Re: [PATCH v2 1/4] docs, xen/arm: Introduce reserved heap memory Hi Julien, On 05/09/2022 19:24, Julien Grall wrote: Hi Michal, On 05/09/2022 13:04, Michal Orzel wrote: On 05

[qemu-mainline test] 173011: regressions - FAIL

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

[ovmf test] 173018: regressions - FAIL

2022-09-06 Thread osstest service owner
flight 173018 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173018/ 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 v3 2/2] xen/pci: replace call to is_memory_hole to pci_check_bar

2022-09-06 Thread Jan Beulich
On 01.09.2022 11:29, Rahul Singh wrote: > is_memory_hole was implemented for x86 and not for ARM when introduced. > Replace is_memory_hole call to pci_check_bar as function should check > if device BAR is in defined memory range. Also, add an implementation > for ARM which is required for PCI passt

[PATCH v7 0/9] static shared memory on dom0less system

2022-09-06 Thread Penny Zheng
In safety-critical environment, it is not considered safe to dynamically change important configurations at runtime. Everything should be statically defined and statically verified. In this case, if the system configuration knows a priori that there are only 2 VMs and they need to communicate over

[PATCH v7 1/9] xen/arm: introduce static shared memory

2022-09-06 Thread Penny Zheng
From: Penny Zheng This patch series introduces a new feature: setting up static shared memory on a dom0less system, through device tree configuration. This commit parses shared memory node at boot-time, and reserve it in bootinfo.reserved_mem to avoid other use. This commits proposes a new Kcon

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

2022-09-06 Thread Julien Grall
Hi Henry On 06/09/2022 02:53, Henry Wang wrote: 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 regio

[PATCH v7 3/9] xen/arm: allocate static shared memory to a specific owner domain

2022-09-06 Thread Penny Zheng
If owner property is defined, then owner domain of a static shared memory region is not the default dom_io anymore, but a specific domain. This commit implements allocating static shared memory to a specific domain when owner property is defined. Coding flow for dealing borrower domain will be in

[PATCH v7 6/9] xen/arm: set up shared memory foreign mapping for borrower domain

2022-09-06 Thread Penny Zheng
This commit sets up shared memory foreign mapping for borrower domain. If owner domain is the default dom_io, all shared domain are treated as borrower domain. Signed-off-by: Penny Zheng Reviewed-by: Stefano Stabellini --- v7 change: - no changes --- v6 change: - no change --- v5 change: - no c

[PATCH v7 9/9] xen: Add static memory sharing in SUPPORT.md

2022-09-06 Thread Penny Zheng
on ARM, static memory sharing is tech preview, which shall be documented in SUPPORT.md Signed-off-by: Penny Zheng --- v7 changes: - doc refinement --- v6 change: - new commit --- SUPPORT.md | 7 +++ 1 file changed, 7 insertions(+) diff --git a/SUPPORT.md b/SUPPORT.md index 8e040d1c1e..19798

Re: [PATCH v6 09/10] drivers/char: fix handling cable re-plug in XHCI console driver

2022-09-06 Thread Jan Beulich
On 02.09.2022 15:17, Marek Marczykowski-Górecki wrote: > When cable is unplugged, dbc_ensure_running() correctly detects this > situation (DBC_CTRL_DCR flag is clear), and prevent sending data > immediately to the device. It gets only queued in work ring buffers. > When cable is plugged in again, s

Re: [PATCH v3 2/2] xen/pci: replace call to is_memory_hole to pci_check_bar

2022-09-06 Thread Rahul Singh
Hi Julien, > On 3 Sep 2022, at 8:18 am, Julien Grall wrote: > > Hi Rahul, > > On 01/09/2022 10:29, Rahul Singh wrote: >> is_memory_hole was implemented for x86 and not for ARM when introduced. >> Replace is_memory_hole call to pci_check_bar as function should check >> if device BAR is in define

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

2022-09-06 Thread Anthony PERARD
Hi Jens, On Thu, Aug 18, 2022 at 12:55:55PM +0200, Jens Wiklander wrote: > diff --git a/tools/libs/light/libxl_arm.c b/tools/libs/light/libxl_arm.c > index eef1de093914..a985609861c7 100644 > --- a/tools/libs/light/libxl_arm.c > +++ b/tools/libs/light/libxl_arm.c > @@ -101,6 +101,9 @@ int libxl__a

Re: Setting constant-time mode CPU flag

2022-09-06 Thread Jan Beulich
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 plans to set > this bit by default; Xen should do the same. See > https://lore.kernel.org/lkml/ywgcrqutxmx0w...@gmail

Re: [PATCH v3 2/2] xen/pci: replace call to is_memory_hole to pci_check_bar

2022-09-06 Thread Julien Grall
On 06/09/2022 10:39, Rahul Singh wrote: Hi Julien, On 3 Sep 2022, at 8:18 am, Julien Grall wrote: Hi Rahul, On 01/09/2022 10:29, Rahul Singh wrote: is_memory_hole was implemented for x86 and not for ARM when introduced. Replace is_memory_hole call to pci_check_bar as function should chec

[PATCH v2 0/2] live migration: optimisations

2022-09-06 Thread Andrei Semenov
This 2 patches implement some optimisations for guests live migraiton. Andrei Semenov (2): live migration: do not use deffered bitmap when inappropriate live migration: use superpages for physmap population on restore when possible tools/include/xen-tools/libs.h | 4 ++ tools

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

2022-09-06 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 Clang

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

2022-09-06 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 dire

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

2022-09-06 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 f

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

2022-09-06 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: git://git.kernel.or

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

2022-09-06 Thread Jan Beulich
(shortening Cc list) On 05.09.2022 16:59, Anthony PERARD wrote: > On Mon, Sep 05, 2022 at 03:44:33AM +, Henry Wang wrote: >> ** Common **: >> 10. [XEN,v2] build: Fix x86 out-of-tree build without EFI >> https://patchwork.kernel.org/project/xen-devel/list/?series=668331 >> Status: Reviewed but

Re: [PATCH v12 6/6] xen: retrieve reserved pages on populate_physmap

2022-09-06 Thread Jan Beulich
On 06.09.2022 09:39, Penny Zheng wrote: > When a static domain populates memory through populate_physmap at runtime, > it shall retrieve reserved pages from resv_page_list to make sure that > guest RAM is still restricted in statically configured memory regions. > This commit also introduces a new

Re: Ryzen 6000 (Mobile)

2022-09-06 Thread Jan Beulich
On 01.09.2022 00:12, Dylanger Daly wrote: > I think I've narrowed the issue down to a PCI device, if I start 2 large VM, > then simply run lspci in dom0, it'll trigger a crash. > > This makes sense as sys-net works fine until I start a larger VM, then I see > a 'chip reset' error in the appVM's

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

2022-09-06 Thread Henry Wang
Hi Julien, Thanks for the clarification and your patience. For the populate_boot_allocator() change, I attached my change in the end, and personally I would like to hear your opinion before sending v3 since we now have limited time. > -Original Message- > From: Julien Grall > >>> +

[ImageBuilder] Add support for Xen boot-time cpupools

2022-09-06 Thread Michal Orzel
Introduce support for creating boot-time cpupools in the device tree and assigning them to dom0less domUs. Add the following options: - CPUPOOL[number]="cpu1_path,...,cpuN_path scheduler" to specify the list of cpus and the scheduler to be used to create cpupool - NUM_CPUPOOLS to specify the n

Re: [Xen-devel] Xen crash after S3 suspend - Xen 4.13 and newer

2022-09-06 Thread Juergen Gross
On 22.08.22 17:34, Juergen Gross wrote: On 21.08.22 18:14, Marek Marczykowski-Górecki wrote: On Sat, Oct 09, 2021 at 06:28:17PM +0200, Marek Marczykowski-Górecki wrote: On Sun, Jan 31, 2021 at 03:15:30AM +0100, Marek Marczykowski-Górecki wrote: On Tue, Sep 29, 2020 at 05:27:48PM +0200, Jürgen

Re: [PATCH v7 9/9] xen: Add static memory sharing in SUPPORT.md

2022-09-06 Thread Michal Orzel
Hi Penny, On 06/09/2022 10:59, Penny Zheng wrote: > > on ARM, static memory sharing is tech preview, which shall be documented > in SUPPORT.md > > Signed-off-by: Penny Zheng Reviewed-by: Michal Orzel ~Michal

[xen-unstable test] 173013: FAIL

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

Re: [Xen-devel] Xen crash after S3 suspend - Xen 4.13 and newer

2022-09-06 Thread Marek Marczykowski-Górecki
On Tue, Sep 06, 2022 at 01:46:55PM +0200, Juergen Gross wrote: > On 22.08.22 17:34, Juergen Gross wrote: > > On 21.08.22 18:14, Marek Marczykowski-Górecki wrote: > > > On Sat, Oct 09, 2021 at 06:28:17PM +0200, Marek Marczykowski-Górecki > > > wrote: > > > > On Sun, Jan 31, 2021 at 03:15:30AM +0100

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

2022-09-06 Thread Julien Grall
Hi Henry, On 06/09/2022 12:11, Henry Wang wrote: -Original Message- From: Julien Grall +{ +bank_start = bootinfo.reserved_mem.bank[i].start; +bank_size = bootinfo.reserved_mem.bank[i].size; +bank_end = bank_start + bank_size; + +i

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

2022-09-06 Thread Jason Andryuk
On Mon, Sep 5, 2022 at 9:50 AM Marek Marczykowski-Górecki wrote: > > 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 tim

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

2022-09-06 Thread Jason Andryuk
On Mon, Sep 5, 2022 at 9:50 AM Marek Marczykowski-Górecki wrote: > > 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 startu

[libvirt test] 173017: regressions - FAIL

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

[linux-linus test] 173015: regressions - FAIL

2022-09-06 Thread osstest service owner
flight 173015 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/173015/ 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] acpi: Add TPM2 interface definition and make the TPM version configurable.

2022-09-06 Thread Daniel P. Smith
On 9/1/22 08:55, Jason Andryuk wrote: > On Tue, Aug 30, 2022 at 4:30 PM Jennifer Herbert > wrote: >> >> This patch introduces an optional TPM 2 interface definition to the ACPI >> table, >> which is to be used as part of a vTPM 2 implementation. >> To enable the new interface - I have made the TP

[PATCH v4 0/7] xen/evtchn: implement static event channel signaling

2022-09-06 Thread Rahul Singh
The purpose of this patch series is to add the static event channel signaling support to Xen on Arm based on design doc [1]. [1] https://lists.xenproject.org/archives/html/xen-devel/2022-05/msg01160.html Julien Grall (1): xen/evtchn: Make sure all buckets below d->valid_evtchns are allocated R

[PATCH v4 2/7] xen/evtchn: Add an helper to reserve/allocate a port

2022-09-06 Thread Rahul Singh
From: Stanislav Kinsburskii In a follow-up patch we will want to either reserve or allocate a port for various event channel helpers. A new wrapper is introduced to either reserve a given port or allocate a fresh one if zero. Take the opportunity to replace the open-coded version in evtchn_bind

[PATCH v4 3/7] xen/evtchn: restrict the maximum number of evtchn supported for domUs

2022-09-06 Thread Rahul Singh
Restrict the maximum number of evtchn supported for domUs to avoid allocating a large amount of memory in Xen. Set the default value of max_evtchn_port to 1023. The value of 1023 should be sufficient for domUs guests because on ARM we don't bind physical interrupts to event channels. The only use

[PATCH v4 6/7] xen/arm: introduce new xen,enhanced property value

2022-09-06 Thread Rahul Singh
Introduce a new "xen,enhanced" dom0less property value "no-xenstore" to disable xenstore interface for dom0less guests. Signed-off-by: Rahul Singh --- Changes in v4: - Implement defines for dom0less features Changes in v3: - new patch in this version --- docs/misc/arm/device-tree/booting.txt |

Re: [PATCH v4 1/7] xen/evtchn: Make sure all buckets below d->valid_evtchns are allocated

2022-09-06 Thread Jan Beulich
On 06.09.2022 15:40, Rahul Singh wrote: > From: Julien Grall > > Since commit 01280dc19cf3 "evtchn: simplify port_is_valid()", the event > channels code assumes that all the buckets below d->valid_evtchns are > always allocated. > > This assumption hold in most of the situation because a guest i

[ovmf test] 173021: regressions - FAIL

2022-09-06 Thread osstest service owner
flight 173021 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173021/ 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/public: move XEN_ACPI_ in a new header

2022-09-06 Thread Henry Wang
Hi Jan, > -Original Message- > From: Jan Beulich > > Acked-by: Henry Wang # For the 4.17 release > > I've translated this to Release-acked-by: (as was used for earlier releases). Thanks for letting me know this! I will keep in mind and use this in the future. Kind regards, Henry >

[linux-5.4 test] 173016: regressions - FAIL

2022-09-06 Thread osstest service owner
flight 173016 linux-5.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/173016/ 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: [for-4.17 PATCH] acpi: Add TPM2 interface definition and make the TPM version configurable.

2022-09-06 Thread Henry Wang
Hi Andrew, (+ Anthony as I believe he is the toolstack maintainer) > -Original Message- > From: Andrew Cooper > Subject: Re: [for-4.17 PATCH] acpi: Add TPM2 interface definition and make > the TPM version configurable. > > On 30/08/2022 21:27, Jennifer Herbert wrote: > > This patch intr

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

2022-09-06 Thread Bertrand Marquis
Hi Rahul, > On 6 Sep 2022, at 10:55, Rahul Singh wrote: > > From: Zhou Wang > > Backport Linux commit a76a3f2c. Introduce __iomb() in the smmu-v3.c > file with other Linux compatibility definitions. > > Reading the 'prod' MMIO register in order to determine whether or > not there is valid

Re: [PATCH v6 01/10] drivers/char: allow using both dbgp=xhci and dbgp=ehci

2022-09-06 Thread Jan Beulich
On 02.09.2022 15:17, Marek Marczykowski-Górecki wrote: > This allows configuring EHCI and XHCI consoles separately, > simultaneously. > > This changes string_param() to custom_param() in both ehci and xhci > drivers. Both drivers parse only values applicable to them. > > While at it, drop unneces

Re: [PATCH] xen/arm: acpi: Support memory reserve configuration table

2022-09-06 Thread Marc Zyngier
On Tue, 06 Sep 2022 16:13:25 +0100, Leo Yan wrote: > > On Tue, Sep 06, 2022 at 08:53:02AM +0100, Marc Zyngier wrote: > > [...] > > > > Okay, I think have two questions for you: > > > > > > - The first question is if we really need to reserve persistent memory > > > for RD pending table and c

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

2022-09-06 Thread Suren Baghdasaryan
On Tue, Sep 6, 2022 at 1:01 AM Michal Hocko wrote: > > On Mon 05-09-22 11:03:35, Suren Baghdasaryan wrote: > > 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: > > > [...

Re: [PATCH v6 00/10] Add Xue - console over USB 3 Debug Capability

2022-09-06 Thread Marek Marczykowski-Górecki
On Tue, Sep 06, 2022 at 05:11:24PM +0200, Jan Beulich wrote: > On 02.09.2022 15:17, Marek Marczykowski-Górecki wrote: > > Marek Marczykowski-Górecki (10): > > drivers/char: allow using both dbgp=xhci and dbgp=ehci > > console: support multiple serial console simultaneously > > IOMMU: add comm

Re: [PATCH V5 2/6] libxl: Add support for Virtio GPIO device

2022-09-06 Thread Anthony PERARD
On Mon, Aug 22, 2022 at 02:45:14PM +0530, Viresh Kumar wrote: > This patch adds basic support for configuring and assisting virtio-mmio > based virtio-gpio backend (emualator) which is intended to run out of > Qemu and could be run in any domain. > > An example of domain configuration for Virtio G

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

2022-09-06 Thread Julien Grall
Hi, On 06/09/2022 10:55, Rahul Singh wrote: 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): x

Re: [PATCH v12 6/6] xen: retrieve reserved pages on populate_physmap

2022-09-06 Thread Julien Grall
Hi Penny, On 06/09/2022 08:39, Penny Zheng wrote: When a static domain populates memory through populate_physmap at runtime, it shall retrieve reserved pages from resv_page_list to make sure that guest RAM is still restricted in statically configured memory regions. This commit also introduces a

Re: [PATCH v12 0/6] populate/unpopulate memory when domain on static allocation

2022-09-06 Thread Julien Grall
Hi Penny, On 06/09/2022 08:39, Penny Zheng wrote: Penny Zheng (6): xen: do not free reserved memory into heap xen/arm: introduce CDF_staticmem xen: unpopulate memory when domain is static xen: introduce prepare_staticmem_pages xen: rename free_staticmem_pages to unprepare_staticme

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

2022-09-06 Thread Julien Grall
Hi Juergen, On 05/09/2022 13:47, Juergen Gross wrote: 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

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

2022-09-06 Thread Rahul Singh
Hi Julien, > On 6 Sep 2022, at 5:49 pm, Julien Grall wrote: > > Hi, > > On 06/09/2022 10:55, Rahul Singh wrote: >> 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:

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

2022-09-06 Thread Julien Grall
Hi Juergen, On 05/09/2022 13:47, Juergen Gross wrote: 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

[ovmf test] 173024: regressions - FAIL

2022-09-06 Thread osstest service owner
flight 173024 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/173024/ 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 v7 1/9] xen/arm: introduce static shared memory

2022-09-06 Thread Julien Grall
Hi Penny, On 06/09/2022 09:59, Penny Zheng wrote: +for ( i = 0; i < mem->nr_banks; i++ ) +{ +/* + * Meet the following check: + * 1) The shm ID matches and the region exactly match + * 2) The shm ID doesn't match and the region doesn't overlap + *

Re: [PATCH v7 1/9] xen/arm: introduce static shared memory

2022-09-06 Thread Julien Grall
Hi Penny, On 06/09/2022 09:59, Penny Zheng wrote: static int __init early_scan_node(const void *fdt, int node, const char *name, int depth, u32 address_cells, u32 size_cells, @@ -386,6 +549,8 @@ static int __init early_sca

[qemu-mainline test] 173020: regressions - FAIL

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

[xen-unstable-smoke test] 173026: tolerable FAIL - PUSHED

2022-09-06 Thread osstest service owner
flight 173026 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/173026/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 1 build-check(1) blocked n/a build-amd64-libvirt 6 lib

Re: [PATCH V5 1/6] libxl: Add support for Virtio I2C device

2022-09-06 Thread Anthony PERARD
Hi Viresh, On Mon, Aug 22, 2022 at 02:45:13PM +0530, Viresh Kumar wrote: > This patch adds basic support for configuring and assisting virtio-mmio > based virtio-i2c backend (emualator) which is intended to run out of > Qemu and could be run in any domain. "to run out of Qemu" -> this is ambiguou

Re: [PATCH V5 5/6] libxl: Allocate MMIO params for I2c device and update DT

2022-09-06 Thread Anthony PERARD
On Mon, Aug 22, 2022 at 02:45:17PM +0530, Viresh Kumar wrote: > This also relocates the code responsible to call make_xen_iommu_node() > towards the end of the routine, so we create the node only once. Could you do this part in a separate patch? Then, I believe the rest of the patch could be squas

Re: [PATCH V5 3/6] libxl: arm: Create alloc_virtio_mmio_params()

2022-09-06 Thread Anthony PERARD
On Mon, Aug 22, 2022 at 02:45:15PM +0530, Viresh Kumar wrote: > Create a separate routine to allocate base and irq for a device as the > same code will be required for each device type. > > Suggested-by: Oleksandr Tyshchenko > Reviewed-by: Oleksandr Tyshchenko > Signed-off-by: Viresh Kumar > --

Re: [PATCH V5 4/6] libxl: arm: Split make_virtio_mmio_node()

2022-09-06 Thread Anthony PERARD
On Mon, Aug 22, 2022 at 02:45:16PM +0530, Viresh Kumar wrote: > make_virtio_mmio_node() creates the DT node for simple MMIO devices > currently, i.e. the ones that don't require any additional properties. > > In order to allow using it for other complex device types, split the > functionality into

Re: [PATCH V5 6/6] libxl: Allocate MMIO params for GPIO device and update DT

2022-09-06 Thread Anthony PERARD
On Mon, Aug 22, 2022 at 02:45:18PM +0530, Viresh Kumar wrote: > This patch allocates Virtio MMIO params (IRQ and memory region) and pass > them to the backend, also update Guest device-tree based on Virtio GPIO > DT bindings [1]. > > [1] > https://www.kernel.org/doc/Documentation/devicetree/bindi

Re: [PATCH] xen-pcifront: Handle missed Connected state

2022-09-06 Thread Jason Andryuk
On Fri, Sep 2, 2022 at 12:59 PM Bjorn Helgaas wrote: > > The conventional style for subject (from "git log --oneline") is: > > xen/pcifront: Handle ... > > On Mon, Aug 29, 2022 at 11:15:36AM -0400, Jason Andryuk wrote: > > An HVM guest with linux stubdom and 2 PCI devices failed to start as > >

Re: Ryzen 6000 (Mobile)

2022-09-06 Thread Jan Beulich
On 27.08.2022 19:52, Dylanger Daly wrote: > Thank you for your reply, Xen appears to crash immediately on startup and > appears to hit the patch Oh, yes, silly me - map_domain_page() can't be used that way. You may want to give the replacement patch (below) a try, albeit later replies of yours ha

[PATCH v7 4/9] xen/arm: introduce put_page_nr and get_page_nr

2022-09-06 Thread Penny Zheng
Later, we need to add the right amount of references, which should be the number of borrower domains, to the owner domain. Since we only have get_page() to increment the page reference by 1, a loop is needed per page, which is inefficient and time-consuming. To save the loop time, this commit intr

Re: [PATCH v2] x86/public: move XEN_ACPI_ in a new header

2022-09-06 Thread Jan Beulich
On 30.08.2022 02:52, Henry Wang wrote: >> -Original Message- >> From: Jan Beulich >> Subject: Re: [PATCH v2] x86/public: move XEN_ACPI_ in a new header >> >> On 25.08.2022 11:48, Bertrand Marquis wrote: >>> When Xen is compiled for x86 on an arm machine, libacpi build is failing >>> due to

[PATCH v7 5/9] xen/arm: Add additional reference to owner domain when the owner is allocated

2022-09-06 Thread Penny Zheng
Borrower domain will fail to get a page ref using the owner domain during allocation, when the owner is created after borrower. So here, we decide to get and add the right amount of reference, which is the number of borrowers, when the owner is allocated. Signed-off-by: Penny Zheng Reviewed-by:

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

2022-09-06 Thread Jens Wiklander
Hi Julien, On Tue, Sep 6, 2022 at 12:17 AM Julien Grall wrote: > > 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 ver

[PATCH v4 4/7] xen/evtchn: modify evtchn_alloc_unbound to allocate specified port

2022-09-06 Thread Rahul Singh
Currently evtchn_alloc_unbound() always allocates the next available port. Static event channel support for dom0less domains requires allocating a specified port. Modify the evtchn_alloc_unbound() to accept the port number as an argument and allocate the specified port if available. If the port nu

[PATCH] xen/arm: acpi: Include header file for version number

2022-09-06 Thread Leo Yan
On Arm64 Linux kernel prints log for Xen version number: [0.00] Xen XEN_VERSION.XEN_SUBVERSION support found Because the header file "xen/compile.h" is missed, XEN_VERSION and XEN_SUBVERSION are not defined, thus compiler directly uses the string "XEN_VERSION" and "XEN_SUBVERSION" in th

Re: [PATCH] xen/timer: don't migrate timers away from cpus during suspend

2022-09-06 Thread Jan Beulich
On 06.09.2022 14:41, Juergen Gross wrote: > During a suspend/resume cycle timers on all cpus but cpu 0 will be > migrated to cpu 0, as the other cpus are taken down. > > This is problematic in case such a timer is related to a specific vcpu, > as the vcpus are not migrated to another cpu during su

[PATCH v4 1/7] xen/evtchn: Make sure all buckets below d->valid_evtchns are allocated

2022-09-06 Thread Rahul Singh
From: Julien Grall Since commit 01280dc19cf3 "evtchn: simplify port_is_valid()", the event channels code assumes that all the buckets below d->valid_evtchns are always allocated. This assumption hold in most of the situation because a guest is not allowed to chose the port. Instead, it will be t

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

2022-09-06 Thread Henry Wang
Hi Jan, > -Original Message- > From: Jan Beulich > Subject: Re: Xen 4.17 release: Current status before the feature freeze > > On 05.09.2022 05:44, Henry Wang wrote: > > ** x86 **: > > 1. [v2] x86: show_hvm_stack() requires enabled interrupts > > https://patchwork.kernel.org/project/xen-

  1   2   >