[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] x86/MCE: sanitize domain/vcpu ID handling



>>> On 23.02.17 at 11:01, <haozhong.zhang@xxxxxxxxx> wrote:
> On 02/23/17 02:28 -0700, Jan Beulich wrote:
>> --- a/xen/arch/x86/cpu/mcheck/mcaction.c
>> +++ b/xen/arch/x86/cpu/mcheck/mcaction.c
>> @@ -100,7 +100,8 @@ mc_memerr_dhandler(struct mca_binfo *bin
>>                      goto vmce_failed;
>>                  }
>>  
>> -                if ( boot_cpu_data.x86_vendor == X86_VENDOR_INTEL )
>> +                if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL ||
>> +                    global->mc_vcpuid == XEN_MC_VCPUID_INVALID)
>>                      vmce_vcpuid = VMCE_INJECT_BROADCAST;
>>                  else
>>                      vmce_vcpuid = global->mc_vcpuid;
> 
> If an invalid vcpuid is got on AMD machine, should we report error
> or inject to a default vcpu (vcpu0?) ?

Well, broadcasting in that case seems the best option to me,
but let's add AMD maintainers to Cc.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.