From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JrwJW-0001pJ-Pk for qemu-devel@nongnu.org; Fri, 02 May 2008 10:32:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JrwJV-0001og-Bx for qemu-devel@nongnu.org; Fri, 02 May 2008 10:32:42 -0400 Received: from [199.232.76.173] (port=53482 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JrwJV-0001oc-5D for qemu-devel@nongnu.org; Fri, 02 May 2008 10:32:41 -0400 Received: from py-out-1112.google.com ([64.233.166.181]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JrwJV-0004Ez-16 for qemu-devel@nongnu.org; Fri, 02 May 2008 10:32:41 -0400 Received: by py-out-1112.google.com with SMTP id u52so2339604pyb.10 for ; Fri, 02 May 2008 07:32:39 -0700 (PDT) Message-ID: <481B2603.3050800@codemonkey.ws> Date: Fri, 02 May 2008 09:32:35 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <200804282258.08426.nadim@khemir.net> <481AF262.4080305@qumranet.com> In-Reply-To: <481AF262.4080305@qumranet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [kvm-devel] Feedback and errors Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: nadim khemir , kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org Avi Kivity wrote: > nadim khemir wrote: > >> Hi, great work. >> >> While playing with kvm-qemu I noticed a few points that might be of interrest: >> >> 1/ -loadvm and -snapshot don't work together. It works as if -loadvm wasn't >> passed as argument >> >> 2/ two instances of kvm can be passed the same -hda. There is no locking >> whatsoever. This messes up things seriously. >> >> >> > > These two are upstream qemu problems. Copying qemu-devel. > > I guess using file locking by default would improve the situation, and > we can add a -drive ...,exclusive=no option for people playing with > cluster filesystems. > This is not a situation where the user has a reasonable expectation of what will happen that we violate. If the user is unhappy with the results, it's because the user made a mistake. FWIW, the whole override thing for Xen has been an endless source of pain. It's very difficult (if not impossible) to accurately determine if someone else is using the disk. Also, it tends to confuse people trying to do something legitimate more often than helping someone doing something stupid. I very frequently run multiple VMs with the same disk. I do it strictly for the purposes of benchmarking. There are ways to share a disk without using a clustered filesystem. If a higher level management tool wants to enforce a policy (like libvirt), then let it. We should not be enforcing policies within QEMU though. Regards, Anthony Liguori