Re: [PATCH v8 1/2] target/arm: kvm: Handle DABT with no valid ISS

2020-06-29 Thread Beata Michalska
On Mon, 29 Jun 2020 at 09:15, Andrew Jones wrote: > > On Sun, Jun 28, 2020 at 04:04:58PM +0100, Beata Michalska wrote: > > On ARMv7 & ARMv8 some load/store instructions might trigger a data abort > > exception with no valid ISS info to be decoded. The lack of decode info

[PATCH v9 0/2] target/arm: kvm: Support for KVM DABT with no valid ISS

2020-06-29 Thread Beata Michalska
able and what's effective: aborting qemu when running on buggy host kernel v2: - Improving/re-phrasing messaging - Dropping messing around with forced sync (@see [PATCH v2 1/2]) and PC alignment Beata Michalska (2): target/arm: kvm: Handle DABT with no valid ISS target/arm: kvm: Ha

[PATCH v9 1/2] target/arm: kvm: Handle DABT with no valid ISS

2020-06-29 Thread Beata Michalska
ling those by requesting KVM to inject external dabt into the quest. Signed-off-by: Beata Michalska Reviewed-by: Andrew Jones --- target/arm/kvm.c | 52 1 file changed, 52 insertions(+) diff --git a/target/arm/kvm.c b/target/arm/kvm.c index eef

[PATCH v9 2/2] target/arm: kvm: Handle misconfigured dabt injection

2020-06-29 Thread Beata Michalska
instruction. Add support for handling that case. [ Fixed-by: 018f22f95e8a ('KVM: arm: Fix DFSR setting for non-LPAE aarch32 guests') Fixed-by: 21aecdbd7f3a ('KVM: arm: Make inject_abt32() inject an external abort instead') ] Signed-off-by: Beata Michalska Acked-by: Andrew Jones

[PATCH v8 2/2] target/arm: kvm: Handle misconfigured dabt injection

2020-06-28 Thread Beata Michalska
instruction. Add support for handling that case. [ Fixed-by: 018f22f95e8a ('KVM: arm: Fix DFSR setting for non-LPAE aarch32 guests') Fixed-by: 21aecdbd7f3a ('KVM: arm: Make inject_abt32() inject an external abort instead') ] Signed-off-by: Beata Michalska --- target/arm/cpu.h

[PATCH v8 1/2] target/arm: kvm: Handle DABT with no valid ISS

2020-06-28 Thread Beata Michalska
ling those by requesting KVM to inject external dabt into the quest. Signed-off-by: Beata Michalska --- target/arm/kvm.c | 57 +++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/target/arm/kvm.c b/target/arm/kvm.c index eef3bbd..2dd

[PATCH v8 0/2] target/arm: kvm: Support for KVM DABT with no valid ISS

2020-06-28 Thread Beata Michalska
tive: aborting qemu when running on buggy host kernel v2: - Improving/re-phrasing messaging - Dropping messing around with forced sync (@see [PATCH v2 1/2]) and PC alignment Beata Michalska (2): target/arm: kvm: Handle DABT with no valid ISS target/arm: kvm: Handle misconfigured dabt injec

Re: [PATCH v6 1/2] target/arm: kvm: Handle DABT with no valid ISS

2020-06-27 Thread Beata Michalska
Hi Peter, Hi Andrew Thanks for quick review. I have pushed the updated version. BR Beata On Fri, 26 Jun 2020 at 13:59, Peter Maydell wrote: > > On Fri, 26 Jun 2020 at 10:01, Andrew Jones wrote: > > nit: How about using '= {0}' when declaring the variable, rather than this > > memset? > > We

[PATCH v7 2/2] target/arm: kvm: Handle misconfigured dabt injection

2020-06-27 Thread Beata Michalska
instruction. Add support for handling that case. [ Fixed-by: 018f22f95e8a ('KVM: arm: Fix DFSR setting for non-LPAE aarch32 guests') Fixed-by: 21aecdbd7f3a ('KVM: arm: Make inject_abt32() inject an external abort instead') ] Signed-off-by: Beata Michalska --- target/arm/cpu.h

[PATCH v7 0/2] target/arm: kvm: Support for KVM DABT with no valid ISS

2020-06-27 Thread Beata Michalska
sing messaging - Dropping messing around with forced sync (@see [PATCH v2 1/2]) and PC alignment Beata Michalska (2): target/arm: kvm: Handle DABT with no valid ISS target/arm: kvm: Handle misconfigured dabt injection target/arm/cpu.h | 2 ++ target/arm/kvm.c

