From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buYMg-0004ue-RM for qemu-devel@nongnu.org; Thu, 13 Oct 2016 01:15:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buYMe-0007xa-NS for qemu-devel@nongnu.org; Thu, 13 Oct 2016 01:15:33 -0400 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:33512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buYMe-0007x5-7U for qemu-devel@nongnu.org; Thu, 13 Oct 2016 01:15:32 -0400 Received: by mail-lf0-x234.google.com with SMTP id x79so119289796lff.0 for ; Wed, 12 Oct 2016 22:15:32 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20161012140442.GB15590@stefanha-x1.localdomain> References: <20161012140442.GB15590@stefanha-x1.localdomain> From: Stefan Hajnoczi Date: Thu, 13 Oct 2016 07:15:30 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] Async savevm using userfaultfd(2) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: John Snow , "Denis V. Lunev" , Rik van Riel , Andrea Arcangeli , "Dr. David Alan Gilbert" On Wed, Oct 12, 2016 at 4:04 PM, Stefan Hajnoczi wrote: > Perhaps this approach can be prototyped with mprotect and a SIGSEGV > handler if anyone wants to get async savevm going. I don't know if > there are any disadvantages to mprotecting guest RAM that the kvm kernel > module is using. Hopefully in-kernel devices and vhost will continue to > work. I woke up this morning with a strong feeling that a SIGSEGV handler won't work with vhost. The problem is that the QEMU process' SIGSEGV handler won't be called when the vhost kernel thread faults. Now I'm wondering whether userfaultfd will work together with vhost. Stefan