Re: [PATCH v6 3/3] xen/livepatch: align functions to ensure minimal distance between entry points

2024-02-27 Thread Roger Pau Monné
On Tue, Feb 27, 2024 at 09:53:24AM +0100, Jan Beulich wrote: > On 27.02.2024 09:15, Roger Pau Monné wrote: > > On Mon, Feb 26, 2024 at 01:36:32PM +0100, Jan Beulich wrote: > >> On 26.02.2024 12:32, Roger Pau Monné wrote: > >>> On Tue, Feb 13, 2024 at 04:58:38PM +0100, Jan Beulich wrote: > On

Re: [PATCH v6 3/3] xen/livepatch: align functions to ensure minimal distance between entry points

2024-02-27 Thread Roger Pau Monné
On Mon, Feb 26, 2024 at 01:36:32PM +0100, Jan Beulich wrote: > On 26.02.2024 12:32, Roger Pau Monné wrote: > > On Tue, Feb 13, 2024 at 04:58:38PM +0100, Jan Beulich wrote: > >> On 07.02.2024 15:55, Roger Pau Monne wrote: > >>> The minimal function size requirements for an x86 livepatch are either

[ovmf test] 184778: all pass - PUSHED

2024-02-27 Thread osstest service owner
flight 184778 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/184778/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 74b5309da9fb7a919bec5a8b5a63d1ede5eb6745 baseline version: ovmf

Re: [PATCH v6 3/3] xen/livepatch: align functions to ensure minimal distance between entry points

2024-02-27 Thread Jan Beulich
On 27.02.2024 09:15, Roger Pau Monné wrote: > On Mon, Feb 26, 2024 at 01:36:32PM +0100, Jan Beulich wrote: >> On 26.02.2024 12:32, Roger Pau Monné wrote: >>> On Tue, Feb 13, 2024 at 04:58:38PM +0100, Jan Beulich wrote: On 07.02.2024 15:55, Roger Pau Monne wrote: > The minimal function

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

2024-02-27 Thread osstest service owner
flight 184776 xen-unstable real [real] flight 184779 xen-unstable real-retest [real] http://logs.test-lab.xenproject.org/osstest/logs/184776/ http://logs.test-lab.xenproject.org/osstest/logs/184779/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking):

Re: [PATCH v13.3 01/14] vpci: use per-domain PCI lock to protect vpci structure

