From: Isaku Yamahata Subject: Re: [PATCH 0/2][RFC] postcopy migration: Linux char device for postcopy Date: Fri, 30 Dec 2011 00:53:28 +0900 Message-ID: <20111229155328.GK19274@valinux.co.jp> References: <4EFC4DF0.2040708@redhat.com> <20111229123922.GG19274@valinux.co.jp> <4EFC634E.10406@redhat.com> <20111229134920.GH19274@valinux.co.jp> <4EFC70BA.1080808@redhat.com> <20111229141802.GI19274@valinux.co.jp> <4EFC7AB8.807@redhat.com> <20111229144943.GJ19274@valinux.co.jp> <4EFC7F4F.9010202@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, qemu-devel@nongnu.org, t.hirofuchi@aist.go.jp, satoshi.itoh@aist.go.jp, Andrea Arcangeli To: Avi Kivity Return-path: Received: from mail.valinux.co.jp ([210.128.90.3]:41416 "EHLO mail.valinux.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752895Ab1L2Pxc (ORCPT ); Thu, 29 Dec 2011 10:53:32 -0500 Content-Disposition: inline In-Reply-To: <4EFC7F4F.9010202@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Dec 29, 2011 at 04:55:11PM +0200, Avi Kivity wrote: > On 12/29/2011 04:49 PM, Isaku Yamahata wrote: > > > > Great, then we agreed with list/reattach basically. > > > > (Maybe identity scheme needs reconsideration.) > > > > > > I guess we miscommunicated. Why is reattach needed? If you have the > > > fd, nothing else is needed. > > > > What if malicious process close the fd and does page fault intentionally? > > Unkillable process issue remains. > > I think we are talking not only qemu case but also general case. > > It's not unkillable. If you sleep with TASK_INTERRUPTIBLE then you can > process signals. This includes SIGKILL. Hmm, you said that the fault handler doesn't resolve the page fault. > > Don't resolve the page fault. It's up to the user/system to make sure > > it happens. qemu can easily do it by watching for the daemon's death > > and respawning it. To kill the process, the fault handler must return resolving the fault. It must return something. What do you expect? VM_FAULT_SIGBUS? zero page? -- yamahata