[GIT PULL] xen: branch for v6.7-rc7

2023-12-21 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-6.7a-rc7-tag xen: branch for v6.7-rc7 It contains a single patch fixing a build issue for x86 32-bit configurations with CONFIG_XEN, which was introduced in the 6.7 development

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

2023-12-21 Thread osstest service owner
flight 184204 xen-unstable real [real] flight 184207 xen-unstable real-retest [real] http://logs.test-lab.xenproject.org/osstest/logs/184204/ http://logs.test-lab.xenproject.org/osstest/logs/184207/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking):

Re: [XEN PATCH 5/7] xen/arm: v{cp,sys}reg: address violations of MISRA C:2012 Rule 16.3

2023-12-21 Thread Stefano Stabellini
On Thu, 21 Dec 2023, Jan Beulich wrote: > On 20.12.2023 13:15, Federico Serafini wrote: > > On 20/12/23 12:55, Jan Beulich wrote: > >> On 20.12.2023 12:48, Julien Grall wrote: > >>> On 20/12/2023 11:03, Federico Serafini wrote: > --- a/xen/arch/arm/arm64/vsysreg.c > +++

Re: [XEN PATCH 5/7] xen/arm: v{cp,sys}reg: address violations of MISRA C:2012 Rule 16.3

2023-12-21 Thread Stefano Stabellini
On Thu, 21 Dec 2023, Andrew Cooper wrote: > On 21/12/2023 10:29 am, Federico Serafini wrote: > > On 20/12/23 22:23, Andrew Cooper wrote: > >> On 20/12/2023 6:24 pm, Stefano Stabellini wrote: > >>> On Wed, 20 Dec 2023, Federico Serafini wrote: > On 20/12/23 12:55, Jan Beulich wrote: > > On

Re: [PATCH v10 12/17] vpci/header: emulate PCI_COMMAND register for guests

2023-12-21 Thread Stewart Hildebrand
On 11/21/23 09:17, Roger Pau Monné wrote: > On Thu, Oct 12, 2023 at 10:09:18PM +, Volodymyr Babchuk wrote: >> From: Oleksandr Andrushchenko >> >> Xen and/or Dom0 may have put values in PCI_COMMAND which they expect >> to remain unaltered. PCI_COMMAND_SERR bit is a good example: while the >>

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

2023-12-21 Thread osstest service owner
flight 184201 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/184201/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-xl-qemut-win7-amd64 19 guest-stopfail like 184194 test-amd64-amd64-xl-qemuu-win7-amd64

Re: [BUG]i2c_hid_acpi broken with 4.17.2 on Framework Laptop 13 AMD

2023-12-21 Thread Sébastien Chaumat
Le jeu. 21 déc. 2023 à 14:29, Juergen Gross a écrit : > On 21.12.23 13:40, Jan Beulich wrote: > > On 20.12.2023 17:34, Sébastien Chaumat wrote: > >> Here are the patches I made to xen and linux kernel > >> Plus dmesg (bare metal,xen) and "xl dmesg" > > > > So the problem looks to be that

Re: [PATCH v2 30/39] xen/riscv: define an address of frame table

2023-12-21 Thread Oleksii
On Mon, 2023-12-18 at 12:22 +0100, Jan Beulich wrote: > On 18.12.2023 11:36, Oleksii wrote: > > On Thu, 2023-12-14 at 16:48 +0100, Jan Beulich wrote: > > > On 24.11.2023 11:30, Oleksii Kurochko wrote: > > > > +#define SLOTN_ENTRY_SIZE    SLOTN(1) > > > > + > > > >  #define XEN_VIRT_START

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

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

Re: [PATCH v6 9/9] xen/asm-generic: introduce generic device.h

2023-12-21 Thread Julien Grall
Hi, On 20/12/2023 14:08, Oleksii Kurochko wrote: Arm, PPC and RISC-V use the same device.h thereby device.h was moved to asm-generic. Arm's device.h was taken as a base with the following changes: - #ifdef PCI related things. - #ifdef ACPI related things. - Rename #ifdef guards. - Add

Re: [PATCH v6 7/9] xen: ifdef inclusion of in

2023-12-21 Thread Julien Grall
On 21/12/2023 19:19, Julien Grall wrote: Hi Oleksii, On 20/12/2023 14:08, Oleksii Kurochko wrote: Ifdef-ing inclusion of allows to avoid generation of empty for cases when CONFIG_GRANT_TABLE is not enabled. It would have been nice to explain the reason of this change. Is this a

Re: [PATCH v6 7/9] xen: ifdef inclusion of in

2023-12-21 Thread Julien Grall
Hi Oleksii, On 20/12/2023 14:08, Oleksii Kurochko wrote: Ifdef-ing inclusion of allows to avoid generation of empty for cases when CONFIG_GRANT_TABLE is not enabled. It would have been nice to explain the reason of this change. Is this a compilation error or just a nice thing to have?