2024-02-27 Thread Roger Pau Monné
On Mon, Feb 26, 2024 at 03:47:17PM +0100, Jan Beulich wrote: > On 21.02.2024 03:45, Stewart Hildebrand wrote: > > From: Oleksandr Andrushchenko > > > > Use the per-domain PCI read/write lock to protect the presence of the > > pci device vpci field. This lock can be used (and in a few cases is

Re: [PATCH v3 4/4] x86/spec: do not print thunk option selection if not built-in

2024-02-27 Thread Roger Pau Monné
On Mon, Feb 26, 2024 at 01:54:54PM +0100, Jan Beulich wrote: > On 26.02.2024 12:07, Roger Pau Monne wrote: > > Now that the thunk built-in enable is printed as part of the "Compiled-in > > support:" line, avoid printing anything in "Xen settings:" if the thunk is > > disabled at build time. > >

Re: [XEN PATCH v5] xen/arm: ffa: reclaim shared memory on guest destroy

2024-02-27 Thread Julien Grall
Hi, On 13/02/2024 11:13, Jens Wiklander wrote: When an FF-A enabled guest is destroyed it may leave behind memory shared with SPs. This memory must be reclaimed before it's reused or an SP may make changes to memory used by a new unrelated guest. So when the domain is teared down add FF-A

[PATCH v2 0/5] xen/livepatch: fixes for the pre-apply / post-revert hooks

2024-02-27 Thread Roger Pau Monne
Hello, The follow series contain a misc of fixes mostly related to the usage of the pre-apply / post-revert hooks. The norevert test is also fixed to work as I think was expected. Finally both the no{apply,revert} tests are fixed to build properly, as the files where previously unhooked from

[PATCH v2 3/5] xen/livepatch: fix norevert test attempt to open-code revert

2024-02-27 Thread Roger Pau Monne
The purpose of the norevert test is to install a dummy handler that replaces the internal Xen revert code, and then perform the revert in the post-revert hook. For that purpose the usage of the previous common_livepatch_revert() is not enough, as that just reverts specific functions, but not the

[PATCH v2 5/5] xen/livepatch: group and document payload hooks

2024-02-27 Thread Roger Pau Monne
Group the payload hooks between the pre/post handlers, and the apply/revert replacements. Also attempt to comment the context in which the hooks are executed. No functional change. Signed-off-by: Roger Pau Monné --- Changes since v1: - New in this version. ---

[PATCH v2 2/5] xen/livepatch: search for symbols in all loaded payloads

2024-02-27 Thread Roger Pau Monne
When checking if an address belongs to a patch, or when resolving a symbol, take into account all loaded livepatch payloads, even if not applied. This is required in order for the pre-apply and post-revert hooks to work properly, or else Xen won't detect the instruction pointer belonging to those

[PATCH v2 4/5] xen/livepatch: properly build the noapply and norevert tests

2024-02-27 Thread Roger Pau Monne
It seems the build variables for those tests where copy-pasted from xen_action_hooks_marker-objs and not adjusted to use the correct source files. Fixes: 6047104c3ccc ('livepatch: Add per-function applied/reverted state tracking marker') Signed-off-by: Roger Pau Monné Reviewed-by: Ross

[PATCH v2 1/5] xen/livepatch: register livepatch regions when loaded

2024-02-27 Thread Roger Pau Monne
Currently livepatch regions are registered as virtual regions only after the livepatch has been applied. This can lead to issues when using the pre-apply or post-revert hooks, as at that point the livepatch is not in the virtual regions list. If a livepatch pre-apply hook contains a WARN() it

Re: [XEN PATCH 2/2] xen/cpu: address MISRA C Rule 17.7

2024-02-27 Thread Julien Grall
Hi Jan, On 27/02/2024 07:28, Jan Beulich wrote: On 27.02.2024 01:26, Stefano Stabellini wrote: On Mon, 26 Feb 2024, Jan Beulich wrote: On 23.02.2024 10:35, Nicola Vetrini wrote: Refactor cpu_notifier_call_chain into two functions: - the variant that is allowed to fail loses the nofail flag -

Xen Security Advisory 451 v2 (CVE-2023-46841) - x86: shadow stack vs exceptions from emulation stubs

2024-02-27 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xen Security Advisory CVE-2023-46841 / XSA-451 version 2 x86: shadow stack vs exceptions from emulation stubs UPDATES IN VERSION 2 Largely cosmetic adjustment in patches.

Re: [PATCH v13.3 01/14] vpci: use per-domain PCI lock to protect vpci structure

2024-02-27 Thread Roger Pau Monné
On Tue, Feb 20, 2024 at 09:45:03PM -0500, Stewart Hildebrand wrote: > From: Oleksandr Andrushchenko > > Use the per-domain PCI read/write lock to protect the presence of the > pci device vpci field. This lock can be used (and in a few cases is used > right away) so that vpci removal can be

Re: [PATCH v3 1/4] x86/spec: print the built-in SPECULATIVE_HARDEN_* options

2024-02-27 Thread Roger Pau Monné
On Mon, Feb 26, 2024 at 01:39:49PM +0100, Jan Beulich wrote: > On 26.02.2024 12:07, Roger Pau Monne wrote: > > Just like it's done for INDIRECT_THUNK and SHADOW_PAGING. > > > > Reported-by: Jan Beulich > > Signed-off-by: Roger Pau Monné > > In principle > Reviewed-by: Jan Beulich > but ... >

Re: [PATCH v3 3/4] x86/spec: fix INDIRECT_THUNK option to only be set when build-enabled

2024-02-27 Thread Roger Pau Monné
On Mon, Feb 26, 2024 at 01:50:46PM +0100, Jan Beulich wrote: > On 26.02.2024 12:07, Roger Pau Monne wrote: > > Attempt to provide a more helpful error message when the user attempts to > > set > > spec-ctrl=bti-thunk option but the support is build-time disabled. > > > > While there also adjust

XEN SUMMIT CFP DEADLINE - END OF THIS WEEK!

2024-02-27 Thread Kelly Choi
Hi everyone, *Just a reminder that our CFP for Xen Summit 2024 is at the end of this week! * Please submit your talks before then: https://events.linuxfoundation.org/xen-project-summit/program/cfp/ We look forward to seeing you. Many thanks, Kelly Choi Community Manager Xen Project

Re: [PATCH v2 1/5] xen/livepatch: register livepatch regions when loaded

2024-02-27 Thread Andrew Cooper
On 27/02/2024 11:25 am, Roger Pau Monne wrote: > diff --git a/xen/common/virtual_region.c b/xen/common/virtual_region.c > index ddac5c9147e5..e3a4dc8540df 100644 > --- a/xen/common/virtual_region.c > +++ b/xen/common/virtual_region.c > > > +#ifdef CONFIG_LIVEPATCH > void

Re: [PATCH] xen/common: Do not allocate magic pages 1:1 for direct mapped domains

2024-02-27 Thread Henry Wang
(-RISC-V and PPC people to avoid spamming their inbox as this is quite Arm specific) Hi Julien, On 2/26/2024 5:13 PM, Julien Grall wrote: Hi Henry, Welcome back! Thanks! On 26/02/2024 01:19, Henry Wang wrote: An error message can seen from the init-dom0less application on direct-mapped

Re: [PATCH v3 4/4] x86/spec: do not print thunk option selection if not built-in

2024-02-27 Thread Jan Beulich
On 27.02.2024 12:20, Roger Pau Monné wrote: > On Mon, Feb 26, 2024 at 01:54:54PM +0100, Jan Beulich wrote: >> On 26.02.2024 12:07, Roger Pau Monne wrote: >>> Now that the thunk built-in enable is printed as part of the "Compiled-in >>> support:" line, avoid printing anything in "Xen settings:" if

Re: [PATCH] xen/common: Do not allocate magic pages 1:1 for direct mapped domains

2024-02-27 Thread Henry Wang
Hi Michal, On 2/26/2024 6:29 PM, Michal Orzel wrote: Hi Henry, On 26/02/2024 02:19, Henry Wang wrote: An error message can seen from the init-dom0less application on direct-mapped 1:1 domains: ``` Allocating magic pages memory.c:238:d0v0 mfn 0x39000 doesn't belong to d1 Error on alloc magic

Re: [PATCH] xen/common: Do not allocate magic pages 1:1 for direct mapped domains

2024-02-27 Thread Jan Beulich
On 27.02.2024 14:24, Henry Wang wrote: > On 2/26/2024 4:25 PM, Jan Beulich wrote: >> On 26.02.2024 02:19, Henry Wang wrote: >>> --- a/xen/common/memory.c >>> +++ b/xen/common/memory.c >>> @@ -219,7 +219,7 @@ static void populate_physmap(struct memop_args *a) >>> } >>> else >>>

Re: [PATCH] livepatch-build-tools: allow patch file name sizes up to 128 characters

2024-02-27 Thread Ross Lagerwall
On Wed, Jan 31, 2024 at 4:58 PM Roger Pau Monne wrote: > > XenServer uses quite long Xen version names, and encode such in the livepatch > filename, and it's currently running out of space in the file name. > > Bump max filename size to 128, so it also matches the patch name length in the >

Re: [PATCH] xen/common: Do not allocate magic pages 1:1 for direct mapped domains

2024-02-27 Thread Henry Wang
Hi Jan, On 2/27/2024 9:51 PM, Jan Beulich wrote: On 27.02.2024 14:35, Henry Wang wrote: Hi Jan, On 2/27/2024 9:27 PM, Jan Beulich wrote: On 27.02.2024 14:24, Henry Wang wrote: On 2/26/2024 4:25 PM, Jan Beulich wrote: On 26.02.2024 02:19, Henry Wang wrote: --- a/xen/common/memory.c +++

Re: [PATCH v2 1/3] docs/misra/rules.rst: add rule 16.6 and 20.12

2024-02-27 Thread Julien Grall
Hi Stefano, On 13/02/2024 22:33, Stefano Stabellini wrote: Signed-off-by: Stefano Stabellini Acked-by: Julien Grall Cheers, -- Julien Grall

Re: [PATCH] xen/common: Do not allocate magic pages 1:1 for direct mapped domains

2024-02-27 Thread Henry Wang
Hi Jan, On 2/26/2024 4:25 PM, Jan Beulich wrote: On 26.02.2024 02:19, Henry Wang wrote: --- a/xen/arch/arm/include/asm/mm.h +++ b/xen/arch/arm/include/asm/mm.h @@ -428,6 +428,19 @@ static inline void page_set_xenheap_gfn(struct page_info *p, gfn_t gfn) } while ( (y =

Re: [PATCH] xen/common: Do not allocate magic pages 1:1 for direct mapped domains

2024-02-27 Thread Jan Beulich
On 27.02.2024 14:35, Henry Wang wrote: > Hi Jan, > > On 2/27/2024 9:27 PM, Jan Beulich wrote: >> On 27.02.2024 14:24, Henry Wang wrote: >>> On 2/26/2024 4:25 PM, Jan Beulich wrote: On 26.02.2024 02:19, Henry Wang wrote: > --- a/xen/common/memory.c > +++ b/xen/common/memory.c > @@

Re: [XEN PATCH 2/2] xen/cpu: address MISRA C Rule 17.7

2024-02-27 Thread Jan Beulich
On 27.02.2024 12:52, Julien Grall wrote: > Hi Jan, > > On 27/02/2024 07:28, Jan Beulich wrote: >> On 27.02.2024 01:26, Stefano Stabellini wrote: >>> On Mon, 26 Feb 2024, Jan Beulich wrote: On 23.02.2024 10:35, Nicola Vetrini wrote: > Refactor cpu_notifier_call_chain into two functions:

preparations for 4.18.1

2024-02-27 Thread Jan Beulich
All, the release is due in two to three weeks. Please point out backports you find missing from the respective staging branch, but which you consider relevant. Jan

[PATCH v2] tools/xentop: Add VBD3 support to xentop

2024-02-27 Thread Fouad Hilly
From: Pritha Srivastava xl now knows how to drive tapdisk, so modify libxenstat to understand vbd3 statistics. Signed-off-by: Pritha Srivastava Signed-off-by: Jorge Martin Signed-off-by: Fouad Hilly --- CC: Wei Liu CC: Anthony PERARD CC: Juergen Gross v2: - Fix order of SoB - Fix Syntax

Re: [PATCH] xen/common: Do not allocate magic pages 1:1 for direct mapped domains

2024-02-27 Thread Henry Wang
Hi Jan, On 2/27/2024 9:27 PM, Jan Beulich wrote: On 27.02.2024 14:24, Henry Wang wrote: On 2/26/2024 4:25 PM, Jan Beulich wrote: On 26.02.2024 02:19, Henry Wang wrote: --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -219,7 +219,7 @@ static void populate_physmap(struct memop_args *a)

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

2024-02-27 Thread osstest service owner
flight 184781 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/184781/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 15 migrate-support-checkfail never pass test-armhf-armhf-xl

Re: preparations for 4.18.1

2024-02-27 Thread Andrew Cooper
On 27/02/2024 1:19 pm, Jan Beulich wrote: > All, > > the release is due in two to three weeks. Please point out backports you find > missing from the respective staging branch, but which you consider relevant. > > Jan > Looking at the XenServer patchqueue, a couple to consider but nothing jumps

[XEN PATCH] docs: Move function and macro properties in docs/misra

2024-02-27 Thread Simone Ballarin
The list of function/macro properties is not MISRA-specific documentation. Their addition was directly motivated to address MISRA findings and they are not used elsewhere. For this reason, this patch moves these properties in docs/misra. This patch also fixes a Sphinx warning caused by the

Re: [REGRESSION] Re: [XEN PATCH v4 4/4] eclair: move function and macro properties outside ECLAIR

2024-02-27 Thread Simone Ballarin
On 26/02/24 16:44, Andrew Cooper wrote: On 02/02/2024 3:16 pm, Simone Ballarin wrote: From: Maria Celeste Cesario Function and macro properties contained in ECLAIR/call_properties.ecl are of general interest: this patch moves these annotations in a generaric JSON file in docs. In this way,

Re: convert xen-blkfront to atomic queue limit updates v2

2024-02-27 Thread Christoph Hellwig
Jens, can you pick this up with the Xen maintainer review in place?

[PATCH] tests/vpci: fix unit tests after locking change

2024-02-27 Thread Stewart Hildebrand
The recent vPCI locking broke the vPCI unit tests. Fix it to unblock CI. Fixes: 4f78438b45e2 ("vpci: use per-domain PCI lock to protect vpci structure") Reported-by: Andrew Cooper Signed-off-by: Stewart Hildebrand --- tools/tests/vpci/emul.h | 9 - tools/tests/vpci/main.c | 2 +- 2

[ovmf test] 184782: all pass - PUSHED

2024-02-27 Thread osstest service owner
flight 184782 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/184782/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf ba9c3ceaf83d3ee448b2fd38bc9ad28b690c697a baseline version: ovmf

Re: [XEN PATCH] docs: Move function and macro properties in docs/misra

2024-02-27 Thread Andrew Cooper
On 27/02/2024 3:36 pm, Simone Ballarin wrote: > The list of function/macro properties is not MISRA-specific documentation. > Their addition was directly motivated to address MISRA findings and they > are not used elsewhere. For this reason, this patch moves these properties > in docs/misra. > >

[xen-unstable-smoke test] 184793: regressions - trouble: blocked/fail

2024-02-27 Thread osstest service owner
flight 184793 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/184793/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 6 xen-buildfail REGR. vs. 184781

Re: [PATCH v2 bpf-next 3/3] mm: Introduce VM_SPARSE kind and vm_area_[un]map_pages().

2024-02-27 Thread Christoph Hellwig
> privately-managed pages into a sparse vm area with the following steps: > > area = get_vm_area(area_size, VM_SPARSE); // at bpf prog verification time > vm_area_map_pages(area, kaddr, 1, page); // on demand > // it will return an error if kaddr is out of range >

Re: [PATCH v2] tools/xentop: Add VBD3 support to xentop

2024-02-27 Thread Anthony PERARD
On Tue, Feb 27, 2024 at 01:26:28PM +, Fouad Hilly wrote: > diff --git a/tools/libs/stat/xenstat_linux.c b/tools/libs/stat/xenstat_linux.c > index cbba54aa83ee..6d82e204aad4 100644 > --- a/tools/libs/stat/xenstat_linux.c > +++ b/tools/libs/stat/xenstat_linux.c > @@ -390,6 +390,38 @@ void

Re: convert xen-blkfront to atomic queue limit updates v2

2024-02-27 Thread Jens Axboe
On Wed, 21 Feb 2024 13:58:41 +0100, Christoph Hellwig wrote: > this series converts xen-blkfront to the new atomic queue limits update > API in the block tree. I don't have a Xen setup so this is compile > tested only. > > Changes since v1: > - constify the info argument to

[PATCH v2] xen/arm: Set correct per-cpu cpu_core_mask

2024-02-27 Thread Henry Wang
In the common sysctl command XEN_SYSCTL_physinfo, the value of cores_per_socket is calculated based on the cpu_core_mask of CPU0. Currently on Arm this is a fixed value 1 (can be checked via xl info), which is not correct. This is because during the Arm CPU online process at boot time,

Re: [XEN PATCH 3/4] xen/include: add pure and const attributes

2024-02-27 Thread Stefano Stabellini
On Tue, 27 Feb 2024, Jan Beulich wrote: > On 27.02.2024 00:48, Stefano Stabellini wrote: > > On Mon, 26 Feb 2024, Jan Beulich wrote: > >> On 23.02.2024 23:36, Stefano Stabellini wrote: > >>> On Fri, 23 Feb 2024, Jan Beulich wrote: > On 23.02.2024 02:32, Stefano Stabellini wrote: > > On

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

2024-02-27 Thread osstest service owner
flight 184798 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/184798/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 15 migrate-support-checkfail never pass test-armhf-armhf-xl

[xen-4.18-testing test] 184783: tolerable FAIL - PUSHED

2024-02-27 Thread osstest service owner
flight 184783 xen-4.18-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/184783/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-armhf-armhf-libvirt 16 saverestore-support-checkfail like 184553

[ovmf test] 184790: all pass - PUSHED

2024-02-27 Thread osstest service owner
flight 184790 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/184790/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf aceb3490a2a350b128156fd4e36e53fc19739e4e baseline version: ovmf

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

2024-02-27 Thread osstest service owner
flight 184780 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/184780/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-armhf-armhf-libvirt 16 saverestore-support-checkfail like 184776

Re: [PATCH v2 bpf-next 3/3] mm: Introduce VM_SPARSE kind and vm_area_[un]map_pages().

2024-02-27 Thread Alexei Starovoitov
On Tue, Feb 27, 2024 at 9:59 AM Christoph Hellwig wrote: > > > privately-managed pages into a sparse vm area with the following steps: > > > > area = get_vm_area(area_size, VM_SPARSE); // at bpf prog verification > > time > > vm_area_map_pages(area, kaddr, 1, page); // on demand > >

Re: [XEN PATCH 2/2] xen/cpu: address MISRA C Rule 17.7

2024-02-27 Thread Stefano Stabellini
On Tue, 27 Feb 2024, Jan Beulich wrote: > On 27.02.2024 12:52, Julien Grall wrote: > > Hi Jan, > > > > On 27/02/2024 07:28, Jan Beulich wrote: > >> On 27.02.2024 01:26, Stefano Stabellini wrote: > >>> On Mon, 26 Feb 2024, Jan Beulich wrote: > On 23.02.2024 10:35, Nicola Vetrini wrote: >

[xen-4.15-testing test] 184784: tolerable FAIL - PUSHED

2024-02-27 Thread osstest service owner
flight 184784 xen-4.15-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/184784/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-xl-qemuu-win7-amd64 19 guest-stopfail like 184529 test-armhf-armhf-libvirt 16

[xen-4.16-testing test] 184785: regressions - trouble: broken/fail/pass

2024-02-27 Thread osstest service owner
flight 184785 xen-4.16-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/184785/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-libvirt-qemuu-debianhvm-amd64-xsm broken

[QEMU][PATCH v3 4/7] xen: let xen_ram_addr_from_mapcache() return -1 in case of not found entry

2024-02-27 Thread Vikram Garhwal
From: Juergen Gross Today xen_ram_addr_from_mapcache() will either abort() or return 0 in case it can't find a matching entry for a pointer value. Both cases are bad, so change that to return an invalid address instead. Signed-off-by: Juergen Gross Reviewed-by: Stefano Stabellini ---

[QEMU][PATCH v3 2/7] xen: add pseudo RAM region for grant mappings

2024-02-27 Thread Vikram Garhwal
From: Juergen Gross Add a memory region which can be used to automatically map granted memory. It is starting at 0x8000ULL in order to be able to distinguish it from normal RAM. For this reason the xen.ram memory region is expanded, which has no further impact as it is used just as

[QEMU][PATCH v3 6/7] xen: add map and unmap callbacks for grant region

2024-02-27 Thread Vikram Garhwal
From: Juergen Gross Add the callbacks for mapping/unmapping guest memory via grants to the special grant memory region. Signed-off-by: Juergen Gross Signed-off-by: Vikram Garhwal --- hw/xen/xen-mapcache.c | 176 +- system/physmem.c | 11 ++- 2

Re: [XEN PATCH 1/2] xen/console: drop return value from consoled_guest_rx/tx

2024-02-27 Thread Stefano Stabellini
On Tue, 27 Feb 2024, Jan Beulich wrote: > On 26.02.2024 23:49, Stefano Stabellini wrote: > > On Mon, 26 Feb 2024, Jan Beulich wrote: > >> On 26.02.2024 09:23, Nicola Vetrini wrote: > >>> On 2024-02-26 09:00, Jan Beulich wrote: > On 23.02.2024 23:56, Stefano Stabellini wrote: > > On Fri,

[PATCH] x86: Resync intel-family.h from Linux

2024-02-27 Thread Andrew Cooper
>From v6.8-rc8 Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Roger Pau Monné CC: Wei Liu --- xen/arch/x86/include/asm/intel-family.h | 38 ++--- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/xen/arch/x86/include/asm/intel-family.h

[xen-unstable-smoke test] 184787: regressions - trouble: blocked/fail

2024-02-27 Thread osstest service owner
flight 184787 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/184787/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 6 xen-buildfail REGR. vs. 184781

Re: [PATCH] tests/vpci: fix unit tests after locking change

2024-02-27 Thread Roger Pau Monné
On Tue, Feb 27, 2024 at 09:57:43AM -0500, Stewart Hildebrand wrote: > The recent vPCI locking broke the vPCI unit tests. Fix it to unblock CI. > > Fixes: 4f78438b45e2 ("vpci: use per-domain PCI lock to protect vpci > structure") > Reported-by: Andrew Cooper > Signed-off-by: Stewart Hildebrand

Re: [PATCH] livepatch-build-tools: allow patch file name sizes up to 128 characters

2024-02-27 Thread Roger Pau Monné
On Tue, Feb 27, 2024 at 01:32:05PM +, Ross Lagerwall wrote: > On Wed, Jan 31, 2024 at 4:58 PM Roger Pau Monne wrote: > > > > XenServer uses quite long Xen version names, and encode such in the > > livepatch > > filename, and it's currently running out of space in the file name. > > > > Bump

Re: [PATCH v2] xen/lib: introduce generic find next bit operations

2024-02-27 Thread Shawn Anastasio
Hi Oleksii, On 2/20/24 9:20 AM, Oleksii wrote: > Hi Shawn, > > Could you please take a look at the patch and PPC-related changes ( > xen/arch/ppc/include/asm/bitops.h )? > Hi Oleksii, Sorry for the delay. This all looks good to me: Acked-by: Shawn Anastasio > Thanks in advance. > > ~