[PATCH v7 1/2] target/arm: kvm: Handle DABT with no valid ISS

2020-06-27 Thread Beata Michalska
ling those by requesting KVM to inject external dabt into the quest. Signed-off-by: Beata Michalska --- target/arm/kvm.c | 58 +++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/target/arm/kvm.c b/target/arm/kvm.c index eef3bbd..3ea

[PATCH v6 1/2] target/arm: kvm: Handle DABT with no valid ISS

2020-06-25 Thread Beata Michalska
ling those by requesting KVM to inject external dabt into the quest. Signed-off-by: Beata Michalska --- target/arm/kvm.c | 59 +++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/target/arm/kvm.c b/target/arm/kvm.c index eef3bbd..265

[PATCH v6 2/2] target/arm: kvm: Handle misconfigured dabt injection

2020-06-25 Thread Beata Michalska
instruction. Add support for handling that case. [ Fixed-by: 018f22f95e8a ('KVM: arm: Fix DFSR setting for non-LPAE aarch32 guests') Fixed-by: 21aecdbd7f3a ('KVM: arm: Make inject_abt32() inject an external abort instead') ] Signed-off-by: Beata Michalska --- target/arm/cpu.h

[PATCH v6 0/2] target/arm: kvm: Support for KVM DABT with no valid ISS

2020-06-25 Thread Beata Michalska
nels): little bit of trade-off between what's reasonable and what's effective: aborting qemu when running on buggy host kernel v2: - Improving/re-phrasing messaging - Dropping messing around with forced sync (@see [PATCH v2 1/2]) and PC alignment Beata Michalska (2): target/arm: kvm: Ha

Re: [PATCH v5 1/2] target/arm: kvm: Handle DABT with no valid ISS

2020-06-16 Thread Beata Michalska
Hi Andrew, Thanks for the feedback. On Tue, 16 Jun 2020 at 09:33, Andrew Jones wrote: > > Hi Beata, > > I see Peter just picked this up, so I'm a bit late getting to it. I do > have a couple comments below though. > > Thanks, > drew > > On Fri, May 29, 2020 at 12:

[PATCH v5 2/2] target/arm: kvm: Handle misconfigured dabt injection

2020-05-29 Thread Beata Michalska
instruction. Add support for handling that case. [ Fixed-by: 018f22f95e8a ('KVM: arm: Fix DFSR setting for non-LPAE aarch32 guests') Fixed-by: 21aecdbd7f3a ('KVM: arm: Make inject_abt32() inject an external abort instead') ] Signed-off-by: Beata Michalska --- target/arm/cpu.h

[PATCH v5 0/2] target/arm: kvm: Support for KVM DABT with no valid ISS

2020-05-29 Thread Beata Michalska
able and what's effective: aborting qemu when running on buggy host kernel v2: - Improving/re-phrasing messaging - Dropping messing around with forced sync (@see [PATCH v2 1/2]) and PC alignment Beata Michalska (2): target/arm: kvm: Handle DABT with no valid ISS target/arm: kvm: Ha

[PATCH v5 1/2] target/arm: kvm: Handle DABT with no valid ISS

2020-05-29 Thread Beata Michalska
ling those by requesting KVM to inject external dabt into the quest. Signed-off-by: Beata Michalska --- target/arm/cpu.h | 2 ++ target/arm/kvm.c | 64 +++- target/arm/kvm_arm.h | 11 + 3 files changed, 76 insertions(+), 1 dele

Re: [PATCH v4 1/2] target/arm: kvm: Handle DABT with no valid ISS

2020-04-18 Thread Beata Michalska
On Fri, 17 Apr 2020 at 14:10, Andrew Jones wrote: > > On Fri, Apr 17, 2020 at 11:39:25AM +0100, Peter Maydell wrote: > > On Mon, 23 Mar 2020 at 11:32, Beata Michalska > > wrote: > > > > > > On ARMv7 & ARMv8 some load/store instructions might trigger a data

Re: [PATCH v4 2/2] target/arm: kvm: Handle potential issue with dabt injection

2020-04-07 Thread Beata Michalska
On Tue, 7 Apr 2020 at 12:24, Peter Maydell wrote: > > On Fri, 3 Apr 2020 at 09:44, Andrew Jones wrote: > > > > On Mon, Mar 23, 2020 at 11:32:27AM +0000, Beata Michalska wrote: > > > Injecting external data abort through KVM might trigger > > > an issu

