[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <59E49BB8.8080801@arm.com>
Date: Mon, 16 Oct 2017 12:44:56 +0100
From: James Morse <james.morse@....com>
To: gengdongjiu <gengdongjiu@...wei.com>
CC: christoffer.dall@...aro.org, marc.zyngier@....com,
rkrcmar@...hat.com, linux@...linux.org.uk, catalin.marinas@....com,
will.deacon@....com, lenb@...nel.org, robert.moore@...el.com,
lv.zheng@...el.com, mark.rutland@....com, xiexiuqi@...wei.com,
cov@...eaurora.org, david.daney@...ium.com, suzuki.poulose@....com,
stefan@...lo-penguin.com, Dave.Martin@....com,
kristina.martsenko@....com, wangkefeng.wang@...wei.com,
tbaicar@...eaurora.org, ard.biesheuvel@...aro.org,
mingo@...nel.org, bp@...e.de, shiju.jose@...wei.com,
zjzhang@...eaurora.org, linux-arm-kernel@...ts.infradead.org,
kvmarm@...ts.cs.columbia.edu, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-acpi@...r.kernel.org,
devel@...ica.org, mst@...hat.com, john.garry@...wei.com,
jonathan.cameron@...wei.com, shameerali.kolothum.thodi@...wei.com,
huangdaode@...ilicon.com, wangzhou1@...ilicon.com,
huangshaoyu@...wei.com, wuquanming@...wei.com, linuxarm@...wei.com,
zhengqiang10@...wei.com
Subject: Re: [PATCH v6 5/7] arm64: kvm: route synchronous external abort exceptions
to el2
Hi gengdongjiu,
On 14/09/17 12:12, gengdongjiu wrote:
> On 2017/9/8 0:31, James Morse wrote:
>> KVM already handles external aborts from lower exception levels, no more work
>> needs doing for TEA.
> If it is firmware first solution, that is SCR_EL3.EA=1, all SError interrupt and synchronous External
> Abort exceptions are taken to EL3, so EL3 firmware will handle it, KVM no needs to handle it.
>
> HCR_EL3.TEA is only for EL3 to check its value to decide to jump to hypervisor or kernel.
>
>>
>> What happens when a guest access the RAS-Error-Record registers?
>>
>> Before we can set HCR_EL2.TERR I think we need to add some minimal emulation for
>> the registers it traps. Most of them should be RAZ/WI, so it should be
>> straightforward. (I think KVMs default is to emulate an undef for unknown traps).
> Today I added the support to do some minimal emulation for RAS-Error-Record registers, thanks
> for the good suggestion.
Where can I find this patch?
I'd like to repost it as part of the SError_rework/RAS/IESB series: this is one
of the bits KVM needs but I didn't touch as it looks like your updated version
of this patch should cover it.
Thanks,
James
Powered by blists - more mailing lists