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


Groups > linux.kernel > #1618623

Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS

From Laszlo Ersek <lersek@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS
Date 2017-04-07 11:30 +0200
Message-ID <ttyno-5g3-9@gated-at.bofh.it> (permalink)
References (10 earlier) <tqkqD-6nm-47@gated-at.bofh.it> <tqkqD-6nm-45@gated-at.bofh.it> <tteRH-5K-15@gated-at.bofh.it> <ttkNs-4Ff-27@gated-at.bofh.it> <ttshY-1au-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 04/07/17 04:52, gengdongjiu wrote:
> 
> On 2017/4/7 2:55, Laszlo Ersek wrote:

>> I'm unsure if, by "not fixed", you are saying
>>
>>   the number of CPER entries that fits in Error Status Data Block N is
>>   not *uniform* across 0 <= N <= 10 [1]
>>
>> or
>>
>>   the number of CPER entries that fits in Error Status Data Block N is
>>   not *known* in advance, for all of 0 <= N <= 10 [2]
>>
>> Which one is your point?
>>
>> If [1], that's no problem; you can simply sum the individual error
>> status data block sizes in advance, and allocate "etc/hardware_errors"
>> accordingly, using the total size.
>>
>> (Allocating one shared fw_cfg blob for all status data blocks is more
>> memory efficient, as each ALLOCATE command will allocate whole pages
>> (rounded up from the actual blob size).)
>>
>> If your point is [2], then splitting the error status data blocks to
>> separate fw_cfg blobs makes no difference: regardless of whether we try
>> to place all the error status data blocks in a single fw_cfg blob, or in
>> separate fw_cfg blobs, the individual data block cannot be resized at OS
>> runtime, so there's no way to make it work.
>>
> My Point is [2]. The HEST(Hardware Error Source Table) table format is here:
> https://wiki.linaro.org/LEG/Engineering/Kernel/RAS/APEITables#Hardware_Error_Source_Table_.28HEST.29
> 
> Now I understand your thought.

But if you mean [2], then I am confused, with regard to firmware on
physical hardware. Namely, even on physical machines, the firmware has
to estimate, in advance, the area size that will be needed for CPERs,
doesn't it? And once the firmware allocates that memory area, it cannot
be resized at OS runtime. If there are more CPERs at runtime (due to
hardware errors) than the firmware allocated room for, they must surely
wrap around in the preallocated buffer (like in a ring buffer). Isn't
that correct?

On the diagrams that you linked above (great looking diagrams BTW!), I
see CPER in two places (it is helpfully shaded red):

- to the right of BERT; the CPER is part of a box that is captioned
"firmware reserved memory"

- to the right of HEST; again the CPER is part of a box that is
captioned "firmware reserved memory"

So, IMO, when QEMU has to guesstimate the room for CPERs in advance,
that doesn't differ from the physical firmware case. In QEMU maybe you
can let the user specify the area size on the command line, with a
machine type property or similar.

Thanks
Laszlo

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


Thread

Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS James Morse <james.morse@arm.com> - 2017-03-28 12:50 +0200
  Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS Christoffer Dall <cdall@linaro.org> - 2017-03-28 13:30 +0200
    Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS Peter Maydell <peter.maydell@linaro.org> - 2017-03-28 13:40 +0200
      Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS James Morse <james.morse@arm.com> - 2017-03-28 15:30 +0200
    Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS gengdongjiu <gengdongjiu@huawei.com> - 2017-03-28 14:20 +0200
      Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS James Morse <james.morse@arm.com> - 2017-03-28 15:50 +0200
        Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS gengdongjiu <gengdongjiu@huawei.com> - 2017-03-29 11:40 +0200
          Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS Laszlo Ersek <lersek@redhat.com> - 2017-03-29 14:00 +0200
            Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-29 15:00 +0200
              Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS Laszlo Ersek <lersek@redhat.com> - 2017-03-29 15:40 +0200
                Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS Punit Agrawal <punit.agrawal@arm.com> - 2017-03-29 16:00 +0200
                Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-29 16:00 +0200
            Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS gengdongjiu <gengdongjiu@huawei.com> - 2017-04-06 14:40 +0200
              Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS Laszlo Ersek <lersek@redhat.com> - 2017-04-06 21:00 +0200
                Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS gengdongjiu <gengdongjiu@huawei.com> - 2017-04-07 05:00 +0200
                Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS Laszlo Ersek <lersek@redhat.com> - 2017-04-07 11:30 +0200
          Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS gengdongjiu <gengdj.1984@gmail.com> - 2017-03-29 16:40 +0200
            Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS Christoffer Dall <cdall@linaro.org> - 2017-03-29 16:50 +0200
              Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS Laszlo Ersek <lersek@redhat.com> - 2017-03-29 17:40 +0200
                Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS Christoffer Dall <cdall@linaro.org> - 2017-03-29 19:50 +0200
                Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS gengdongjiu <gengdongjiu@huawei.com> - 2017-03-30 03:30 +0200
    Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS Christoffer Dall <cdall@linaro.org> - 2017-03-28 14:30 +0200
      Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS Christoffer Dall <cdall@linaro.org> - 2017-03-28 15:50 +0200

csiph-web