From: Keir Fraser Subject: Re: Re: Getting rid of xenbus_suspend(): tpmfront driver impacted? Date: Sun, 05 Nov 2006 18:00:26 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0939568390==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefan Berger Cc: xen-devel , xen-devel-bounces@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============0939568390== Content-type: multipart/alternative; boundary="B_3245594432_19834749" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3245594432_19834749 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable On 5/11/06 5:37 pm, "Stefan Berger" wrote: > As I said above, the last command (and there's only one command being > processed at a time for an OS) must have finished anyway. So a mechanisms > would have to be to tell the virtual TPM to catch that last response inst= ead > of sending it into /dev/vtpm on the backend side, and have that last resp= onse > serialized as part of the state *before* the VM is shut down. This might = be > much more complicated, though. >=20 If we could do this then we could simply send the ring-buffer page after th= e VTPM has quiesced. Then the response would be sitting there for tpmfront to pick up on resume, which would be much nicer than the tpmfront_suspend() =8Cwait for a bit=B9 loop. But I expect it=B9s a bit of a pain to integrate into the current save/restore code. >=20 >> > bit cheesy as far as I can see, so something more integrated in the >> > tpmfront/back protocol would be nice. >=20 > In terms of time needed for migration there won't be a difference. Is > supporting that .suspend really so problematic? Well, we are going to handle save/restore and migration failure by continuing execution of the original domain. In this case xenbus_resume() will not be executed, so tpmfront will (I think) hang. I suppose we could keep suspend() and also introduce a suspend_cancelled() hook... -- Keir --B_3245594432_19834749 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: [Xen-devel] Re: Getting rid of xenbus_suspend(): tpmfront driver= impacted? On 5/= 11/06 5:37 pm, "Stefan Berger" <stefanb@us.ibm.com> wrote:
As I said above, the last command (and there's only one comma= nd being processed at a time for an OS) must have finished anyway. So a mech= anisms would have to be to tell the virtual TPM to catch that last response = instead of sending it into /dev/vtpm on the backend side, and have that last= response serialized as part of the state *before* the VM is shut down. This= might be much more complicated, though.

If we could do this then we could simply send the ring= -buffer page after the VTPM has quiesced. Then the response would be sitting= there for tpmfront to pick up on resume, which would be much nicer than the= tpmfront_suspend() ‘wait for a bit’ loop. But I expect it’= ;s a bit of a pain to integrate into the current save/restore code.

> bit cheesy as far as I can see, so something more integrated in the > tpmfront/back protocol would be nice.


In terms of time needed for migrati= on there won't be a difference. Is supporting that .suspend really so proble= matic?

Well, we are going to handle save/restore and migration failure by continui= ng execution of the original domain. In this case xenbus_resume() will not b= e executed, so tpmfront will (I think) hang.

I suppose we could keep suspend() and also introduce a suspend_cancelled() = hook...

 -- Keir
--B_3245594432_19834749-- --===============0939568390== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0939568390==--