All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: arm64: Drop a pending MMIO access when injecting an unmasked SError
@ 2026-11-25 12:26 Dan Carpenter
  2026-11-25 12:40 ` sashiko-bot
  2026-11-25 13:52 ` Fuad Tabba
  0 siblings, 2 replies; 10+ messages in thread
From: Dan Carpenter @ 2026-11-25 12:26 UTC (permalink / raw)
  To: Marc Zyngier, Oliver Upton, Fuad Tabba, Joey Gouly, Steffen Eiden,
	Suzuki K Poulose, Zenghui Yu, Catalin Marinas, Will Deacon,
	Mark Rutland
  Cc: Karthik Bhargavan, Clément Blaudeau, linux-arm-kernel,
	kvmarm, Dan Carpenter

Oliver's commit bfb7a30b1986 ("KVM: arm64: Don't retire MMIO instruction
w/ pending (emulated) SError") established the rule that when userspace
injects an SError that we drop the MMIO.  An MMIO access dropped this way
runs again when the guest returns from the SError.

However, since commit 3bd107ed6b23 ("KVM: arm64: Only emulate an SError's
entry for vCPUs with NV"), a vcpu without EL2 pends the SError through
HCR_EL2.VSE instead.  The next KVM_RUN completes the access, and then
the guest takes the SError.  So the behavior is not consistent depending
on whether the vcpu has EL2 (MMIO dropped) or not (MMIO completes).

To make things consistent, drop the pending MMIO access in the non-EL2
case as well.

This change only affects unmasked SErrors, if they are masked the MMIO
always completes.  Protected vcpus are left alone, because the host's
copy of their PSTATE can't be trusted.

I discovered this inconsistency while writing a selftest and I don't
believe real life users have noticed it.

Fixes: 3bd107ed6b23 ("KVM: arm64: Only emulate an SError's entry for vCPUs with NV")
Signed-off-by: Dan Carpenter <dan@pereq.eu>
---
I think this patch is correct but it's also easy enough to modify my
selftest to accept the current behavior.
---
 arch/arm64/kvm/inject_fault.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/kvm/inject_fault.c b/arch/arm64/kvm/inject_fault.c
index 1d5dfd4b9e00..91b835bc939b 100644
--- a/arch/arm64/kvm/inject_fault.c
+++ b/arch/arm64/kvm/inject_fault.c
@@ -396,6 +396,14 @@ int kvm_inject_serror_esr(struct kvm_vcpu *vcpu, u64 esr)
 		return 1;
 	}
 
+	/*
+	 * Like the emulated entry above, an unmasked SError cancels the MMIO
+	 * access the vcpu exited on.  The host's copy of a protected vcpu's
+	 * PSTATE is stale so checking serror_is_masked() doesn't make sense.
+	 */
+	if (!vcpu_is_protected(vcpu) && !serror_is_masked(vcpu))
+		vcpu->mmio_needed = false;
+
 	vcpu_set_vsesr(vcpu, esr & ESR_ELx_ISS_MASK);
 	*vcpu_hcr(vcpu) |= HCR_EL2_VSE;
 	return 1;

---
base-commit: 4a1b7259e337e8a2ea999436b47151a75c7572dc
change-id: 20261125-serror-drop-mmio-1bf42dd8841c

Best regards,
--  
Dan Carpenter <dan@pereq.eu>



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] KVM: arm64: Drop a pending MMIO access when injecting an unmasked SError
  2026-11-25 12:26 Dan Carpenter
