[ovmf test] 170139: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170139 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170139/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

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

2022-05-04 Thread Penny Zheng
Hi jan > -Original Message- > From: Jan Beulich > Sent: Wednesday, May 4, 2022 9:45 PM > To: Penny Zheng > Cc: Wei Chen ; Henry Wang ; > Andrew Cooper ; George Dunlap > ; Julien Grall ; Stefano > Stabellini ; Wei Liu ; xen- > de...@lists.xenproject.org > Subject: Re: [PATCH v3 6/6] xen:

RE: [PATCH v3 2/6] xen: do not merge reserved pages in free_heap_pages()

2022-05-04 Thread Penny Zheng
Hi, > -Original Message- > From: Jan Beulich > Sent: Wednesday, May 4, 2022 9:30 PM > To: Penny Zheng > Cc: Wei Chen ; Henry Wang ; > Andrew Cooper ; George Dunlap > ; Julien Grall ; Stefano > Stabellini ; Wei Liu ; xen- > de...@lists.xenproject.org > Subject: Re: [PATCH v3 2/6] xen: do

[PATCH v4] Preserve the EFI System Resource Table for dom0

2022-05-04 Thread Demi Marie Obenour
The EFI System Resource Table (ESRT) is necessary for fwupd to identify firmware updates to install. According to the UEFI specification §23.4, the ESRT shall be stored in memory of type EfiBootServicesData. However, memory of type EfiBootServicesData is considered general-purpose memory by Xen,

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

2022-05-04 Thread Penny Zheng
Hi jan > -Original Message- > From: Jan Beulich > Sent: Wednesday, May 4, 2022 9:27 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 v3 1/6] xen: do not free r

[ovmf test] 170137: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170137 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170137/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

Re: [PATCH 03/32] flex_array: Add Kunit tests

2022-05-04 Thread Daniel Latypov
On Tue, May 3, 2022 at 8:47 PM Kees Cook wrote: > +#define COMPARE_STRUCTS(STRUCT_A, STRUCT_B)do {\ > + STRUCT_A *ptr_A;\ > + STRUCT_B *ptr_B;\ > + int rc;

Re: [PATCH 28/32] selinux: Use mem_to_flex_dup() with xfrm and sidtab

2022-05-04 Thread Paul Moore
On Tue, May 3, 2022 at 9:57 PM Kees Cook wrote: > > As part of the work to perform bounds checking on all memcpy() uses, > replace the open-coded a deserialization of bytes out of memory into a > trailing flexible array by using a flex_array.h helper to perform the > allocation, bounds checking, a

Re: [PATCH 28/32] selinux: Use mem_to_flex_dup() with xfrm and sidtab

