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

Re: [Xen-devel] [PATCH v2 1/5] vTPM: event channel bind interdomain with para/hvm virtual machine




> -----Original Message-----
> From: Daniel De Graaf [mailto:dgdegra@xxxxxxxxxxxxx]
> Sent: Tuesday, January 06, 2015 12:06 AM
> To: Xu, Quan; xen-devel@xxxxxxxxxxxxx
> Cc: samuel.thibault@xxxxxxxxxxxx; stefano.stabellini@xxxxxxxxxxxxx
> Subject: Re: [PATCH v2 1/5] vTPM: event channel bind interdomain with
> para/hvm virtual machine
> 
> On 12/30/2014 11:44 PM, Quan Xu wrote:[...]
> > diff --git a/extras/mini-os/tpmback.c b/extras/mini-os/tpmback.c
> [...]
> > +   domid = (domtype == T_DOMAIN_TYPE_HVM) ? 0 : tpmif->domid;
> 
> Unless I'm missing something, this still assumes that the HVM device model
> is located in domain 0, and so it will not work if a stub domain is used for
> qemu.
> 

QEMU is running in Dom0 as usual, so the domid is 0.
as similar to Linux PV frontend driver, this frontend driver is enabled in QEMU.


*ARCHITECTURE*
The architecture of stubdom vTPM for HVM virtual machine:

            +--------------------+
            | Windows/Linux DomU | ... (tpm_tis.ko)
            |        |  ^        |
            |        v  |        |
            |  Qemu tpm1.2 Tis   |   (Seabios patch will enable this TPM 1.2 
TIS, including  ACPI for 0xfed40000 -- / register enables)
            |        |  ^        |   (Seabios, I did not send out, maybe this 
is the missed.)
            |        v  |        |
            | XenStubdoms backend|
            +--------------------+
                     |  ^             (XenStubdoms backend/ XenDevOps are QEMU 
parts provide the glue for the TPM_TIS(Qemu frontend) to Xen
                                       stubdom vTPM domain)
                     v  |
            +--------------------+
            |      XenDevOps     |
            +--------------------+
                     |  ^
                     v  |
            +--------------------+
            |  mini-os/tpmback   |


Any doubt, feel free to contact. I will try my best to explain. I think your 
suggestions are very helpful in previous email(Oct. 31th, 2014. 
' Re: FW: [PATCH 1/6] vTPM: event channel bind interdomain with para/hvm 
virtual machine')
Maybe this is still a vague description :(

BTW, professor J. Wang(Wuhan University, China) and I have enabled TPM 2.0 
simulator for Linux, Maybe we will try to integrate with vtpm domain to provide
TPM 2.0 vtpm function for virtual machine in Q2 or later. 



Thanks 
Quan Xu















> --
> Daniel De Graaf
> National Security Agency

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


 


Rackspace

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