@ 2026-11-25 12:40 ` sashiko-bot
  2026-11-25 12:57   ` Dan Carpenter
  2026-11-25 13:52 ` Fuad Tabba
  1 sibling, 1 reply; 10+ messages in thread
From: sashiko-bot @ 2026-11-25 12:40 UTC (permalink / raw)
  To: Dan Carpenter; +Cc: kvmarm, Oliver Upton, Marc Zyngier

Thank you for your contribution! Sashiko AI review found no new issues
in this patch, but noticed 1 related pre-existing issue it does not
introduce:
- [High] KVM: arm64: nv: sleep in atomic in kvm_pmu_nested_transition()
  during KVM_RUN [1]
--

commit 0b7882ef6381cc8daa05a0be58edf59878cf99df
Author: Dan Carpenter <dan@pereq.eu>

KVM: arm64: Drop a pending MMIO access when injecting an unmasked SError

This commit drops any pending MMIO access in kvm_inject_serror_esr() when
injecting an unmasked SError into a non-protected vCPU without nested
virtualization, matching the emulated exception entry path.

> diff --git a/arch/arm64/kvm/inject_fault.c b/arch/arm64/kvm/inject_fault.c
> index aa2011cc0d5a0..01bc8f098cf6e 100644
> --- a/arch/arm64/kvm/inject_fault.c
> +++ b/arch/arm64/kvm/inject_fault.c
> @@ -386,6 +386,14 @@ int kvm_inject_serror_esr(struct kvm_vcpu *vcpu, u64 esr)
>  		return 1;
>  	}
>  
> +	/*
> +	 * Like the emulated entry above, an unmasked SError cancels the MMIO
> +	 * access the vcpu exited on.  The host's copy of a protected vcpu's
> +	 * PSTATE is stale so checking serror_is_masked() doesn't make sense.
> +	 */
> +	if (!vcpu_is_protected(vcpu) && !serror_is_masked(vcpu))
> +		vcpu->mmio_needed = false;
> +
>  	vcpu_set_vsesr(vcpu, esr & ESR_ELx_ISS_MASK);
>  	*vcpu_hcr(vcpu) |= HCR_EL2_VSE;
>  	return 1;

[Severity: High]
This problem wasn't introduced by this patch, but can
kvm_inject_serror_esr() sleep in atomic context [1] when routing a
pending SError to vEL2?

kvm_arch_vcpu_ioctl_run() calls kvm_nested_flush_hwstate() with preemption
disabled:

arch/arm64/kvm/arm.c:kvm_arch_vcpu_ioctl_run() {
    ...
		preempt_disable();

		if (kvm_vcpu_has_pmu(vcpu))
			kvm_pmu_flush_hwstate(vcpu);

		kvm_nested_flush_hwstate(vcpu);
    ...
}

When NESTED_SERROR_PENDING is set and the SError targets vEL2,
kvm_nested_flush_hwstate() calls kvm_inject_serror_esr() ->
kvm_inject_nested_serror() -> kvm_inject_nested() ->
kvm_pmu_nested_transition().  If an enabled PMU counter has different EL1
and EL2 event filters, kvm_pmu_nested_transition() calls
kvm_pmu_create_perf_event(), which calls perf_event_release_kernel() and
perf_event_create_kernel_counter() and sleeps on mutexes while preemption
is disabled.

[1] https://sashiko.dev/#/bug/linux-aa99e2cc-de31-4882-82e9-68786cf22648

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261125-serror-drop-mmio-v1-1-48076f59608c@pereq.eu?part=1

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] KVM: arm64: Drop a pending MMIO access when injecting an unmasked SError
  2026-11-25 12:40 ` sashiko-bot
@ 2026-11-25 12:57   ` Dan Carpenter
  0 siblings, 0 replies; 10+ messages in thread
From: Dan Carpenter @ 2026-11-25 12:57 UTC (permalink / raw)
  To: sashiko-reviews; +Cc: kvmarm, Oliver Upton, Marc Zyngier

On Wed, Nov 25, 2026 at 12:40:53PM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found no new issues
> in this patch, but noticed 1 related pre-existing issue it does not
> introduce:
> - [High] KVM: arm64: nv: sleep in atomic in kvm_pmu_nested_transition()
>   during KVM_RUN [1]
> --

Already discussed.  I'll send the patch for this later.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] KVM: arm64: Drop a pending MMIO access when injecting an unmasked SError
  2026-11-25 12:26 Dan Carpenter
  2026-11-25 12:40 ` sashiko-bot
@ 2026-11-25 13:52 ` Fuad Tabba
  2026-11-27 16:23   ` Dan Carpenter
  1 sibling, 1 reply; 10+ messages in thread
From: Fuad Tabba @ 2026-11-25 13:52 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Marc Zyngier, Oliver Upton, Joey Gouly, Steffen Eiden,
	Suzuki K Poulose, Zenghui Yu, Catalin Marinas, Will Deacon,
	Mark Rutland, Karthik Bhargavan, Clément Blaudeau,
	linux-arm-kernel, kvmarm

Hi Dan,

