Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1705719

Re: [PATCH] KVM: arm64: add esr_el2 and far_el2 to sysreg

From James Morse <james.morse@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH] KVM: arm64: add esr_el2 and far_el2 to sysreg
Date 2017-08-07 19:10 +0200
Message-ID <ubTHr-3b4-5@gated-at.bofh.it> (permalink)
References <ubSs1-22w-9@gated-at.bofh.it> <ubSBI-291-21@gated-at.bofh.it> <ubTeq-2HP-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi gengdongjiu,

On 07/08/17 17:23, gengdongjiu wrote:
>   As James's suggestion, I move injection SEA Error logic to the user space(Qemu), Qemu sets the related guest OS esr/elr/pstate/spsr

(because for firmware-first its the CPER records that matter, and only QEMU
knows where it reserved the memory for these, and what it told the guest it
would use as the notification method).

> through IOCTL KVM_SET_ONE_REG. For the SEA, when Qemu sets the esr_el1.IL bit, it needs to refer to esr_el2.IL, else Qemu does not know the trapped
> instruction was a 16-bit or a 32-bit instruction, also it needs to set far_el1 using far_el2, because this is synchronization abort.

The 32bit kernel doesn't support ACPI firmware first, and aarch64 doesn't
support 16-bit instructions.


James

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] KVM: arm64: add esr_el2 and far_el2 to sysreg Dongjiu Geng <gengdongjiu@huawei.com> - 2017-08-07 17:50 +0200
  Re: [PATCH] KVM: arm64: add esr_el2 and far_el2 to sysreg Marc Zyngier <marc.zyngier@arm.com> - 2017-08-07 18:00 +0200
    Re: [PATCH] KVM: arm64: add esr_el2 and far_el2 to sysreg gengdongjiu <gengdongjiu@huawei.com> - 2017-08-07 18:40 +0200
      Re: [PATCH] KVM: arm64: add esr_el2 and far_el2 to sysreg Marc Zyngier <marc.zyngier@arm.com> - 2017-08-07 19:00 +0200
        Re: [PATCH] KVM: arm64: add esr_el2 and far_el2 to sysreg gengdongjiu <gengdongjiu@huawei.com> - 2017-08-07 21:10 +0200
      Re: [PATCH] KVM: arm64: add esr_el2 and far_el2 to sysreg James Morse <james.morse@arm.com> - 2017-08-07 19:10 +0200
        Re: [PATCH] KVM: arm64: add esr_el2 and far_el2 to sysreg gengdongjiu <gengdongjiu@huawei.com> - 2017-08-07 19:50 +0200
          Re: [PATCH] KVM: arm64: add esr_el2 and far_el2 to sysreg James Morse <james.morse@arm.com> - 2017-08-08 18:30 +0200
            Re: [PATCH] KVM: arm64: add esr_el2 and far_el2 to sysreg gengdongjiu <gengdongjiu@huawei.com> - 2017-08-08 20:40 +0200

csiph-web