Re: [PATCH v6 6/9] xen/asm-generic: introduce stub header softirq.h

2023-12-21 Thread Julien Grall
Hi Oksii, On 20/12/2023 14:08, Oleksii Kurochko wrote: is common between Arm, PPC and RISC-V so it is moved to asm-generic. Drop Arm and PPC's softirq.h and use asm-generic version instead. Signed-off-by: Oleksii Kurochko Reviewed-by: Michal Orzel Acked-by: Jan Beulich Acked-by: Shawn

Re: [PATCH v6 5/9] xen/asm-generic: introduce stub header numa.h

2023-12-21 Thread Julien Grall
Hi Oleksii, On 20/12/2023 14:08, Oleksii Kurochko wrote: is common through some archs so it is moved to asm-generic. Signed-off-by: Oleksii Kurochko Reviewed-by: Michal Orzel Acked-by: Jan Beulich Acked-by: Shawn Anastasio I think this patch will need to be rebased on top of the lastest

Re: [PATCH v6 3/9] xen/asm-generic: introduce generic div64.h header

2023-12-21 Thread Julien Grall
Hi Oleksii, On 20/12/2023 14:08, Oleksii Kurochko wrote: All archs have the do_div implementation for BITS_PER_LONG == 64 so do_div64.h is moved to asm-generic. x86 and PPC were switched to asm-generic version of div64.h. Arm was switched partly because Arm has different implementation for

Re: [PATCH v2 37/39] xen/rirscv: add minimal amount of stubs to build full Xen