On Wed, 25 Nov 2026 12:26:47 +0000, Dan Carpenter <dan@pereq.eu> wrote:
[...]
> diff --git a/arch/arm64/kvm/inject_fault.c b/arch/arm64/kvm/inject_fault.c
> index 1d5dfd4b9e00..91b835bc939b 100644
[...]
> @@ -396,6 +396,14 @@ int kvm_inject_serror_esr(struct kvm_vcpu *vcpu, u64 esr)
>                  return 1;
>          }
>
> +        /*
> +         * Like the emulated entry above, an unmasked SError cancels the MMIO
> +         * access the vcpu exited on.  The host's copy of a protected vcpu's
> +         * PSTATE is stale so checking serror_is_masked() doesn't make sense.
> +         */
> +        if (!vcpu_is_protected(vcpu) && !serror_is_masked(vcpu))
> +                vcpu->mmio_needed = false;

Could you check PSTATE.A directly instead of calling
serror_is_masked()? That helper treats SCTLR2_EL1.NMEA=1 as unmasked,
but NMEA doesn't affect a virtual SError. With NMEA and PSTATE.A both
set, the patch would drop the access while the SError stays pending.

Checking PSTATE.A also covers protected vCPUs, since EL2 always sets A
in the host's copy of a protected vCPU's PSTATE (pvm_host_pstate()).
You can then drop the vcpu_is_protected() check. Something like:

        if (!(*vcpu_cpsr(vcpu) & PSR_A_BIT))
                vcpu->mmio_needed = false;

Cheers,
/fuad


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] KVM: arm64: Drop a pending MMIO access when injecting an unmasked SError
  2026-11-25 13:52 ` Fuad Tabba
@ 2026-11-27 16:23   ` Dan Carpenter
  0 siblings, 0 replies; 10+ messages in thread
From: Dan Carpenter @ 2026-11-27 16:23 UTC (permalink / raw)
  To: Fuad Tabba
  Cc: Marc Zyngier, Oliver Upton, Joey Gouly, Steffen Eiden,
	Suzuki K Poulose, Zenghui Yu, Catalin Marinas, Will Deacon,
	Mark Rutland, Karthik Bhargavan, Clément Blaudeau,
	linux-arm-kernel, kvmarm

On Wed, Nov 25, 2026 at 01:52:53PM +0000, Fuad Tabba wrote:
> Hi Dan,
> 
> On Wed, 25 Nov 2026 12:26:47 +0000, Dan Carpenter <dan@pereq.eu> wrote:
> [...]
> > diff --git a/arch/arm64/kvm/inject_fault.c b/arch/arm64/kvm/inject_fault.c
> > index 1d5dfd4b9e00..91b835bc939b 100644
> [...]
> > @@ -396,6 +396,14 @@ int kvm_inject_serror_esr(struct kvm_vcpu *vcpu, u64 esr)
> >                  return 1;
> >          }
> >
> > +        /*
> > +         * Like the emulated entry above, an unmasked SError cancels the MMIO
> > +         * access the vcpu exited on.  The host's copy of a protected vcpu's
> > +         * PSTATE is stale so checking serror_is_masked() doesn't make sense.
> > +         */
> > +        if (!vcpu_is_protected(vcpu) && !serror_is_masked(vcpu))
> > +                vcpu->mmio_needed = false;
> 
> Could you check PSTATE.A directly instead of calling
> serror_is_masked()? That helper treats SCTLR2_EL1.NMEA=1 as unmasked,
> but NMEA doesn't affect a virtual SError. With NMEA and PSTATE.A both
> set, the patch would drop the access while the SError stays pending.
> 
> Checking PSTATE.A also covers protected vCPUs, since EL2 always sets A
> in the host's copy of a protected vCPU's PSTATE (pvm_host_pstate()).
> You can then drop the vcpu_is_protected() check. Something like:
> 
>         if (!(*vcpu_cpsr(vcpu) & PSR_A_BIT))
>                 vcpu->mmio_needed = false;
> 

That obviously works.  I'll send it.  I wonder if it would be prettier
inside a wrapper like if (!vserror_is_masked(vcpu)) instead?

regards,
dan carpenter




^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] KVM: arm64: Drop a pending MMIO access when injecting an unmasked SError
@ 2026-11-27 17:52 Dan Carpenter
  2026-11-27 18:14 ` sashiko-bot
  2026-11-28 15:42 ` Fuad Tabba
  0 siblings, 2 replies; 10+ messages in thread
