Re: [PATCH 1/1] KVM: inject data abort if instruction cannot be decoded

From: Peter Maydell
Date: Fri Sep 06 2019 - 09:50:49 EST


On Fri, 6 Sep 2019 at 14:41, Alexander Graf <graf@xxxxxxxxxx> wrote:
> On 06.09.19 15:31, Peter Maydell wrote:
> > (b) we try to reuse the code we already have that does TCG exception
> > injection, which might or might not be a design mistake, and
>
> That's probably a design mistake, correct :)

Well, conceptually it's not necessarily a bad idea, because
in both cases what we're doing is "change the system register
state (PC, ESR_EL1, ELR_EL1 etc) so that the CPU looks like
it's just taken an exception"; but some of what the
TCG code needs to do isn't necessary for KVM and all of it
was not written with the idea of KVM in mind at all...

thanks
-- PMM