2023-12-21 Thread Oleksii
On Thu, 2023-12-21 at 09:02 +0100, Jan Beulich wrote: > On 20.12.2023 13:55, Oleksii wrote: > > On Mon, 2023-12-18 at 18:00 +0100, Jan Beulich wrote: > > > On 24.11.2023 11:30, Oleksii Kurochko wrote: > > > > --- /dev/null > > > > +++ b/xen/arch/riscv/stubs.c > > > > @@ -0,0 +1,426 @@ > > > > +/*

[libvirt test] 184199: tolerable all pass - PUSHED

2023-12-21 Thread osstest service owner
flight 184199 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/184199/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-armhf-armhf-libvirt 16 saverestore-support-checkfail like 184187 test-armhf-armhf-libvirt-raw 15

Re: hvmloader - allow_memory_relocate overlaps

2023-12-21 Thread Neowutran
On 2023-12-19 17:12, Jan Beulich wrote: > On 16.12.2023 08:01, Neowutran wrote: > > I am wondering if the variable "allow_memory_relocate" is still > > relevant today and if its default value is still relevant. > > Should it be defined to 0 by default instead of 1 (it seems to be a > > workaround

xen | Successful pipeline for staging | 49818cde

2023-12-21 Thread GitLab
Pipeline #1115598353 has passed! Project: xen ( https://gitlab.com/xen-project/xen ) Branch: staging ( https://gitlab.com/xen-project/xen/-/commits/staging ) Commit: 49818cde ( https://gitlab.com/xen-project/xen/-/commit/49818cde637b5ec20383e46b71f93b2e7d867686 ) Commit Message: xen: remove

Re: [PATCH v11 11/17] vpci/header: program p2m with guest BAR view

2023-12-21 Thread Roger Pau Monné
On Sat, Dec 02, 2023 at 01:27:05AM +, Volodymyr Babchuk wrote: > From: Oleksandr Andrushchenko > > Take into account guest's BAR view and program its p2m accordingly: > gfn is guest's view of the BAR and mfn is the physical BAR value. > This way hardware domain sees physical BAR values and

Re: [PATCH v11 09/17] rangeset: add rangeset_empty() function

2023-12-21 Thread Roger Pau Monné
On Mon, Dec 04, 2023 at 09:36:16AM +0100, Jan Beulich wrote: > On 02.12.2023 02:27, Volodymyr Babchuk wrote: > > This function can be used when user wants to remove all rangeset > > entries but do not want to destroy rangeset itself. > > I have to admit that I'm not happy with the name: We're not

Re: [PATCH v11 07/17] vpci/header: implement guest BAR register handlers

2023-12-21 Thread Roger Pau Monné
On Sat, Dec 02, 2023 at 01:27:04AM +, Volodymyr Babchuk wrote: > From: Oleksandr Andrushchenko > > Add relevant vpci register handlers when assigning PCI device to a domain > and remove those when de-assigning. This allows having different > handlers for different domains, e.g. hwdom and

Re: [PATCH v2 29/39] xen/riscv: add definition of __read_mostly

2023-12-21 Thread Andrew Cooper
On 12/12/2023 5:04 pm, Jan Beulich wrote: > On 24.11.2023 11:30, Oleksii Kurochko wrote: >> The definition of __read_mostly should be removed in: >> https://lore.kernel.org/xen-devel/f25eb5c9-7c14-6e23-8535-2c66772b3...@suse.com/ > Andrew, can we settle on what to do with that patch? If you don't

Re: [BUG]i2c_hid_acpi broken with 4.17.2 on Framework Laptop 13 AMD

2023-12-21 Thread Jan Beulich
On 21.12.2023 14:29, Juergen Gross wrote: > On 21.12.23 13:40, Jan Beulich wrote: >> On 20.12.2023 17:34, Sébastien Chaumat wrote: >>> Here are the patches I made to xen and linux kernel >>> Plus dmesg (bare metal,xen) and "xl dmesg" >> >> So the problem looks to be that pci_xen_initial_domain()

Re: [PATCH v11 05/17] vpci: add hooks for PCI device assign/de-assign

2023-12-21 Thread Roger Pau Monné
On Sat, Dec 02, 2023 at 01:27:03AM +, Volodymyr Babchuk wrote: > From: Oleksandr Andrushchenko > > When a PCI device gets assigned/de-assigned we need to > initialize/de-initialize vPCI state for the device. > > Also, rename vpci_add_handlers() to vpci_assign_device() and >

Re: [PATCH v2 17/39] xen/riscv: introduce asm/atomic.h

2023-12-21 Thread Oleksii
On Thu, 2023-12-07 at 16:57 +0100, Jan Beulich wrote: > On 24.11.2023 11:30, Oleksii Kurochko wrote: > > From: Bobby Eshleman > > > > Signed-off-by: Oleksii Kurochko > > --- > > Changes in V2: > >  - Change an author of commit. I got this header from Bobby's old > > repo. > > Not sure how to

Re: [PATCH RFC v3 for-6.8/block 12/17] nilfs2: use bdev api in nilfs_attach_log_writer()

2023-12-21 Thread Ryusuke Konishi
On Thu, Dec 21, 2023 at 6:00 PM Yu Kuai wrote: > > From: Yu Kuai > > Avoid to access bd_inode directly, prepare to remove bd_inode from > block_device. > > Signed-off-by: Yu Kuai > --- > fs/nilfs2/segment.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

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

2023-12-21 Thread osstest service owner
flight 184197 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/184197/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-armhf-armhf-libvirt 16 saverestore-support-checkfail like 184189

Re: [PATCH v11 03/17] vpci: use per-domain PCI lock to protect vpci structure

2023-12-21 Thread Roger Pau Monné
On Sat, Dec 02, 2023 at 01:27:03AM +, Volodymyr Babchuk wrote: > From: Oleksandr Andrushchenko > > Use a previously introduced per-domain read/write lock to check > whether vpci is present, so we are sure there are no accesses to the > contents of the vpci struct if not. This lock can be

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

2023-12-21 Thread osstest service owner
flight 184203 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/184203/ 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

xen | Successful pipeline for staging | 3909fb46

2023-12-21 Thread GitLab
Pipeline #1115493558 has passed! Project: xen ( https://gitlab.com/xen-project/xen ) Branch: staging ( https://gitlab.com/xen-project/xen/-/commits/staging ) Commit: 3909fb46 ( https://gitlab.com/xen-project/xen/-/commit/3909fb4692dfbf7e46c0bcc37b0a3b943a034da9 ) Commit Message: docs/misra:

Re: [BUG]i2c_hid_acpi broken with 4.17.2 on Framework Laptop 13 AMD

2023-12-21 Thread Juergen Gross
On 21.12.23 13:40, Jan Beulich wrote: On 20.12.2023 17:34, Sébastien Chaumat wrote: Here are the patches I made to xen and linux kernel Plus dmesg (bare metal,xen) and "xl dmesg" So the problem looks to be that pci_xen_initial_domain() results in permanent setup of IRQ7, when there only

Governance change proposal on small updates

2023-12-21 Thread Kelly Choi
Hi all, I am proposing a small change in how we update non-trivial matters in our governance. Currently, any governance change requires a formal vote. However, there will be times when this is unnecessary and would hinder progress in the project. For example, my previous email proposal on

[ovmf test] 184202: all pass - PUSHED

2023-12-21 Thread osstest service owner
flight 184202 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/184202/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 5d533bbc27732a421e3bf35c5af77782b8a85e6f baseline version: ovmf

Re: [XEN RFC] x86/uaccess: remove __{put,get}_user_bad()

2023-12-21 Thread Jan Beulich
On 21.12.2023 13:01, Nicola Vetrini wrote: > Hi Andrew, > > On 2023-12-21 12:03, Andrew Cooper wrote: >> On 21/12/2023 10:58 am, Jan Beulich wrote: >>> On 21.12.2023 11:53, Federico Serafini wrote: Remove declarations of __put_user_bad() and __get_user_bad() since they have no

Re: [BUG]i2c_hid_acpi broken with 4.17.2 on Framework Laptop 13 AMD

2023-12-21 Thread Jan Beulich
On 20.12.2023 17:34, Sébastien Chaumat wrote: > Here are the patches I made to xen and linux kernel > Plus dmesg (bare metal,xen) and "xl dmesg" So the problem looks to be that pci_xen_initial_domain() results in permanent setup of IRQ7, when there only "static" ACPI tables (in particular source

Re: [XEN RFC] x86/uaccess: remove __{put,get}_user_bad()

2023-12-21 Thread Nicola Vetrini
Hi Andrew, On 2023-12-21 12:03, Andrew Cooper wrote: On 21/12/2023 10:58 am, Jan Beulich wrote: On 21.12.2023 11:53, Federico Serafini wrote: Remove declarations of __put_user_bad() and __get_user_bad() since they have no definition. Replace their uses with a break statement to address

Re: [PATCH v2] x86/amd: extend CPU errata #1474 affected models

2023-12-21 Thread Roger Pau Monné
On Thu, Dec 21, 2023 at 10:24:55AM +, Andrew Cooper wrote: > On 21/12/2023 10:20 am, Jan Beulich wrote: > > On 21.12.2023 11:17, Andrew Cooper wrote: > >> On 21/12/2023 10:08 am, Roger Pau Monne wrote: > >>> Errata #1474has now been extended to cover models from family 17h ranges > >> Extra

Re: [PATCH] x86/iommu: add CHANGELOG entry for hwdom setup time improvements

2023-12-21 Thread Roger Pau Monné
On Thu, Dec 21, 2023 at 11:23:49AM +0100, Jan Beulich wrote: > On 21.12.2023 11:12, Roger Pau Monne wrote: > > Signed-off-by: Roger Pau Monné > > --- > > CHANGELOG.md | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/CHANGELOG.md b/CHANGELOG.md > > index

Re: [PATCH v4 03/12] xen/spinlock: introduce new type for recursive spinlocks

2023-12-21 Thread Jan Beulich
On 21.12.2023 12:06, Juergen Gross wrote: > On 21.12.23 11:34, Jan Beulich wrote: >> On 12.12.2023 13:57, Julien Grall wrote: >>> On 12/12/2023 09:47, Juergen Gross wrote: @@ -109,12 +109,16 @@ struct lock_profile_qhead { spinlock_t l = _SPIN_LOCK_UNLOCKED(NULL);

Re: [PATCH v4 03/12] xen/spinlock: introduce new type for recursive spinlocks

2023-12-21 Thread Juergen Gross
On 21.12.23 11:34, Jan Beulich wrote: On 12.12.2023 13:57, Julien Grall wrote: On 12/12/2023 09:47, Juergen Gross wrote: @@ -109,12 +109,16 @@ struct lock_profile_qhead { spinlock_t l = _SPIN_LOCK_UNLOCKED(NULL); \ static struct lock_profile

Re: [XEN RFC] x86/uaccess: remove __{put,get}_user_bad()

2023-12-21 Thread Andrew Cooper
On 21/12/2023 10:58 am, Jan Beulich wrote: > On 21.12.2023 11:53, Federico Serafini wrote: >> Remove declarations of __put_user_bad() and __get_user_bad() >> since they have no definition. >> Replace their uses with a break statement to address violations of >> MISRA C:2012 Rule 16.3 ("An

Re: [XEN RFC] x86/uaccess: remove __{put,get}_user_bad()

2023-12-21 Thread Jan Beulich
On 21.12.2023 11:53, Federico Serafini wrote: > Remove declarations of __put_user_bad() and __get_user_bad() > since they have no definition. > Replace their uses with a break statement to address violations of > MISRA C:2012 Rule 16.3 ("An unconditional `break' statement shall > terminate every

[XEN RFC] x86/uaccess: remove __{put,get}_user_bad()

2023-12-21 Thread Federico Serafini
Remove declarations of __put_user_bad() and __get_user_bad() since they have no definition. Replace their uses with a break statement to address violations of MISRA C:2012 Rule 16.3 ("An unconditional `break' statement shall terminate every switch-clause"). No functional change. Signed-off-by:

Re: [XEN PATCH 0/7] xen/arm: address violations of MISRA C:2012 Rule 16.3

2023-12-21 Thread Andrew Cooper
On 21/12/2023 8:08 am, Jan Beulich wrote: > On 20.12.2023 22:35, Andrew Cooper wrote: >> On 20/12/2023 11:03 am, Federico Serafini wrote: >>> This patch series addresses violations of MISRA C:2012 Rule 16.3 on the Arm >>> code. No fucntional changes are introduced. >>> >>> Federico Serafini (7):

Re: [XEN PATCH 5/7] xen/arm: v{cp,sys}reg: address violations of MISRA C:2012 Rule 16.3

2023-12-21 Thread Andrew Cooper
On 21/12/2023 10:29 am, Federico Serafini wrote: > On 20/12/23 22:23, Andrew Cooper wrote: >> On 20/12/2023 6:24 pm, Stefano Stabellini wrote: >>> On Wed, 20 Dec 2023, Federico Serafini wrote: On 20/12/23 12:55, Jan Beulich wrote: > On 20.12.2023 12:48, Julien Grall wrote: >> On

Re: [XEN PATCH 0/7] xen/arm: address violations of MISRA C:2012 Rule 16.3

2023-12-21 Thread Federico Serafini
On 20/12/23 22:35, Andrew Cooper wrote: On 20/12/2023 11:03 am, Federico Serafini wrote: This patch series addresses violations of MISRA C:2012 Rule 16.3 on the Arm code. No fucntional changes are introduced. Federico Serafini (7): xen/arm: gic-v3: address violations of MISRA C:2012 Rule

Re: [PATCH v4 03/12] xen/spinlock: introduce new type for recursive spinlocks

2023-12-21 Thread Jan Beulich
On 12.12.2023 13:57, Julien Grall wrote: > On 12/12/2023 09:47, Juergen Gross wrote: >> @@ -109,12 +109,16 @@ struct lock_profile_qhead { >> spinlock_t l = _SPIN_LOCK_UNLOCKED(NULL); >>\ >> static struct lock_profile __lock_profile_data_##l =

Re: [XEN PATCH 5/7] xen/arm: v{cp,sys}reg: address violations of MISRA C:2012 Rule 16.3

2023-12-21 Thread Federico Serafini
On 20/12/23 22:23, Andrew Cooper wrote: On 20/12/2023 6:24 pm, Stefano Stabellini wrote: On Wed, 20 Dec 2023, Federico Serafini wrote: On 20/12/23 12:55, Jan Beulich wrote: On 20.12.2023 12:48, Julien Grall wrote: On 20/12/2023 11:03, Federico Serafini wrote: ---

Re: [PATCH] xen/xmalloc: XMEM_POOL_POISON improvements

2023-12-21 Thread Andrew Cooper
On 20/12/2023 9:51 pm, Julien Grall wrote: > Hi Andrew, > > On 20/12/2023 21:47, Andrew Cooper wrote: >> When in use, the spew: >> >>    (XEN) Assertion '!memchr_inv(b->ptr.buffer + MIN_BLOCK_SIZE, >> POISON_BYTE, (b->size & BLOCK_SIZE_MASK) - MIN_BLOCK_SIZE)' failed at >>

[PATCH v2 1/1] virgl: Implement resource_query_layout

2023-12-21 Thread Julia Zhang
From: Daniel Stone A new ioctl to shuttle information between host and guest about the actual buffer allocation, which can be used for interop between GL and Vulkan when supporting standard window systems. Signed-off-by: Daniel Stone Co-developed-by: Julia Zhang Signed-off-by: Julia Zhang

Re: [PATCH v2] x86/amd: extend CPU errata #1474 affected models

2023-12-21 Thread Andrew Cooper
On 21/12/2023 10:20 am, Jan Beulich wrote: > On 21.12.2023 11:17, Andrew Cooper wrote: >> On 21/12/2023 10:08 am, Roger Pau Monne wrote: >>> Errata #1474has now been extended to cover models from family 17h ranges >> Extra space needed.  Can be fixed on commit. > Also (not just here) - isn't it

[PATCH v2 0/1] Implementation of resource_query_layout

2023-12-21 Thread Julia Zhang
Hi all, Sorry to late reply. This is v2 of the implementation of resource_query_layout. This adds a new ioctl to let guest query information of host resource, which is originally from Daniel Stone. We add some changes to support query the correct stride of host resource before it's created, which

Re: [PATCH] x86/iommu: add CHANGELOG entry for hwdom setup time improvements

2023-12-21 Thread Jan Beulich
On 21.12.2023 11:12, Roger Pau Monne wrote: > Signed-off-by: Roger Pau Monné > --- > CHANGELOG.md | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/CHANGELOG.md b/CHANGELOG.md > index 5ee5d41fc933..52484c047bd1 100644 > --- a/CHANGELOG.md > +++ b/CHANGELOG.md > @@ -9,6 +9,8 @@ The

Re: [PATCH v2] x86/amd: extend CPU errata #1474 affected models

2023-12-21 Thread Jan Beulich
On 21.12.2023 11:17, Andrew Cooper wrote: > On 21/12/2023 10:08 am, Roger Pau Monne wrote: >> Errata #1474has now been extended to cover models from family 17h ranges > > Extra space needed.  Can be fixed on commit. Also (not just here) - isn't it "erratum" when we talk of just one? Jan >>

Re: [PATCH v2] x86/amd: extend CPU errata #1474 affected models

2023-12-21 Thread Andrew Cooper
On 21/12/2023 10:08 am, Roger Pau Monne wrote: > Errata #1474has now been extended to cover models from family 17h ranges Extra space needed.  Can be fixed on commit. > 00-2Fh, so the errata now covers all the models released under Family 17h > (Zen, > Zen+ and Zen2). > > Additionally extend

[PATCH] x86/iommu: add CHANGELOG entry for hwdom setup time improvements

2023-12-21 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ee5d41fc933..52484c047bd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ The format is based on [Keep a

[PATCH v2] x86/amd: extend CPU errata #1474 affected models

2023-12-21 Thread Roger Pau Monne
Errata #1474has now been extended to cover models from family 17h ranges 00-2Fh, so the errata now covers all the models released under Family 17h (Zen, Zen+ and Zen2). Additionally extend the workaround to Family 18h (Hygon), since it's based on the Zen architecture and very likely affected.

Re: [PATCH v2 07/39] xen/riscv: introduce arch-riscv/hvm/save.h

2023-12-21 Thread Oleksii
On Thu, 2023-12-21 at 08:58 +0100, Jan Beulich wrote: > On 20.12.2023 21:05, Oleksii wrote: > > On Tue, 2023-12-05 at 16:59 +0100, Jan Beulich wrote: > > > On 24.11.2023 11:30, Oleksii Kurochko wrote: > > > > --- /dev/null > > > > +++ b/xen/include/public/arch-riscv/hvm/save.h > > > > @@ -0,0

Re: [PATCH 0/2] xen: have a more generic unaligned.h header (take 2)

2023-12-21 Thread Andrew Cooper
On 21/12/2023 9:37 am, Juergen Gross wrote: > On 12.12.23 17:27, Juergen Gross wrote: >> Second try for the generic unaligned.h approach. >> >> This time including a fix for building stubdom with libxenguest, >> which is using a cruel hack to reuse the hypervisor's decompressing >> code. >> >>

Re: [PATCH 0/2] xen: have a more generic unaligned.h header (take 2)

2023-12-21 Thread Juergen Gross
On 12.12.23 17:27, Juergen Gross wrote: Second try for the generic unaligned.h approach. This time including a fix for building stubdom with libxenguest, which is using a cruel hack to reuse the hypervisor's decompressing code. Juergen Gross (2): xen: make include/xen/unaligned.h usable on

[PATCH RFC v3 for-6.8/block 17/17] ext4: use bdev apis

2023-12-21 Thread Yu Kuai
From: Yu Kuai Avoid to access bd_inode directly, prepare to remove bd_inode from block_device. Signed-off-by: Yu Kuai Reviewed-by: Jan Kara --- fs/ext4/dir.c | 6 ++ fs/ext4/ext4_jbd2.c | 6 +++--- fs/ext4/super.c | 3 +-- 3 files changed, 6 insertions(+), 9 deletions(-) diff

Re: [BUG]i2c_hid_acpi broken with 4.17.2 on Framework Laptop 13 AMD

2023-12-21 Thread Jan Beulich
On 20.12.2023 17:34, Sébastien Chaumat wrote: > Here are the patches I made to xen and linux kernel > Plus dmesg (bare metal,xen) and "xl dmesg" So only a single setup_gsi then, after all. Or else I must be missing something. And there it's all consistent as well: Level/low like for any other pin

[PATCH RFC v3 for-6.8/block 16/17] ext4: remove block_device_ejected()

2023-12-21 Thread Yu Kuai
From: Yu Kuai block_device_ejected() is added by commit bdfe0cbd746a ("Revert "ext4: remove block_device_ejected"") in 2015. At that time 'bdi->wb' is destroyed synchronized from del_gendisk(), hence if ext4 is still mounted, and then mark_buffer_dirty() will reference destroyed 'wb'. However,

[PATCH RFC v3 for-6.8/block 14/17] buffer: add a new helper to read sb block

2023-12-21 Thread Yu Kuai
From: Yu Kuai Unlike __bread_gfp(), ext4 has special handing while reading sb block: 1) __GFP_NOFAIL is not set, and memory allocation can fail; 2) If buffer write failed before, set buffer uptodate and don't read block from disk; 3) REQ_META is set for all IO, and REQ_PRIO is set for

[PATCH RFC v3 for-6.8/block 15/17] ext4: use new helper to read sb block

2023-12-21 Thread Yu Kuai
From: Yu Kuai Remove __ext4_sb_bread_gfp() and ext4_buffer_uptodate() that is defined by ext4, and convert to use common helper __bread_gfp2() and buffer_uptodate_or_error(). Signed-off-by: Yu Kuai Reviewed-by: Jan Kara --- fs/ext4/ext4.h| 13 - fs/ext4/inode.c | 8

[PATCH RFC v3 for-6.8/block 13/17] jbd2: use bdev apis

2023-12-21 Thread Yu Kuai
From: Yu Kuai Avoid to access bd_inode directly, prepare to remove bd_inode from block_device. Signed-off-by: Yu Kuai --- fs/jbd2/journal.c | 3 +-- fs/jbd2/recovery.c | 6 ++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index

[PATCH RFC v3 for-6.8/block 12/17] nilfs2: use bdev api in nilfs_attach_log_writer()

2023-12-21 Thread Yu Kuai
From: Yu Kuai Avoid to access bd_inode directly, prepare to remove bd_inode from block_device. Signed-off-by: Yu Kuai --- fs/nilfs2/segment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c index 55e31cc903d1..a1130e384937 100644

[PATCH RFC v3 for-6.8/block 11/17] erofs: use bdev api

2023-12-21 Thread Yu Kuai
From: Yu Kuai Avoid to access bd_inode directly, prepare to remove bd_inode from block_device. Signed-off-by: Yu Kuai --- fs/erofs/data.c | 18 -- fs/erofs/internal.h | 2 ++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/fs/erofs/data.c b/fs/erofs/data.c

[PATCH RFC v3 for-6.8/block 09/17] btrfs: use bdev apis

2023-12-21 Thread Yu Kuai
From: Yu Kuai On the one hand covert to use folio while reading bdev inode, on the other hand prevent to access bd_inode directly. Signed-off-by: Yu Kuai --- fs/btrfs/disk-io.c | 71 +- fs/btrfs/volumes.c | 17 ++- fs/btrfs/zoned.c | 15

[PATCH RFC v3 for-6.8/block 08/17] bio: export bio_add_folio_nofail()

2023-12-21 Thread Yu Kuai
From: Yu Kuai Currently btrfs is using __bio_add_page() in write_dev_supers(). In order to convert to use folio for bdev in btrfs, export bio_add_folio_nofail() so that it can replace __bio_add_page(). Signed-off-by: Yu Kuai --- block/bio.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH RFC v3 for-6.8/block 06/17] scsicam: use bdev api in scsi_bios_ptable()

2023-12-21 Thread Yu Kuai
From: Yu Kuai Avoid to access bd_inode directly, prepare to remove bd_inode from block_devcie. Signed-off-by: Yu Kuai --- drivers/scsi/scsicam.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/scsicam.c b/drivers/scsi/scsicam.c index

[PATCH RFC v3 for-6.8/block 03/17] bcache: use bdev api in read_super()

2023-12-21 Thread Yu Kuai
From: Yu Kuai On the one hand covert to use folio while reading bdev inode, on the other hand prevent to access bd_inode directly. Signed-off-by: Yu Kuai --- drivers/md/bcache/super.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/md/bcache/super.c

[PATCH RFC v3 for-6.8/block 01/17] block: add some bdev apis

2023-12-21 Thread Yu Kuai
From: Yu Kuai Those apis will be used for other modules, so that bd_inode won't be accessed directly from other modules. Signed-off-by: Yu Kuai --- block/bdev.c | 148 + block/blk.h| 2 - include/linux/blkdev.h | 17 + 3

[PATCH RFC v3 for-6.8/block 10/17] cramfs: use bdev apis in cramfs_blkdev_read()

2023-12-21 Thread Yu Kuai
From: Yu Kuai On the one hand covert to use folio while reading bdev inode, on the other hand prevent to access bd_inode directly. Also do some cleanup that there is no need for two for loop, and remove local array pages. Signed-off-by: Yu Kuai --- fs/cramfs/inode.c | 36

[PATCH RFC v3 for-6.8/block 05/17] s390/dasd: use bdev api in dasd_format()

2023-12-21 Thread Yu Kuai
From: Yu Kuai Avoid to access bd_inode directly, prepare to remove bd_inode from block_devcie. Signed-off-by: Yu Kuai --- drivers/s390/block/dasd_ioctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/s390/block/dasd_ioctl.c b/drivers/s390/block/dasd_ioctl.c

[PATCH RFC v3 for-6.8/block 07/17] bcachefs: remove dead function bdev_sectors()

2023-12-21 Thread Yu Kuai
From: Yu Kuai bdev_sectors() is not used hence remove it. Signed-off-by: Yu Kuai --- fs/bcachefs/util.h | 5 - 1 file changed, 5 deletions(-) diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h index 2984b57b2958..22a0acc1704f 100644 --- a/fs/bcachefs/util.h +++ b/fs/bcachefs/util.h @@

[PATCH RFC v3 for-6.8/block 00/17] block: don't access bd_inode directly from other modules

2023-12-21 Thread Yu Kuai
From: Yu Kuai Changes in v3: - remove bdev_associated_mapping() and patch 12 from v1; - add kerneldoc comments for new bdev apis; - rename __bdev_get_folio() to bdev_get_folio; - fix a problem in erofs that erofs_init_metabuf() is not always called. - add reviewed-by tag for patch 15-17;

[PATCH RFC v3 for-6.8/block 04/17] mtd: block2mtd: use bdev apis

2023-12-21 Thread Yu Kuai
From: Yu Kuai On the one hand covert to use folio while reading bdev inode, on the other hand prevent to access bd_inode directly. Signed-off-by: Yu Kuai --- drivers/mtd/devices/block2mtd.c | 81 +++-- 1 file changed, 36 insertions(+), 45 deletions(-) diff --git

[PATCH RFC v3 for-6.8/block 02/17] xen/blkback: use bdev api in xen_update_blkif_status()

2023-12-21 Thread Yu Kuai
From: Yu Kuai Avoid to access bd_inode directly, prepare to remove bd_inode from block_devcie. Signed-off-by: Yu Kuai --- drivers/block/xen-blkback/xenbus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/block/xen-blkback/xenbus.c

Re: [PATCH] x86/amd: extend CPU errata #1474 affected models

2023-12-21 Thread Jan Beulich
On 20.12.2023 16:42, Andrew Cooper wrote: > On 20/12/2023 3:10 pm, Roger Pau Monné wrote: >> On Wed, Dec 20, 2023 at 02:46:43PM +, Andrew Cooper wrote: >>> On 20/12/2023 2:22 pm, Roger Pau Monne wrote: @@ -978,24 +978,24 @@ void amd_check_zenbleed(void) val &

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

2023-12-21 Thread osstest service owner
flight 184194 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/184194/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-xl-qemut-win7-amd64 19 guest-stopfail like 184179 test-amd64-amd64-xl-qemuu-win7-amd64

Re: [PATCH v6 06/11] softmmu/memory: enable automatic deallocation of memory regions

2023-12-21 Thread Xenia Ragiadakou
On 21/12/23 09:50, Akihiko Odaki wrote: On 2023/12/21 16:35, Xenia Ragiadakou wrote: On 21/12/23 07:45, Akihiko Odaki wrote: On 2023/12/19 16:53, Huang Rui wrote: From: Xenia Ragiadakou When the memory region has a different life-cycle from that of her parent, could be automatically

Re: [PATCH v11.5 1/17] pci: msi: pass pdev to pci_enable_msi() function

2023-12-21 Thread Jan Beulich
On 20.12.2023 22:46, Stewart Hildebrand wrote: > From: Volodymyr Babchuk > > Previously pci_enable_msi() function obtained pdev pointer by itself, > but taking into account upcoming changes to PCI locking, it is better > when caller passes already acquired pdev pointer to the function, > because

Re: [PATCH v4 2/6] amd-vi: set IOMMU page table levels based on guest reported paddr width

2023-12-21 Thread Jan Beulich
On 20.12.2023 14:43, Roger Pau Monne wrote: > --- a/xen/drivers/passthrough/amd/pci_amd_iommu.c > +++ b/xen/drivers/passthrough/amd/pci_amd_iommu.c > @@ -359,21 +359,17 @@ int __read_mostly amd_iommu_min_paging_mode = 1; > static int cf_check amd_iommu_domain_init(struct domain *d) > { >

Re: [XEN PATCH 0/7] xen/arm: address violations of MISRA C:2012 Rule 16.3

2023-12-21 Thread Jan Beulich
On 20.12.2023 22:35, Andrew Cooper wrote: > On 20/12/2023 11:03 am, Federico Serafini wrote: >> This patch series addresses violations of MISRA C:2012 Rule 16.3 on the Arm >> code. No fucntional changes are introduced. >> >> Federico Serafini (7): >> xen/arm: gic-v3: address violations of MISRA

Re: [PATCH v6 07/11] virtio-gpu: Handle resource blob commands

2023-12-21 Thread Akihiko Odaki
On 2023/12/19 16:53, Huang Rui wrote: From: Antonio Caggiano Support BLOB resources creation, mapping and unmapping by calling the new stable virglrenderer 0.10 interface. Only enabled when available and via the blob config. E.g. -device virtio-vga-gl,blob=true I have another concern about

Re: [XEN PATCH 5/7] xen/arm: v{cp,sys}reg: address violations of MISRA C:2012 Rule 16.3

2023-12-21 Thread Jan Beulich
On 20.12.2023 13:15, Federico Serafini wrote: > On 20/12/23 12:55, Jan Beulich wrote: >> On 20.12.2023 12:48, Julien Grall wrote: >>> On 20/12/2023 11:03, Federico Serafini wrote: --- a/xen/arch/arm/arm64/vsysreg.c +++ b/xen/arch/arm/arm64/vsysreg.c @@ -210,8 +210,8 @@ void

Re: [PATCH v2 37/39] xen/rirscv: add minimal amount of stubs to build full Xen

2023-12-21 Thread Jan Beulich
On 20.12.2023 13:55, Oleksii wrote: > On Mon, 2023-12-18 at 18:00 +0100, Jan Beulich wrote: >> On 24.11.2023 11:30, Oleksii Kurochko wrote: >>> --- /dev/null >>> +++ b/xen/arch/riscv/stubs.c >>> @@ -0,0 +1,426 @@ >>> +/* SPDX-License-Identifier: GPL-2.0-only */ >>> +#include >>> +#include >>>