Re: [kvm-unit-tests PATCH] arm: Remove MAX_SMP probe loop

2023-01-05 Thread Andrew Jones
On Thu, Jan 05, 2023 at 11:09:58PM +, Colton Lewis wrote: > Andrew Jones writes: > > On Tue, Dec 20, 2022 at 04:32:00PM +, Colton Lewis wrote: > > > Alexandru Elisei writes: > > Ah, I think I understand now. Were you running 32-bit arm tests? If so, > > it'd be good to point that out

Re: [PATCH v5 5/7] KVM: arm64: Always set HCR_TID2

2023-01-05 Thread Reiji Watanabe
On Fri, Dec 30, 2022 at 1:55 AM Akihiko Odaki wrote: > > Always set HCR_TID2 to trap CTR_EL0, CCSIDR2_EL1, CLIDR_EL1, and > CSSELR_EL1. This saves a few lines of code and allows to employ their > access trap handlers for more purposes anticipated by the old > condition for setting HCR_TID2. > >

Re: [kvm-unit-tests PATCH] arm: Remove MAX_SMP probe loop

2023-01-05 Thread Colton Lewis
Andrew Jones writes: On Tue, Dec 20, 2022 at 04:32:00PM +, Colton Lewis wrote: Alexandru Elisei writes: Ah, I think I understand now. Were you running 32-bit arm tests? If so, it'd be good to point that out explicitly in the commit message (the 'arm:' prefix in the summary is ambiguous).

Re: [PATCH v5 6/7] KVM: arm64: Mask FEAT_CCIDX

2023-01-05 Thread Oliver Upton
On Fri, Dec 30, 2022 at 06:54:51PM +0900, Akihiko Odaki wrote: > The CCSIDR access handler masks the associativity bits according to the > bit layout for processors without FEAT_CCIDX. KVM also assumes CCSIDR is > 32-bit where it will be 64-bit if FEAT_CCIDX is enabled. Mask FEAT_CCIDX > so that

Re: [PATCH v4 6/7] KVM: arm64: Mask FEAT_CCIDX

2023-01-05 Thread Oliver Upton
Hi Akihiko, On Thu, Dec 22, 2022 at 05:40:15AM +0900, Akihiko Odaki wrote: > The CCSIDR access handler masks the associativity bits according to the > bit layout for processors without FEAT_CCIDX. KVM also assumes CCSIDR is > 32-bit where it will be 64-bit if FEAT_CCIDX is enabled. Mask

Re: [PATCH v5 7/7] KVM: arm64: Normalize cache configuration

2023-01-05 Thread Oliver Upton
Hi Akihiko, On Fri, Dec 30, 2022 at 06:54:52PM +0900, Akihiko Odaki wrote: [...] > @@ -417,6 +418,9 @@ struct kvm_vcpu_arch { > u64 last_steal; > gpa_t base; > } steal; > + > + /* Per-vcpu CCSIDR override or NULL */ > + u32 *ccsidr; I don't believe we

[GIT PULL] KVM/arm64 fixes for 6.2, take #1

2023-01-05 Thread Marc Zyngier
Hi Paolo, Happy new year! Here's the first batch of fixes for KVM/arm64 for 6.2. We have two important fixes this time around, one for the PMU emulation, and the other for guest page table walks in read-only memslots, something that EFI has started doing... The rest is mostly documentation

Re: [PATCH rcu 02/27] arch/arm64/kvm: Remove "select SRCU"

2023-01-05 Thread Paul E. McKenney
On Thu, Jan 05, 2023 at 09:38:01AM +, Marc Zyngier wrote: > On Thu, 05 Jan 2023 00:37:48 +, > "Paul E. McKenney" wrote: > > > > Now that the SRCU Kconfig option is unconditionally selected, there is > > no longer any point in selecting it. Therefore, remove the "select SRCU" > > Kconfig

Re: [PATCH rcu 02/27] arch/arm64/kvm: Remove "select SRCU"

2023-01-05 Thread Marc Zyngier
On Thu, 05 Jan 2023 00:37:48 +, "Paul E. McKenney" wrote: > > Now that the SRCU Kconfig option is unconditionally selected, there is > no longer any point in selecting it. Therefore, remove the "select SRCU" > Kconfig statements. > > Signed-off-by: Paul E. McKenney > Cc: Marc Zyngier >

[PATCH rcu 02/27] arch/arm64/kvm: Remove "select SRCU"

2023-01-05 Thread Paul E. McKenney
Now that the SRCU Kconfig option is unconditionally selected, there is no longer any point in selecting it. Therefore, remove the "select SRCU" Kconfig statements. Signed-off-by: Paul E. McKenney Cc: Marc Zyngier Cc: James Morse Cc: Alexandru Elisei Cc: Suzuki K Poulose Cc: Oliver Upton