2022-05-04 Thread Gustavo A. R. Silva
Hi Paul, On Wed, May 04, 2022 at 06:57:28PM -0400, Paul Moore wrote: > On Tue, May 3, 2022 at 9:57 PM Kees Cook wrote: [..] > > +++ b/include/uapi/linux/xfrm.h > > @@ -31,9 +31,9 @@ struct xfrm_id { > > struct xfrm_sec_ctx { > > __u8ctx_doi; > > __u8ctx_alg; > > -

Re: [PATCH 28/32] selinux: Use mem_to_flex_dup() with xfrm and sidtab

2022-05-04 Thread Paul Moore
On Wed, May 4, 2022 at 7:34 PM Gustavo A. R. Silva wrote: > > Hi Paul, > > On Wed, May 04, 2022 at 06:57:28PM -0400, Paul Moore wrote: > > On Tue, May 3, 2022 at 9:57 PM Kees Cook wrote: > > [..] > > > > +++ b/include/uapi/linux/xfrm.h > > > @@ -31,9 +31,9 @@ struct xfrm_id { > > > struct xfrm_s

[ovmf test] 170135: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170135 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170135/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

[ovmf bisection] complete build-i386-xsm

2022-05-04 Thread osstest service owner
branch xen-unstable xenbranch xen-unstable job build-i386-xsm testid xen-build Tree: ovmf https://github.com/tianocore/edk2.git Tree: qemu git://xenbits.xen.org/qemu-xen-traditional.git Tree: qemuu git://xenbits.xen.org/qemu-xen.git Tree: seabios git://xenbits.xen.org/osstest/seabios.git Tree: xen

RE: [PATCH 1/2] xen/arm: Defer request_irq on secondary CPUs after local_irq_enable

2022-05-04 Thread Henry Wang
Hi, > -Original Message- > Subject: [PATCH 1/2] xen/arm: Defer request_irq on secondary CPUs after > local_irq_enable > > With the enhanced ASSERT_ALLOC_CONTEXT, calling request_irq before > local_irq_enable on secondary cores will lead to > > (XEN) Xen call trace: > (XEN) [<002

[PATCH 1/2] xen/arm: Defer request_irq on secondary CPUs after local_irq_enable

2022-05-04 Thread Henry Wang
With the enhanced ASSERT_ALLOC_CONTEXT, calling request_irq before local_irq_enable on secondary cores will lead to (XEN) Xen call trace: (XEN) [<0021d86c>] alloc_xenheap_pages+0x74/0x194 (PC) (XEN) [<0021d864>] alloc_xenheap_pages+0x6c/0x194 (LR) (XEN) [<00229e90>] xmalloc

[PATCH 2/2] xen/common: Use enhanced ASSERT_ALLOC_CONTEXT in xmalloc()

2022-05-04 Thread Henry Wang
xmalloc() will use a pool for allocation smaller than a page. The pool is extended only when there are no more space. At which point, alloc_xenheap_pages() is called to add more memory. xmalloc() must be protected by ASSERT_ALLOC_CONTEXT. It should not rely on pool expanding to trigger the ASSERT_

[PATCH 0/2] Adjustment after introducing ASSERT_ALLOC_CONTEXT

2022-05-04 Thread Henry Wang
With the enhanced ASSERT_ALLOC_CONTEXT, calling request_irq before local_irq_enable on secondary cores on Arm will lead to (XEN) Xen call trace: (XEN) [<0021d86c>] alloc_xenheap_pages+0x74/0x194 (PC) (XEN) [<0021d864>] alloc_xenheap_pages+0x6c/0x194 (LR) (XEN) [<00229e90>]

[ovmf test] 170131: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170131 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170131/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

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

2022-05-04 Thread osstest service owner
flight 170122 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/170122/ 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 1

[linux-linus test] 170116: tolerable FAIL - PUSHED

2022-05-04 Thread osstest service owner
flight 170116 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/170116/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-xl-qemut-win7-amd64 19 guest-stopfail like 170072 test-armhf-armhf-libvirt 16 saver

[ovmf test] 170127: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170127 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170127/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

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

2022-05-04 Thread osstest service owner
flight 170110 qemu-mainline real [real] flight 170123 qemu-mainline real-retest [real] http://logs.test-lab.xenproject.org/osstest/logs/170110/ http://logs.test-lab.xenproject.org/osstest/logs/170123/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-ar

[PATCH v4 2/2] xen: add support for initializing xenstore later as HVM domain

2022-05-04 Thread Stefano Stabellini
From: Luca Miccio When running as dom0less guest (HVM domain on ARM) the xenstore event channel is available at domain creation but the shared xenstore interface page only becomes available later on. In that case, wait for a notification on the xenstore event channel, then complete the xenstore

[PATCH LINUX 0/2] dom0less + PV drivers

2022-05-04 Thread Stefano Stabellini
Hi all, This small Linux patch series implements support for initializing xenstore later, if not immediately available at boot time. It enables dom0less + PV drivers support. Luca Miccio (1): xen: add support for initializing xenstore later as HVM domain Stefano Stabellini (1): xen:

[PATCH v4 1/2] xen: sync xs_wire.h header with upstream xen

2022-05-04 Thread Stefano Stabellini
From: Stefano Stabellini Sync the xs_wire.h header file in Linux with the one in Xen. Signed-off-by: Stefano Stabellini --- include/xen/interface/io/xs_wire.h | 34 +++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/include/xen/interface/io/xs_wire.h

[PATCH v6 6/7] tools: add example application to initialize dom0less PV drivers

2022-05-04 Thread Stefano Stabellini
From: Luca Miccio Add an example application that can be run in dom0 to complete the dom0less domains initialization so that they can get access to xenstore and use PV drivers. The application sets "connection" to XENSTORE_RECONNECT on the xenstore page before calling xs_introduce_domain to sign

[PATCH v6 1/7] xen/dt: of_property_read_string return -ENODATA when !length

2022-05-04 Thread Stefano Stabellini
From: Stefano Stabellini When the length of the string is zero of_property_read_string should return -ENODATA according to the description of the function. However, of_property_read_string doesn't check prop->length. If prop->length is zero, return -ENODATA. Without this patch the following com

[PATCH v6 4/7] xen/arm: configure dom0less domain for enabling xenstore after boot

2022-05-04 Thread Stefano Stabellini
From: Luca Miccio Export evtchn_alloc_unbound and make it __must_check. If "xen,enhanced" is enabled, then add to dom0less domains: - the hypervisor node in device tree - the xenstore event channel The xenstore event channel is also used for the first notification to let the guest know that xe

[PATCH v6 5/7] xenstored: send an evtchn notification on introduce_domain

2022-05-04 Thread Stefano Stabellini
From: Luca Miccio When xs_introduce_domain is called, send out a notification on the xenstore event channel so that any (dom0less) domain waiting for the xenstore interface to be ready can continue with the initialization. Before sending the notification, clear XENSTORE_RECONNECTING. The extra n

[PATCH v6 3/7] xen: introduce xen,enhanced dom0less property

2022-05-04 Thread Stefano Stabellini
From: Stefano Stabellini Introduce a new "xen,enhanced" dom0less property to enable/disable PV driver interfaces for dom0less guests. Currently only "enabled" and "disabled" are supported property values (and empty). Leave the option open to implement further possible values in the future (e.g. "

[PATCH v6 7/7] docs: document dom0less + PV drivers

2022-05-04 Thread Stefano Stabellini
From: Stefano Stabellini Document how to use the feature and how the implementation works. Signed-off-by: Stefano Stabellini Reviewed-by: Luca Fancellu --- docs/features/dom0less.pandoc | 43 --- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/do

[PATCH v6 2/7] xen/arm: implement domU extended regions

2022-05-04 Thread Stefano Stabellini
From: Stefano Stabellini Implement extended regions for dom0less domUs. The implementation is based on the libxl implementation. Also update docs for the ext_regions command line option. Signed-off-by: Stefano Stabellini Reviewed-by: Luca Fancellu CC: olekst...@gmail.com --- Changes in v6: -

[PATCH v6 0/7] dom0less PV drivers

2022-05-04 Thread Stefano Stabellini
Hi all, Currently dom0less guests cannot use PV drivers because they don't have access to xenstore. Also, the hypervisor node in device tree is missing so they don't detect that they are running on Xen (thus, they don't try to enable PV interfaces.) This patch series enables dom0less guests (on A

[ovmf test] 170125: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170125 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170125/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

[ovmf test] 170121: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170121 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170121/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

Re: [PATCH] optee: immediately free RPC buffers that are released by OP-TEE

2022-05-04 Thread Stefano Stabellini
On Wed, 4 May 2022, Volodymyr Babchuk wrote: > Hello Jens, > > Jens Wiklander writes: > > > This commit fixes a case overlooked in [1]. > > > > There are two kinds of shared memory buffers used by OP-TEE: > > 1. Normal payload buffer > > 2. Internal command structure buffers > > > > The internal

[ovmf test] 170117: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170117 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170117/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

Re: [PATCH 07/30] mips: ip22: Reword PANICED to PANICKED and remove useless header

2022-05-04 Thread Guilherme G. Piccoli
On 04/05/2022 17:32, Thomas Bogendoerfer wrote: > [...] > > applied to mips-next. > > Thomas. > Thanks a bunch Thomas =)

Re: [PATCH 07/30] mips: ip22: Reword PANICED to PANICKED and remove useless header

2022-05-04 Thread Thomas Bogendoerfer
On Wed, Apr 27, 2022 at 07:49:01PM -0300, Guilherme G. Piccoli wrote: > Many other place in the kernel prefer the latter, so let's keep > it consistent in MIPS code as well. Also, removes a useless header. > > Cc: Thomas Bogendoerfer > Signed-off-by: Guilherme G. Piccoli > --- > arch/mips/sgi-i

Re: [PATCH] optee: immediately free RPC buffers that are released by OP-TEE

2022-05-04 Thread Volodymyr Babchuk
Hello Jens, Jens Wiklander writes: > This commit fixes a case overlooked in [1]. > > There are two kinds of shared memory buffers used by OP-TEE: > 1. Normal payload buffer > 2. Internal command structure buffers > > The internal command structure buffers are represented with a shadow > copy i

Re: [PATCH 03/32] flex_array: Add Kunit tests

2022-05-04 Thread Kees Cook
On Wed, May 04, 2022 at 11:00:38AM +0800, David Gow wrote: > On Wed, May 4, 2022 at 9:47 AM Kees Cook wrote: > > > > Add tests for the new flexible array structure helpers. These can be run > > with: > > > > make ARCH=um mrproper > > ./tools/testing/kunit/kunit.py config > > Nit: it shouldn't

[ovmf test] 170114: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170114 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170114/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

[PATCH v2] xen/evtchn: Add design for static event channel signaling

2022-05-04 Thread Rahul Singh
This patch introduces a new feature to support the signaling between two domains in dom0less system. Signed-off-by: Rahul Singh --- v2 changes: - switch to the one-subnode-per-evtchn under xen,domain" compatible node. - Add more detail about event-channel --- docs/designs/dom0less-evtchn.md | 1

[PATCH v2] arm/its: enable LPIs before mapping the collection table

2022-05-04 Thread Rahul Singh
When Xen boots on the platform that implements the GIC 600, ITS MAPC_LPI_OFF uncorrectable command error issue is observed. As per the GIC-600 TRM (Revision: r1p6) MAPC_LPI_OFF command error can be reported if the MAPC command has tried to map a collection to a core that does not have LPIs enabled

[ovmf test] 170111: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170111 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170111/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

RE: [PATCH 02/32] Introduce flexible array struct memcpy() helpers

2022-05-04 Thread David Laight
From: Kees Cook > Sent: 04 May 2022 16:38 ... > > > struct something *instance = NULL; > > > int rc; > > > > > > rc = mem_to_flex_dup(&instance, byte_array, count, GFP_KERNEL); > > > if (rc) > > > return rc; > > > > This seems rather awkward, having to set it to NULL, then c

Re: [PATCH v4 08/21] AMD/IOMMU: walk trees upon page fault

2022-05-04 Thread Roger Pau Monné
On Mon, Apr 25, 2022 at 10:36:42AM +0200, Jan Beulich wrote: > This is to aid diagnosing issues and largely matches VT-d's behavior. > Since I'm adding permissions output here as well, take the opportunity > and also add their displaying to amd_dump_page_table_level(). > > Signed-off-by: Jan Beuli

[PATCH v3 2/2] virtio: replace arch_has_restricted_virtio_memory_access()

2022-05-04 Thread Juergen Gross
Instead of using arch_has_restricted_virtio_memory_access() together with CONFIG_ARCH_HAS_RESTRICTED_VIRTIO_MEMORY_ACCESS, replace those with platform_has() and a new platform feature PLATFORM_VIRTIO_RESTRICTED_MEM_ACCESS. Signed-off-by: Juergen Gross --- V2: - move setting of PLATFORM_VIRTIO_RES

[PATCH v3 0/2] kernel: add new infrastructure for platform_has() support

2022-05-04 Thread Juergen Gross
In another patch series [1] the need has come up to have support for a generic feature flag infrastructure. This patch series is introducing that infrastructure and adds the first use case. I have decided to use a similar interface as the already known x86 cpu_has() function. As the new infrastru

[PATCH v3 1/2] kernel: add platform_has() infrastructure

2022-05-04 Thread Juergen Gross
Add a simple infrastructure for setting, resetting and querying platform feature flags. Flags can be either global or architecture specific. Signed-off-by: Juergen Gross --- V2: - rename set/reset functions to platform_[set|clear]() (Boris Petkov, Heiko Carstens) - move function implementation

Re: [PATCH 02/32] Introduce flexible array struct memcpy() helpers

2022-05-04 Thread Kees Cook
On Wed, May 04, 2022 at 09:25:56AM +0200, Johannes Berg wrote: > On Tue, 2022-05-03 at 18:44 -0700, Kees Cook wrote: > > > > For example, using the most complicated helper, mem_to_flex_dup(): > > > > /* Flexible array struct with members identified. */ > > struct something { > > i

Re: [PATCH 20/32] ASoC: sigmadsp: Use mem_to_flex_dup() with struct sigmadsp_data

2022-05-04 Thread Mark Brown
On Tue, May 03, 2022 at 06:44:29PM -0700, Kees Cook wrote: > As part of the work to perform bounds checking on all memcpy() uses, > replace the open-coded a deserialization of bytes out of memory into a > trailing flexible array by using a flex_array.h helper to perform the > allocation, bounds ch

Re: [PATCH v4 05/21] IOMMU/x86: restrict IO-APIC mappings for PV Dom0

2022-05-04 Thread Roger Pau Monné
On Wed, May 04, 2022 at 03:55:09PM +0200, Jan Beulich wrote: > On 04.05.2022 15:46, Roger Pau Monné wrote: > > On Wed, May 04, 2022 at 03:19:16PM +0200, Jan Beulich wrote: > >> On 04.05.2022 15:00, Roger Pau Monné wrote: > >>> On Wed, May 04, 2022 at 02:12:58PM +0200, Jan Beulich wrote: > On 0

Re: [PATCH 12/32] cfg80211: Use mem_to_flex_dup() with struct cfg80211_bss_ies

2022-05-04 Thread Kees Cook
On Wed, May 04, 2022 at 09:28:46AM +0200, Johannes Berg wrote: > On Tue, 2022-05-03 at 18:44 -0700, Kees Cook wrote: > > > > @@ -2277,7 +2274,7 @@ cfg80211_update_notlisted_nontrans(struct wiphy > > *wiphy, > > size_t ielen = len - offsetof(struct ieee80211_mgmt, > >

[ovmf test] 170106: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170106 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170106/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

Re: [PATCH 10/32] wcn36xx: Use mem_to_flex_dup() with struct wcn36xx_hal_ind_msg

2022-05-04 Thread Kees Cook
On Wed, May 04, 2022 at 08:42:46AM +0300, Kalle Valo wrote: > Kees Cook writes: > > > As part of the work to perform bounds checking on all memcpy() uses, > > replace the open-coded a deserialization of bytes out of memory into a > > trailing flexible array by using a flex_array.h helper to perfo

Re: [PATCH v4 07/21] IOMMU/x86: support freeing of pagetables

2022-05-04 Thread Roger Pau Monné
On Wed, May 04, 2022 at 03:07:24PM +0200, Jan Beulich wrote: > On 03.05.2022 18:20, Roger Pau Monné wrote: > > On Mon, Apr 25, 2022 at 10:35:45AM +0200, Jan Beulich wrote: > >> For vendor specific code to support superpages we need to be able to > >> deal with a superpage mapping replacing an inter

Re: [PATCH v4 06/21] IOMMU/x86: perform PV Dom0 mappings in batches

2022-05-04 Thread Jan Beulich
On 04.05.2022 15:55, Roger Pau Monné wrote: > On Wed, May 04, 2022 at 02:27:14PM +0200, Jan Beulich wrote: >> On 04.05.2022 13:20, Roger Pau Monné wrote: >>> On Wed, May 04, 2022 at 11:46:37AM +0200, Jan Beulich wrote: On 03.05.2022 16:49, Roger Pau Monné wrote: > On Mon, Apr 25, 2022 at 1

[ovmf test] 170102: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170102 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170102/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

Re: [PATCH v4 06/21] IOMMU/x86: perform PV Dom0 mappings in batches

2022-05-04 Thread Roger Pau Monné
On Wed, May 04, 2022 at 02:27:14PM +0200, Jan Beulich wrote: > On 04.05.2022 13:20, Roger Pau Monné wrote: > > On Wed, May 04, 2022 at 11:46:37AM +0200, Jan Beulich wrote: > >> On 03.05.2022 16:49, Roger Pau Monné wrote: > >>> On Mon, Apr 25, 2022 at 10:34:59AM +0200, Jan Beulich wrote: > >>> It wo

Re: [PATCH v4 05/21] IOMMU/x86: restrict IO-APIC mappings for PV Dom0

2022-05-04 Thread Jan Beulich
On 04.05.2022 15:46, Roger Pau Monné wrote: > On Wed, May 04, 2022 at 03:19:16PM +0200, Jan Beulich wrote: >> On 04.05.2022 15:00, Roger Pau Monné wrote: >>> On Wed, May 04, 2022 at 02:12:58PM +0200, Jan Beulich wrote: On 04.05.2022 14:01, Roger Pau Monné wrote: > On Wed, May 04, 2022 at 1

Re: [PATCH v4 05/21] IOMMU/x86: restrict IO-APIC mappings for PV Dom0

2022-05-04 Thread Roger Pau Monné
On Wed, May 04, 2022 at 03:19:16PM +0200, Jan Beulich wrote: > On 04.05.2022 15:00, Roger Pau Monné wrote: > > On Wed, May 04, 2022 at 02:12:58PM +0200, Jan Beulich wrote: > >> On 04.05.2022 14:01, Roger Pau Monné wrote: > >>> On Wed, May 04, 2022 at 12:51:25PM +0200, Jan Beulich wrote: > On 0

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

2022-05-04 Thread Jan Beulich
On 27.04.2022 11:27, Penny Zheng wrote: > --- a/xen/common/memory.c > +++ b/xen/common/memory.c > @@ -245,6 +245,29 @@ static void populate_physmap(struct memop_args *a) > > mfn = _mfn(gpfn); > } > +else if ( is_domain_using_staticmem(d) ) > +

Re: [PATCH v3 2/6] xen: do not merge reserved pages in free_heap_pages()

2022-05-04 Thread Jan Beulich
On 27.04.2022 11:27, Penny Zheng wrote: > There is a slim chance that free_heap_pages() may decide to merge a chunk > from the static region(PGC_reserved) with the about-to-be-free chunk. > > So in order to avoid the above scenario, this commit updates free_heap_pages() > to check whether the pred

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

2022-05-04 Thread Jan Beulich
On 28.04.2022 05:01, Penny Zheng wrote: > --- a/xen/common/page_alloc.c > +++ b/xen/common/page_alloc.c > @@ -1443,6 +1443,10 @@ static void free_heap_pages( > > ASSERT(order <= MAX_ORDER); > > +if ( pg->count_info & PGC_reserved ) > +/* Reserved page shall not go back to the h

Re: [PATCH v4 05/21] IOMMU/x86: restrict IO-APIC mappings for PV Dom0

2022-05-04 Thread Jan Beulich
On 04.05.2022 15:00, Roger Pau Monné wrote: > On Wed, May 04, 2022 at 02:12:58PM +0200, Jan Beulich wrote: >> On 04.05.2022 14:01, Roger Pau Monné wrote: >>> On Wed, May 04, 2022 at 12:51:25PM +0200, Jan Beulich wrote: On 04.05.2022 12:30, Roger Pau Monné wrote: > Right, ->iomem_caps is in

Re: [PATCH 3/3] x86/monitor: Add new monitor event to catch all vmexits

2022-05-04 Thread Tamas K Lengyel
On Wed, Apr 27, 2022 at 11:51 AM Tamas K Lengyel wrote: > > Add monitor event that hooks the vmexit handler allowing for both sync and > async monitoring of events. With async monitoring an event is placed on the > monitor ring for each exit and the rest of the vmexit handler resumes > normally.

Re: [PATCH 2/3] tools/libxc: change xc_memshr_fork_reset API to match hypervisor

2022-05-04 Thread Tamas K Lengyel
On Wed, Apr 27, 2022 at 11:52 AM Tamas K Lengyel wrote: > > Need to separately specify if the reset is for the memory or for the VM state, > or both. > > Signed-off-by: Tamas K Lengyel > --- > v5: split from the hypervisor-side patch Patch ping. Could a toolstack maintainer please take a look at

Re: [PATCH v4 07/21] IOMMU/x86: support freeing of pagetables

2022-05-04 Thread Jan Beulich
On 03.05.2022 18:20, Roger Pau Monné wrote: > On Mon, Apr 25, 2022 at 10:35:45AM +0200, Jan Beulich wrote: >> For vendor specific code to support superpages we need to be able to >> deal with a superpage mapping replacing an intermediate page table (or >> hierarchy thereof). Consequently an iommu_a

[ovmf test] 170099: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170099 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170099/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

Re: [PATCH v4 05/21] IOMMU/x86: restrict IO-APIC mappings for PV Dom0

2022-05-04 Thread Roger Pau Monné
On Wed, May 04, 2022 at 02:12:58PM +0200, Jan Beulich wrote: > On 04.05.2022 14:01, Roger Pau Monné wrote: > > On Wed, May 04, 2022 at 12:51:25PM +0200, Jan Beulich wrote: > >> On 04.05.2022 12:30, Roger Pau Monné wrote: > >>> Right, ->iomem_caps is indeed too wide for our purpose. What > >>> abou

Re: [PATCH 04/30] firmware: google: Convert regular spinlock into trylock on panic path

2022-05-04 Thread Guilherme G. Piccoli
On 03/05/2022 18:56, Evan Green wrote: > Hi Guilherme, > [...] >> Do you agree with that, or prefer really a parameter in >> gsmi_shutdown_reason() ? I'll follow your choice =) > > I'm fine with either, thanks for the link. Mostly I want to make sure > other paths to gsmi_shutdown_reason() aren't

Re: [PATCH v4 06/21] IOMMU/x86: perform PV Dom0 mappings in batches

2022-05-04 Thread Jan Beulich
On 04.05.2022 13:20, Roger Pau Monné wrote: > On Wed, May 04, 2022 at 11:46:37AM +0200, Jan Beulich wrote: >> On 03.05.2022 16:49, Roger Pau Monné wrote: >>> On Mon, Apr 25, 2022 at 10:34:59AM +0200, Jan Beulich wrote: For large page mappings to be easily usable (i.e. in particular without >>>

Re: [PATCH] arm/its: enable LPIs before mapping the collection table

2022-05-04 Thread Rahul Singh
Hi Julien, > On 4 May 2022, at 12:59 pm, Julien Grall wrote: > > Hi, > > On 04/05/2022 12:25, Rahul Singh wrote: >>> On 3 May 2022, at 4:58 pm, Julien Grall wrote: >>> On 27/04/2022 17:14, Rahul Singh wrote: MAPC_LPI_OFF ITS command error can be reported to software if LPIs are not e

[linux-linus test] 170072: tolerable FAIL - PUSHED

2022-05-04 Thread osstest service owner
flight 170072 linux-linus real [real] flight 170095 linux-linus real-retest [real] http://logs.test-lab.xenproject.org/osstest/logs/170072/ http://logs.test-lab.xenproject.org/osstest/logs/170095/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-amd64-

Re: [PATCH v4 05/21] IOMMU/x86: restrict IO-APIC mappings for PV Dom0

2022-05-04 Thread Jan Beulich
On 04.05.2022 14:01, Roger Pau Monné wrote: > On Wed, May 04, 2022 at 12:51:25PM +0200, Jan Beulich wrote: >> On 04.05.2022 12:30, Roger Pau Monné wrote: >>> Right, ->iomem_caps is indeed too wide for our purpose. What >>> about using something like: >>> >>> else if ( is_pv_domain(d) ) >>> { >>>

Re: [PATCH v4 05/21] IOMMU/x86: restrict IO-APIC mappings for PV Dom0

2022-05-04 Thread Roger Pau Monné
On Wed, May 04, 2022 at 12:51:25PM +0200, Jan Beulich wrote: > On 04.05.2022 12:30, Roger Pau Monné wrote: > > On Wed, May 04, 2022 at 11:32:51AM +0200, Jan Beulich wrote: > >> On 03.05.2022 16:50, Jan Beulich wrote: > >>> On 03.05.2022 15:00, Roger Pau Monné wrote: > On Mon, Apr 25, 2022 at 1

Re: [PATCH] arm/its: enable LPIs before mapping the collection table

2022-05-04 Thread Julien Grall
Hi, On 04/05/2022 12:25, Rahul Singh wrote: On 3 May 2022, at 4:58 pm, Julien Grall wrote: On 27/04/2022 17:14, Rahul Singh wrote: MAPC_LPI_OFF ITS command error can be reported to software if LPIs are not enabled before mapping the collection table using MAPC command. Enable the LPIs using GI

[ovmf test] 170097: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170097 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170097/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

Re: [PATCH 1/3] xen/arm: Sync sysregs and cpuinfo with Linux 5.18-rc3

2022-05-04 Thread Julien Grall
Hi Bertrand, On 04/05/2022 10:49, Bertrand Marquis wrote: On 4 May 2022, at 09:20, Julien Grall wrote: On 04/05/2022 08:39, Bertrand Marquis wrote: Hi Julien, Hi, On 3 May 2022, at 19:08, Julien Grall wrote: Hi Bertrand, On 03/05/2022 10:38, Bertrand Marquis wrote: Sync arm64 sysreg

Re: [PATCH v2] xen/arm: gnttab: cast unused macro arguments to void

2022-05-04 Thread Michal Orzel
On 04.05.2022 10:13, Jan Beulich wrote: > On 04.05.2022 08:41, Michal Orzel wrote: >> On 03.05.2022 19:44, Julien Grall wrote: >>> On 28/04/2022 10:46, Michal Orzel wrote: @@ -89,10 +90,12 @@ int replace_grant_host_mapping(unsigned long gpaddr, mfn_t mfn,   })     #define gn

Re: [PATCH] arm/its: enable LPIs before mapping the collection table

2022-05-04 Thread Rahul Singh
Hi Julien, > On 3 May 2022, at 4:58 pm, Julien Grall wrote: > > Hi Rahul, > > On 27/04/2022 17:14, Rahul Singh wrote: >> MAPC_LPI_OFF ITS command error can be reported to software if LPIs are >> not enabled before mapping the collection table using MAPC command. >> Enable the LPIs using GICR_CT

Re: [PATCH v4 06/21] IOMMU/x86: perform PV Dom0 mappings in batches

2022-05-04 Thread Roger Pau Monné
On Wed, May 04, 2022 at 11:46:37AM +0200, Jan Beulich wrote: > On 03.05.2022 16:49, Roger Pau Monné wrote: > > On Mon, Apr 25, 2022 at 10:34:59AM +0200, Jan Beulich wrote: > >> For large page mappings to be easily usable (i.e. in particular without > >> un-shattering of smaller page mappings) and f

[ovmf test] 170094: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170094 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170094/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

Re: [PATCH v4 05/21] IOMMU/x86: restrict IO-APIC mappings for PV Dom0

2022-05-04 Thread Jan Beulich
On 04.05.2022 12:30, Roger Pau Monné wrote: > On Wed, May 04, 2022 at 11:32:51AM +0200, Jan Beulich wrote: >> On 03.05.2022 16:50, Jan Beulich wrote: >>> On 03.05.2022 15:00, Roger Pau Monné wrote: On Mon, Apr 25, 2022 at 10:34:23AM +0200, Jan Beulich wrote: > While already the case for PV

Re: [PATCH] arm/its: enable LPIs before mapping the collection table

2022-05-04 Thread Rahul Singh
Hi Julien, > On 3 May 2022, at 4:52 pm, Julien Grall wrote: > > > > On 28/04/2022 15:11, Rahul Singh wrote: >> Hi Julien, > > Hi Rahul, > >>> On 28 Apr 2022, at 1:59 pm, Julien Grall wrote: >>> >>> >>> >>> On 28/04/2022 11:00, Rahul Singh wrote: Hi Julien, > On 27 Apr 2022, at 6

Re: [PATCH v4 05/21] IOMMU/x86: restrict IO-APIC mappings for PV Dom0

2022-05-04 Thread Roger Pau Monné
On Wed, May 04, 2022 at 11:32:51AM +0200, Jan Beulich wrote: > On 03.05.2022 16:50, Jan Beulich wrote: > > On 03.05.2022 15:00, Roger Pau Monné wrote: > >> On Mon, Apr 25, 2022 at 10:34:23AM +0200, Jan Beulich wrote: > >>> While already the case for PVH, there's no reason to treat PV > >>> differen

Re: [PATCH v4 04/21] IOMMU: have iommu_{,un}map() split requests into largest possible chunks

2022-05-04 Thread Roger Pau Monné
On Tue, May 03, 2022 at 04:44:45PM +0200, Jan Beulich wrote: > On 03.05.2022 14:37, Roger Pau Monné wrote: > > On Mon, Apr 25, 2022 at 10:33:32AM +0200, Jan Beulich wrote: > >> --- a/xen/drivers/passthrough/iommu.c > >> +++ b/xen/drivers/passthrough/iommu.c > >> @@ -307,11 +338,10 @@ int iommu_map(

[ovmf test] 170090: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170090 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170090/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

[BUG] libxenstat does parse networks with openvswitch only bridges

2022-05-04 Thread Richard Kojedzinszky
Dear xen developers, When xen is deployed in a way that no linux bridges exists on the host, then https://github.com/xen-project/xen/blob/stable-4.14/tools/xenstat/libxenstat/src/xenstat_linux.c#L313 will get devBridge as empty string, and then conditions on https://github.com/xen-project/xen

[libvirt test] 170078: regressions - FAIL

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

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-04 Thread Jan Beulich
On 04.05.2022 11:14, Juergen Gross wrote: > On 04.05.22 10:31, Jan Beulich wrote: >> On 03.05.2022 15:22, Juergen Gross wrote: >>> Some drivers are using pat_enabled() in order to test availability of >>> special caching modes (WC and UC-). This will lead to false negatives >>> in case the system w

Re: [PATCH 1/3] xen/arm: Sync sysregs and cpuinfo with Linux 5.18-rc3

2022-05-04 Thread Bertrand Marquis
Hi Julien, > On 4 May 2022, at 09:20, Julien Grall wrote: > > > > On 04/05/2022 08:39, Bertrand Marquis wrote: >> Hi Julien, > Hi, > >>> On 3 May 2022, at 19:08, Julien Grall wrote: >>> >>> Hi Bertrand, >>> >>> On 03/05/2022 10:38, Bertrand Marquis wrote: Sync arm64 sysreg bit shift d

Re: [PATCH v4 06/21] IOMMU/x86: perform PV Dom0 mappings in batches

2022-05-04 Thread Jan Beulich
On 03.05.2022 16:49, Roger Pau Monné wrote: > On Mon, Apr 25, 2022 at 10:34:59AM +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 batches

Re: [PATCH v4 05/21] IOMMU/x86: restrict IO-APIC mappings for PV Dom0

2022-05-04 Thread Jan Beulich
On 03.05.2022 16:50, Jan Beulich wrote: > On 03.05.2022 15:00, Roger Pau Monné wrote: >> On Mon, Apr 25, 2022 at 10:34:23AM +0200, Jan Beulich wrote: >>> While already the case for PVH, there's no reason to treat PV >>> differently here, though of course the addresses get taken from another >>> sou

[ovmf test] 170087: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170087 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170087/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-04 Thread Juergen Gross
On 04.05.22 10:31, Jan Beulich wrote: On 03.05.2022 15:22, Juergen Gross wrote: Some drivers are using pat_enabled() in order to test availability of special caching modes (WC and UC-). This will lead to false negatives in case the system was booted e.g. with the "nopat" variant and the BIOS did

[xen-unstable test] 170071: tolerable FAIL

2022-05-04 Thread osstest service owner
flight 170071 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/170071/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-xl-qemut-win7-amd64 19 guest-stopfail like 170014 test-armhf-armhf-libvirt 16 save

[ovmf test] 170085: regressions - FAIL

2022-05-04 Thread osstest service owner
flight 170085 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/170085/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-xsm 6 xen-buildfail REGR. vs. 168254 build-amd64

Re: [PATCH 2/2] x86/pat: add functions to query specific cache mode availability

2022-05-04 Thread Jan Beulich
On 03.05.2022 15:22, Juergen Gross wrote: > Some drivers are using pat_enabled() in order to test availability of > special caching modes (WC and UC-). This will lead to false negatives > in case the system was booted e.g. with the "nopat" variant and the > BIOS did setup the PAT MSR supporting the

Re: [PATCH 1/3] xen/arm: Sync sysregs and cpuinfo with Linux 5.18-rc3

2022-05-04 Thread Julien Grall
On 04/05/2022 08:39, Bertrand Marquis wrote: Hi Julien, Hi, On 3 May 2022, at 19:08, Julien Grall wrote: Hi Bertrand, On 03/05/2022 10:38, Bertrand Marquis wrote: Sync arm64 sysreg bit shift definitions with status of Linux kernel as of 5.18-rc3 version (linux commit b2d229d4ddb1). Sync

  1   2   >