[SLOF] [PATCH v3 17/17] Set the driver in pseudo failure state after handover

Stefan Berger stefanb at linux.vnet.ibm.com
Tue Dec 22 02:40:52 AEDT 2015


On 12/16/2015 04:25 AM, Thomas Huth wrote:
> On 30/11/15 23:02, Stefan Berger wrote:
>> From: Stefan Berger <stefanb at linux.vnet.ibm.com>
>>
>> One sml-handover has been called, set the driver into
>> pseudo failure state.
>>
>> Signed-off-by: Stefan Berger <stefanb at linux.vnet.ibm.com>
>> ---
>> diff --git a/lib/libtpm/tpm_drivers.c b/lib/libtpm/tpm_drivers.c
>> index f3c28ef..894a8e8 100644
>> --- a/lib/libtpm/tpm_drivers.c
>> +++ b/lib/libtpm/tpm_drivers.c
>> @@ -445,6 +445,11 @@ vtpm_drv_error spapr_vtpm_get_error(void)
>>   	return vtpm_drv_error_get();
>>   }
>>   
>> +void spapr_vtpm_set_error(vtpm_drv_error errcode)
>> +{
>> +	spapr_vtpm.driver_error = errcode;
>> +}
>> +
>>   /**** higher layer interface ****/
>>   
>>   bool spapr_is_vtpm_present(void)
>> diff --git a/lib/libtpm/tpm_drivers.h b/lib/libtpm/tpm_drivers.h
>> index b89c6b0..2306f24 100644
>> --- a/lib/libtpm/tpm_drivers.h
>> +++ b/lib/libtpm/tpm_drivers.h
>> @@ -86,5 +86,6 @@ void spapr_vtpm_set_durations(const uint32_t durations[TPM_NUM_DURATIONS]);
>>   uint32_t spapr_vtpm_get_buffersize(void);
>>   vtpm_drv_state spapr_vtpm_get_state(void);
>>   vtpm_drv_error spapr_vtpm_get_error(void);
>> +void spapr_vtpm_set_error(vtpm_drv_error errcode);
>>   
>>   #endif /* TPM_DRIVERS_H */
> Reviewed-by: Thomas Huth <thuth at redhat.com>

I have now applied your comments and reviewed-by's to the patches. I'll 
post v4 then but will also repost the vTPM patches on the QEMU mailing list.

Thanks again!
    Stefan



More information about the SLOF mailing list