From: Peter Maydell <peter.maydell@linaro.org>
To: gengdongjiu <gengdongjiu@huawei.com>
Cc: Igor Mammedov <imammedo@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Shannon Zhao <zhaoshenglong@huawei.com>,
Marcelo Tosatti <mtosatti@redhat.com>,
Richard Henderson <rth@twiddle.net>,
Eduardo Habkost <ehabkost@redhat.com>,
James Morse <james.morse@arm.com>,
Christoffer Dall <christoffer.dall@linaro.org>,
Marc Zyngier <marc.zyngier@arm.com>,
kvm-devel <kvm@vger.kernel.org>,
QEMU Developers <qemu-devel@nongnu.org>,
qemu-arm <qemu-arm@nongnu.org>,
Huangshaoyu <huangshaoyu@huawei.com>,
"Zhengqiang (turing)" <zhengqiang10@huawei.com>,
Xu Wei <xuwei5@hisilicon.com>
Subject: Re: [Qemu-devel] [PATCH v14 2/9] ACPI: Add APEI GHES table generation and CPER record support
Date: Tue, 9 Jan 2018 16:51:31 +0000 [thread overview]
Message-ID: <CAFEAcA--f5eK0_zij55o09M+FyRUVH+Pnwc3tsT6rLm1kpvbBw@mail.gmail.com> (raw)
In-Reply-To: <10087bbd-28b0-b5ad-101a-e6d5ac648548@huawei.com>
On 3 January 2018 at 02:21, gengdongjiu <gengdongjiu@huawei.com> wrote:
> On 2017/12/28 22:18, Igor Mammedov wrote:
>> On Thu, 28 Dec 2017 13:54:11 +0800
>> Dongjiu Geng <gengdongjiu@huawei.com> wrote:
>>> In order to simulation, we hard code the error
>>> type to Multi-bit ECC.
>> Not sure what this is about, care to elaborate?
>
> please see Memory Error Record in [1], in which the "Memory Error Type" field is used to describe the
> error type, such as Multi-bit ECC or Parity Error etc. Because KVM or host does not pass the memory
> error type to Qemu, so Qemu does not know what is the error type for the memory section. Hence we let QEMU simulate
> the error type to Multi-bit ECC.
>
> [1]:
> UEFI Spec 2.6 Errata A:
>
> "N.2.5 Memory Error Section"
> -----------------+---------------+--------------+-------------------------------------------+
> Mnemonic | Byte Offset | Byte Length | Description |
> -----------------+---------------+--------------+-------------------------------------------+
> ........ | ............ | ......... | ........... |
> -----------------+---------------+--------------+-------------------------------------------+
> Memory Error Type| 72 | 1 |Identifies the type of error that occurred:|
> | | | 0 – Unknown |
> | | | 1 – No error |
> | | | 2 – Single-bit ECC |
> | | | 3 – Multi-bit ECC |
> | | | 4 – Single-symbol ChipKill ECC |
> | | | 5 – Multi-symbol ChipKill ECC |
> | | | 6 – Master abort |
> | | | 7 – Target abort |
> | | | 8 – Parity Error |
> | | | 9 – Watchdog timeout |
> | | | 10 – Invalid address |
> | | | 11 – Mirror Broken |
> | | | 12 – Memory Sparing |
> | | | 13 - Scrub corrected error |
> | | | 14 - Scrub uncorrected error |
> | | | 15 - Physical Memory Map-out event |
> | | | All other values reserved. |
> -----------------+---------------+--------------+-------------------------------------------+
> ........ | ............ | ......... | ........... |
> -----------------+---------------+--------------+-------------------------------------------+
There's a value specified for "we don't know what the error type is",
which is "0 - Unknown". I think we should use that rather than claiming
that we have a particular type of error when we don't actually know that.
I agree with James that we don't want to report a particular type of
error to the guest anyway -- the VM is a virtual environment, and
the exact reason why the hardware/firmware/host kernel have decided
that a bit of RAM isn't usable any more doesn't matter to the guest.
We just want to report "this RAM has gone away, sorry" to it.
thanks
-- PMM
next prev parent reply other threads:[~2018-01-09 16:51 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-28 5:54 [Qemu-devel] [PATCH v14 0/9] Add ARMv8 RAS virtualization support in QEMU Dongjiu Geng
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 1/9] ACPI: add some GHES structures and macros definition Dongjiu Geng
2017-12-28 12:29 ` Igor Mammedov
2018-01-03 10:29 ` gengdongjiu
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 2/9] ACPI: Add APEI GHES table generation and CPER record support Dongjiu Geng
2017-12-28 14:18 ` Igor Mammedov
2017-12-29 6:33 ` gengdongjiu
2018-01-03 2:21 ` gengdongjiu
2018-01-03 13:31 ` Igor Mammedov
2018-01-04 4:21 ` gengdongjiu
2018-01-09 16:51 ` Peter Maydell [this message]
2018-01-10 5:22 ` gengdongjiu
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 3/9] docs: APEI GHES generation and CPER record description Dongjiu Geng
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 4/9] ACPI: enable APEI GHES in the configure file Dongjiu Geng
2018-01-09 17:16 ` Peter Maydell
2018-01-10 12:20 ` gengdongjiu
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 5/9] target-arm: kvm64: inject synchronous External Abort Dongjiu Geng
2017-12-28 13:49 ` Igor Mammedov
2017-12-29 6:27 ` gengdongjiu
2018-01-09 17:30 ` Peter Maydell
2018-01-11 5:59 ` gengdongjiu
2018-01-11 9:53 ` [Qemu-devel] [Qemu-arm] " Peter Maydell
2018-01-11 10:33 ` gengdongjiu
2018-01-13 5:24 ` [Qemu-devel] " gengdongjiu
2018-01-13 8:27 ` gengdongjiu
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 6/9] Move related hwpoison page functions to accel/kvm/ folder Dongjiu Geng
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 7/9] ARM: ACPI: Add GPIO notification type for hardware RAS error Dongjiu Geng
2017-12-28 14:53 ` Igor Mammedov
2018-01-03 3:48 ` gengdongjiu
2018-01-03 13:36 ` Igor Mammedov
2018-01-04 4:55 ` gengdongjiu
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 8/9] hw/arm/virt: Add RAS platform version for migration Dongjiu Geng
2017-12-28 14:58 ` Igor Mammedov
2018-01-03 4:02 ` gengdongjiu
2018-01-09 15:42 ` Peter Maydell
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 9/9] target-arm: kvm64: handle SIGBUS signal from kernel or KVM Dongjiu Geng
2017-12-28 15:07 ` Igor Mammedov
2018-01-03 9:13 ` gengdongjiu
2018-01-03 13:44 ` Igor Mammedov
2018-01-04 6:31 ` gengdongjiu
2018-01-09 17:14 ` Peter Maydell
2018-01-10 11:56 ` gengdongjiu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFEAcA--f5eK0_zij55o09M+FyRUVH+Pnwc3tsT6rLm1kpvbBw@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=christoffer.dall@linaro.org \
--cc=ehabkost@redhat.com \
--cc=gengdongjiu@huawei.com \
--cc=huangshaoyu@huawei.com \
--cc=imammedo@redhat.com \
--cc=james.morse@arm.com \
--cc=kvm@vger.kernel.org \
--cc=marc.zyngier@arm.com \
--cc=mst@redhat.com \
--cc=mtosatti@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=xuwei5@hisilicon.com \
--cc=zhaoshenglong@huawei.com \
--cc=zhengqiang10@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).