Re: [PATCH v4 2/2] target/arm: kvm: Handle potential issue with dabt injection

2020-04-07 Thread Beata Michalska
On Fri, 3 Apr 2020 at 09:44, Andrew Jones wrote: > > On Mon, Mar 23, 2020 at 11:32:27AM +, Beata Michalska wrote: > > Injecting external data abort through KVM might trigger > > an issue on kernels that do not get updated to include the KVM fix. > > For those and aarc

Re: [PATCH v4 2/2] target/arm: kvm: Handle potential issue with dabt injection

2020-03-25 Thread Beata Michalska
On Mon, 23 Mar 2020 at 18:44, Richard Henderson wrote: > > On 3/23/20 4:32 AM, Beata Michalska wrote: > > uint8_t ext_dabt_pending; /* Request for injecting ext DABT */ > > +uint8_t ext_dabt_raised; /* Tracking/verifying injection of ext DABT */ > > Is there a

Re: [PATCH v4 1/2] target/arm: kvm: Handle DABT with no valid ISS

2020-03-25 Thread Beata Michalska
Hi, On Mon, 23 Mar 2020 at 12:44, Andrew Jones wrote: > > On Mon, Mar 23, 2020 at 11:32:26AM +, Beata Michalska wrote: > > On ARMv7 & ARMv8 some load/store instructions might trigger a data abort > > exception with no valid ISS info to be decoded. The lack of

[PATCH v4 0/2] target/arm: kvm: Support for KVM DABT with no valid ISS

2020-03-23 Thread Beata Michalska
ween what's reasonable and what's effective: aborting qemu when running on buggy host kernel v2: - Improving/re-phrasing messaging - Dropping messing around with forced sync (@see [PATCH v2 1/2]) and PC alignment Beata Michalska (2): target/arm: kvm: Handle DABT with no valid ISS target/arm:

[PATCH v4 2/2] target/arm: kvm: Handle potential issue with dabt injection

2020-03-23 Thread Beata Michalska
instruction. Add support for handling that case. [ Fixed-by: 018f22f95e8a ('KVM: arm: Fix DFSR setting for non-LPAE aarch32 guests') Fixed-by: 21aecdbd7f3a ('KVM: arm: Make inject_abt32() inject an external abort instead') ] Signed-off-by: Beata Michalska --- target/arm/cpu.h

[PATCH v4 1/2] target/arm: kvm: Handle DABT with no valid ISS

2020-03-23 Thread Beata Michalska
ling those by requesting KVM to inject external dabt into the quest. Signed-off-by: Beata Michalska --- target/arm/cpu.h | 2 ++ target/arm/kvm.c | 54 target/arm/kvm_arm.h | 11 +++ 3 files changed, 67 insertions(+) diff -

Re: [PATCH v3 2/2] target/arm: kvm: Handle DABT with no valid ISS

2020-03-15 Thread Beata Michalska
On Thu, 12 Mar 2020 at 10:25, Andrew Jones wrote: > > On Thu, Mar 12, 2020 at 12:34:01AM +, Beata Michalska wrote: > > On ARMv7 & ARMv8 some load/store instructions might trigger a data abort > > exception with no valid ISS info to be decoded. The lack of decode info

Re: [PATCH v3 1/2] target/arm: kvm: Inject events at the last stage of sync

2020-03-15 Thread Beata Michalska
On Thu, 12 Mar 2020 at 16:33, Peter Maydell wrote: > > On Thu, 12 Mar 2020 at 00:34, Beata Michalska > wrote: > > > > KVM_SET_VCPU_EVENTS might actually lead to vcpu registers being modified. > > As such this should be the last step of sync to avoid potential overwrit

[PATCH v3 2/2] target/arm: kvm: Handle DABT with no valid ISS

2020-03-11 Thread Beata Michalska
ling those by requesting KVM to inject external dabt into the quest. Signed-off-by: Beata Michalska --- target/arm/cpu.h | 3 ++ target/arm/kvm.c | 81 target/arm/kvm32.c | 26 + target/arm/kvm64.c

[PATCH v3 1/2] target/arm: kvm: Inject events at the last stage of sync

