From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wen Congyang Subject: Re: [RFC Patch v3 03/18] don't zero out ioreq page Date: Fri, 12 Sep 2014 15:33:49 +0800 Message-ID: <5412A1DD.9010707@cn.fujitsu.com> References: <1409908261-18682-1-git-send-email-wency@cn.fujitsu.com> <1409908261-18682-4-git-send-email-wency@cn.fujitsu.com> <54099457.4040603@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54099457.4040603@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel , xen devel Cc: Ian Campbell , Ian Jackson , Jiang Yunhong , Dong Eddie , Paul Durrant , Yang Hongyang , Lai Jiangshan List-Id: xen-devel@lists.xenproject.org On 09/05/2014 06:45 PM, David Vrabel wrote: > On 05/09/14 10:10, Wen Congyang wrote: >> ioreq page may contain some pending I/O requests, and we need to >> handle the pending I/O req after migration. >> >> TODO: >> 1. update qemu to handle the pending I/O req > > Under what conditions can there be pending I/O? A domain suspend should > not complete until any I/O accesses are complete. IIRC, I print ioreq.state after suspending vm, and ioreq.state can be STATE_IOREQ_NONE, STATE_IOREQ_READY or STATE_IORESP_READY. If the state is STATE_IOREQ_READY, we should kick vcpu event channel on resume after migration. But I test it again today, the state is always STATE_IOREQ_NONE... If the state is always STATE_IOREQ_NONE, no need to touch hypervisor/Qemu to handle pending I/O req(state is STATE_IOREQ_READY). Thanks Wen Congyang > > Suspending a domain that's part-way through an instruction seems mad to > me -- how are you supposed to capture this sort of state? > > David > . >