On 2017/11/15 0:00, James Morse wrote:
>> +             * error has not been propagated
>> +             */
>> +            run->exit_reason = KVM_EXIT_EXCEPTION;
>> +            run->ex.exception = ESR_ELx_EC_SERROR;
>> +            run->ex.error_code = KVM_SEI_SEV_RECOVERABLE;
>> +            return 0;
> We should not pass RAS notifications to user space. The kernel either handles
> them, or it panics(). User space shouldn't even know if the kernel supports 
> RAS
> until it gets an MCEERR signal.
> 
> You're making your firmware-first notification an EL3->EL0 signal, bypassing 
> the OS.
> 
> If we get a RAS SError and there are no CPER records or values in the ERR 
> nodes,
> we should panic as it looks like the CPU/firmware is broken. (spurious RAS 
> errors)

Hi james,
  sorry to disturb you!

  do you think whether we need to set the guest ESR by user space?  if need, I 
need to
notify user space that there is a SError happen and need to set ESR for guest 
in some place of
KVM. so here I return a error code to user space. you mean we should not pass 
RAS notifications
to user space, so could you give some suggestion how to notify user space to 
set guest ESR.

Thanks a lot in advance.


> 
> 

Reply via email to