Hello!

  Ninad wrote an emulator for TPM TIS on I2C bus and I was wondering how one 
could implement a test case for it so that we can for example read and write 
registers. All existing TPM test cases are using qtest API and we spawn a 
thread to emulate a TPM and use the qtest API to read/write the ISA TIS's MMIO 
registers. The test cases that I see for i2c are all using the qos type of API. 
I have tried to use both in a test case but I am not sure whether they go 
together at all (from the errors I have seen they don't go together). So what 
options would we have? I thought that one could maybe write an i2c driver to 
transfer bytes to the device but the i2c in hw/i2c/aspeed_i2c.c looks complex 
to reverse engineer to try to get a byte to a connected device. Do you have any 
other suggestions?

  Regards,
      Stefan

Reply via email to