2020-03-11 Thread Beata Michalska
KVM_SET_VCPU_EVENTS might actually lead to vcpu registers being modified. As such this should be the last step of sync to avoid potential overwriting of whatever changes KVM might have done. Signed-off-by: Beata Michalska --- target/arm/kvm32.c | 15 ++- target/arm/kvm64.c | 15

[PATCH v3 0/2] target/arm: kvm: Support for KVM DABT with no valid ISS

2020-03-11 Thread Beata Michalska
bug (for small range of affected kernels): little bit of trade-off between what's reasonable and what's effective: aborting qemu when running on buggy host kernel v2: - Improving/re-phrasing messaging - Dropping messing around with forced sync (@see [PATCH v2 1/2]) and PC alignment B

Re: [PATCH v2 2/2] target/arm: kvm: Handle DABT with no valid ISS

2020-02-11 Thread Beata Michalska
On Fri, 7 Feb 2020 at 08:20, Andrew Jones wrote: > > On Thu, Feb 06, 2020 at 09:48:05PM +, Beata Michalska wrote: > > On Wed, 5 Feb 2020 at 16:57, Andrew Jones wrote: > > > > > > On Wed, Jan 29, 2020 at 08:24:41PM +, Beata Michalska wrote: > >

Re: [PATCH v2 2/2] target/arm: kvm: Handle DABT with no valid ISS

2020-02-06 Thread Beata Michalska
On Wed, 5 Feb 2020 at 16:57, Andrew Jones wrote: > > On Wed, Jan 29, 2020 at 08:24:41PM +, Beata Michalska wrote: > > On ARMv7 & ARMv8 some load/store instructions might trigger a data abort > > exception with no valid ISS info to be decoded. The lack of decode info

Re: [PATCH v2 1/2] target/arm: kvm: Inject events at the last stage of sync

2020-02-06 Thread Beata Michalska
On Tue, 4 Feb 2020 at 10:34, Andrew Jones wrote: > > On Wed, Jan 29, 2020 at 08:24:40PM +, Beata Michalska wrote: > > KVM_SET_VCPU_EVENTS might actually lead to vcpu registers being modified. > > As such this should be the last step of sync to avoid potential overwriti

[PATCH v2 1/2] target/arm: kvm: Inject events at the last stage of sync

2020-01-29 Thread Beata Michalska
KVM_SET_VCPU_EVENTS might actually lead to vcpu registers being modified. As such this should be the last step of sync to avoid potential overwriting of whatever changes KVM might have done. Signed-off-by: Beata Michalska --- target/arm/kvm32.c | 20 ++-- target/arm/kvm64.c | 20

[PATCH v2 2/2] target/arm: kvm: Handle DABT with no valid ISS

2020-01-29 Thread Beata Michalska
ling those by requesting KVM to inject external dabt into the quest. Signed-off-by: Beata Michalska --- target/arm/cpu.h | 2 ++ target/arm/kvm.c | 96 target/arm/kvm32.c | 3 ++ target/arm/kvm64.c | 3 ++ target/arm/kvm_arm.h

[PATCH v2 0/2] target/arm: kvm: Support for KVM DABT without valid ISS

2020-01-29 Thread Beata Michalska
1/2]) and PC alignment Beata Michalska (2): target/arm: kvm: Inject events at the last stage of sync target/arm: kvm: Handle DABT with no valid ISS target/arm/cpu.h | 2 ++ target/arm/kvm.c | 96 target/arm/kvm32.c

Re: [PATCH 0/2] KVM: arm: fix KVM_CAP_ARM_INJECT_EXT_DABT for aarch32 guests

2020-01-27 Thread Beata Michalska
Hi Marc, On Sun, 26 Jan 2020 at 11:56, Marc Zyngier wrote: > > On Fri, 24 Jan 2020 15:39:29 +0000 > Beata Michalska wrote: > > Hi Beata, > > > Hi James, > > > > Thanks for the fixes - they work like a charm. > > > > On Tue, 21 Jan 2020 at 12:3

Re: [PATCH 0/2] KVM: arm: fix KVM_CAP_ARM_INJECT_EXT_DABT for aarch32 guests

2020-01-24 Thread Beata Michalska
Hi James, Thanks for the fixes - they work like a charm. On Tue, 21 Jan 2020 at 12:34, James Morse wrote: > > Beata reports that KVM_CAP_ARM_INJECT_EXT_DABT doesn't do the expected > thing for aarch32 guests. We get the wrong register layout, and weren't > even trying to set a 'external abort'