From: Dan Carpenter @ 2026-11-27 17:52 UTC (permalink / raw)
  To: Marc Zyngier, Oliver Upton, Fuad Tabba, Joey Gouly, Steffen Eiden,
	Suzuki K Poulose, Zenghui Yu, Catalin Marinas, Will Deacon,
	Mark Rutland
  Cc: Karthik Bhargavan, Clément Blaudeau, linux-arm-kernel,
	kvmarm, Dan Carpenter

Oliver's commit bfb7a30b1986 ("KVM: arm64: Don't retire MMIO instruction
w/ pending (emulated) SError") established the rule that when userspace
injects an SError that we drop the MMIO.  An MMIO access dropped this way
runs again when the guest returns from the SError.

However, since commit 3bd107ed6b23 ("KVM: arm64: Only emulate an SError's
entry for vCPUs with NV"), a vcpu without EL2 pends the SError through
HCR_EL2.VSE instead.  The next KVM_RUN completes the access, and then
the guest takes the SError.  So the behavior is not consistent depending
on whether the vcpu has EL2 (MMIO dropped) or not (MMIO completes).

To make things consistent, drop the pending MMIO access in the non-EL2
case as well.

This change only affects unmasked SErrors, if they are masked the MMIO
always completes.  The host's copy of a protected vcpu's PSTATE always
has SErrors masked, so for protected vcpus the MMIO always completes.

I discovered this inconsistency while writing a selftest and I don't
believe real life users have noticed it.

Fixes: 3bd107ed6b23 ("KVM: arm64: Only emulate an SError's entry for vCPUs with NV")
Signed-off-by: Dan Carpenter <dan@pereq.eu>
---
v2: Fuad pointed out a bug in v1.  I was checking serror_is_masked()
    but I should have been checking PSR_A_BIT instead.  The
    serror_is_masked() function returns false if effective_sctlr2_nmea()
    is set so we would have dropped the access but left the SError
    pending.

    Checking PSTATE.A also means we can drop the !vcpu_is_protected()
    condition.
---
 arch/arm64/kvm/inject_fault.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm64/kvm/inject_fault.c b/arch/arm64/kvm/inject_fault.c
index 1d5dfd4b9e00..cdb4fcc71d94 100644
--- a/arch/arm64/kvm/inject_fault.c
+++ b/arch/arm64/kvm/inject_fault.c
@@ -396,6 +396,13 @@ int kvm_inject_serror_esr(struct kvm_vcpu *vcpu, u64 esr)
 		return 1;
 	}
 
+	/*
+	 * Like the emulated entry above, an unmasked SError cancels the MMIO
+	 * access the vcpu exited on.
+	 */
+	if (!(*vcpu_cpsr(vcpu) & PSR_A_BIT))
+		vcpu->mmio_needed = false;
+
 	vcpu_set_vsesr(vcpu, esr & ESR_ELx_ISS_MASK);
 	*vcpu_hcr(vcpu) |= HCR_EL2_VSE;
 	return 1;

---
base-commit: 4a1b7259e337e8a2ea999436b47151a75c7572dc
change-id: 20261127-serror-drop-mmio-v2-dd7ddb89c16f

Best regards,
--  
Dan Carpenter <dan@pereq.eu>


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] KVM: arm64: Drop a pending MMIO access when injecting an unmasked SError
  2026-11-27 17:52 [PATCH] KVM: arm64: Drop a pending MMIO access when injecting an unmasked SError Dan Carpenter
