A few more remarks : - tpm_register() must be called in hw/pc.c.
- you must also handle incomplete write and reads. Use something like unix_write() in vl.c and the equivalent for read. - The code seems to be Unix specific so it must be disabled for win32. Regards, Fabrice.