From: Pekka Enberg Subject: Re: [PATCH] kvm tools: Use mmap for working with disk image V2 Date: Mon, 11 Apr 2011 21:49:41 +0300 Message-ID: References: <1302351248-4853-1-git-send-email-levinsasha928@gmail.com> <20110411184102.GA5755@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Sasha Levin , kvm@vger.kernel.org, linux-fsdevel@vger.kernel.org, Ingo Molnar , Asias He , Cyrill Gorcunov To: Christoph Hellwig Return-path: In-Reply-To: <20110411184102.GA5755@infradead.org> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Mon, Apr 11, 2011 at 9:41 PM, Christoph Hellwig = wrote: > How do you plan to handle I/O errors or ENOSPC conditions? =A0Note th= at > shared writeable mappings are by far the feature in the VM/FS code > that is most error prone, including the impossiblity of doing sensibl= e > error handling. Good point. I reverted the commit. Thanks! On Mon, Apr 11, 2011 at 9:41 PM, Christoph Hellwig = wrote: > The version that accidentally used MAP_PRIVATE actually makes a lot o= f > sense for an equivalent of qemu's snapshot mode where the image is > readonly and changes are kept private as long as the amount of modifi= ed > blocks is small enough to not kill the host VM, but using shared > writeable mappings just sems dangerous. Yup, Sasha, mind submitting a MAP_PRIVATE version that's enabled with '--snapshot' (or equivalent) command line option. Pekka -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html