@ 2026-11-27 18:14 ` sashiko-bot
  2026-11-28  8:59   ` Dan Carpenter
  2026-11-28 15:42 ` Fuad Tabba
  1 sibling, 1 reply; 10+ messages in thread
From: sashiko-bot @ 2026-11-27 18:14 UTC (permalink / raw)
  To: Dan Carpenter; +Cc: kvmarm, Oliver Upton, Marc Zyngier

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] KVM: arm64: PSR_A_BIT check in kvm_inject_serror_esr() ignores
  SCTLR2_ELx.NMEA
--

commit 3baf52b3ece0a678fb430e38fdfba08de0591af4
Author: Dan Carpenter <dan@pereq.eu>

KVM: arm64: Drop a pending MMIO access when injecting an unmasked SError

This commit clears vcpu->mmio_needed when injecting an unmasked SError via
HCR_EL2.VSE so that non-NV vCPUs cancel a pending MMIO exit like NV vCPUs
do.

> diff --git a/arch/arm64/kvm/inject_fault.c b/arch/arm64/kvm/inject_fault.c
> index aa2011cc0d5a0..61df0338290d9 100644
> --- a/arch/arm64/kvm/inject_fault.c
> +++ b/arch/arm64/kvm/inject_fault.c
> @@ -386,6 +386,13 @@ int kvm_inject_serror_esr(struct kvm_vcpu *vcpu, u64 esr)
>  		return 1;
>  	}
>  
> +	/*
> +	 * Like the emulated entry above, an unmasked SError cancels the MMIO
> +	 * access the vcpu exited on.
> +	 */
> +	if (!(*vcpu_cpsr(vcpu) & PSR_A_BIT))
> +		vcpu->mmio_needed = false;

[Severity: Low]
Does hardware deliver a virtual SError pended via HCR_EL2.VSE when
PSTATE.A is 1 and the effective SCTLR2_ELx.NMEA bit is 1?

This rests on an architecture detail that could not be confirmed from the
kernel source.  Earlier in this file, serror_is_masked() treats SErrors as
unmasked when effective_sctlr2_nmea(vcpu) is set, and the NV path right
above emulates the exception entry and clears vcpu->mmio_needed in that
state:

arch/arm64/kvm/inject_fault.c:serror_is_masked() {
	return (*vcpu_cpsr(vcpu) & PSR_A_BIT) && !effective_sctlr2_nmea(vcpu);
}

If HCR_EL2.VSE also delivers the virtual SError when PSTATE.A is 1 and
effective SCTLR2_EL1.NMEA is 1, testing only PSR_A_BIT here leaves
vcpu->mmio_needed set on a non-NV vCPU, so the next KVM_RUN completes the
MMIO access and advances PC before the guest takes the SError.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261127-serror-drop-mmio-v2-v1-1-96bd01bef6d8@pereq.eu?part=1

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] KVM: arm64: Drop a pending MMIO access when injecting an unmasked SError
  2026-11-27 18:14 ` sashiko-bot
@ 2026-11-28  8:59   ` Dan Carpenter
  0 siblings, 0 replies; 10+ messages in thread
From: Dan Carpenter @ 2026-11-28  8:59 UTC (permalink / raw)
  To: sashiko-reviews; +Cc: kvmarm, Oliver Upton, Marc Zyngier, Fuad Tabba

On Fri, Nov 27, 2026 at 06:14:08PM +0000, sashiko-bot@kernel.org wrote:
> > +	/*
> > +	 * Like the emulated entry above, an unmasked SError cancels the MMIO
> > +	 * access the vcpu exited on.
> > +	 */
> > +	if (!(*vcpu_cpsr(vcpu) & PSR_A_BIT))
> > +		vcpu->mmio_needed = false;
> 
> [Severity: Low]
> Does hardware deliver a virtual SError pended via HCR_EL2.VSE when
> PSTATE.A is 1 and the effective SCTLR2_ELx.NMEA bit is 1?
> 
> This rests on an architecture detail that could not be confirmed from the
> kernel source.  Earlier in this file, serror_is_masked() treats SErrors as
> unmasked when effective_sctlr2_nmea(vcpu) is set, and the NV path right
> above emulates the exception entry and clears vcpu->mmio_needed in that
> state:
> 
> arch/arm64/kvm/inject_fault.c:serror_is_masked() {
> 	return (*vcpu_cpsr(vcpu) & PSR_A_BIT) && !effective_sctlr2_nmea(vcpu);
> }
> 
> If HCR_EL2.VSE also delivers the virtual SError when PSTATE.A is 1 and
> effective SCTLR2_EL1.NMEA is 1, testing only PSR_A_BIT here leaves
> vcpu->mmio_needed set on a non-NV vCPU, so the next KVM_RUN completes the
> MMIO access and advances PC before the guest takes the SError.

Sashiko is basically saying we go back to v1.  I don't think that's true
because Fuad is the expert here and because what Fuad is saying matches
what the Specs say.

The original bug was found in testing, but truth is that I'm using Qemu
so I can't actually test the difference between v1 and v2.  I had already
added the new case to my test matrix before I sent the patch, but on my
test setup it's a skip.  I am planning to push the test after everything
is working so we will eventually see if the specs match real CPUs.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] KVM: arm64: Drop a pending MMIO access when injecting an unmasked SError
  2026-11-27 17:52 [PATCH] KVM: arm64: Drop a pending MMIO access when injecting an unmasked SError Dan Carpenter
  2026-11-27 18:14 ` sashiko-bot
@ 2026-11-28 15:42 ` Fuad Tabba
  2026-11-28 17:48   ` Dan Carpenter
  1 sibling, 1 reply; 10+ messages in thread
From: Fuad Tabba @ 2026-11-28 15:42 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Marc Zyngier, Oliver Upton, Joey Gouly, Steffen Eiden,
	Suzuki K Poulose, Zenghui Yu, Catalin Marinas, Will Deacon,
	Mark Rutland, Karthik Bhargavan, Clément Blaudeau,
	linux-arm-kernel, kvmarm, Fuad Tabba

Hi Dan,

On Fri, 27 Nov 2026 17:52:37 +0000, Dan Carpenter <dan@pereq.eu> wrote:
[...]
> diff --git a/arch/arm64/kvm/inject_fault.c b/arch/arm64/kvm/inject_fault.c
[...]
> @@ -396,6 +396,13 @@ int kvm_inject_serror_esr(struct kvm_vcpu *vcpu, u64 esr)
>                 return 1;
>         }
>
> +       /*
> +        * Like the emulated entry above, an unmasked SError cancels the MMIO
> +        * access the vcpu exited on.
> +        */
> +       if (!(*vcpu_cpsr(vcpu) & PSR_A_BIT))
> +               vcpu->mmio_needed = false;

This is the check I suggested on v1, but after taking a closer look I
found an issue with the drop itself, which I missed then.

With the access dropped, the vcpu runs the same instruction again with
the vSError pending, and the instruction faults at stage 2 again. For
the first instruction after an exception return, R_RBZYL in the ARM ARM
states:

  If the first instruction after the Context synchronization event
  generates a synchronous exception, the architecture does not define
  whether the PE takes the asynchronous exception or the synchronous
  exception first.

If the PE takes the abort first, the vcpu exits on the same access
again and the next KVM_RUN completes it. The emulated entry isn't
affected, since KVM emulates it before the vcpu runs.

So I don't think the drop can be relied on, and I'd leave the code as
it is. Could you instead make your selftest not depend on whether the
access completes for a vcpu without EL2?

Regarding Sashiko's finding, that isn't an issue, since NMEA doesn't
affect a virtual SError. The description of SCTLR2_EL1.NMEA reads "This
field has no effect on the masking of virtual and delegated SError
interrupts."

Cheers,
/fuad

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] KVM: arm64: Drop a pending MMIO access when injecting an unmasked SError
  2026-11-28 15:42 ` Fuad Tabba
@ 2026-11-28 17:48   ` Dan Carpenter
  0 siblings, 0 replies; 10+ messages in thread
From: Dan Carpenter @ 2026-11-28 17:48 UTC (permalink / raw)
  To: Fuad Tabba
  Cc: Marc Zyngier, Oliver Upton, Joey Gouly, Steffen Eiden,
	Suzuki K Poulose, Zenghui Yu, Catalin Marinas, Will Deacon,
	Mark Rutland, Karthik Bhargavan, Clément Blaudeau,
	linux-arm-kernel, kvmarm, Fuad Tabba

On Sat, Nov 28, 2026 at 03:42:50PM +0000, Fuad Tabba wrote:
> So I don't think the drop can be relied on, and I'd leave the code as
> it is. Could you instead make your selftest not depend on whether the
> access completes for a vcpu without EL2?

Sure, I'll change it back to that and send it next week.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-11-28 17:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 17:52 [PATCH] KVM: arm64: Drop a pending MMIO access when injecting an unmasked SError Dan Carpenter
2026-11-27 18:14 ` sashiko-bot
2026-11-28  8:59   ` Dan Carpenter
2026-11-28 15:42 ` Fuad Tabba
2026-11-28 17:48   ` Dan Carpenter
  -- strict thread matches above, loose matches on Subject: below --
2026-11-25 12:26 Dan Carpenter
2026-11-25 12:40 ` sashiko-bot
2026-11-25 12:57   ` Dan Carpenter
2026-11-25 13:52 ` Fuad Tabba
2026-11-27 16:23   ` Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.