From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ujb6Y-0007yW-2K for qemu-devel@nongnu.org; Mon, 03 Jun 2013 16:11:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ujb6W-0004qd-De for qemu-devel@nongnu.org; Mon, 03 Jun 2013 16:11:45 -0400 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:35636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ujb6W-0004qU-61 for qemu-devel@nongnu.org; Mon, 03 Jun 2013 16:11:44 -0400 Received: by mail-wi0-f173.google.com with SMTP id hi5so3086350wib.12 for ; Mon, 03 Jun 2013 13:11:43 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <51ACF872.1080007@redhat.com> Date: Mon, 03 Jun 2013 22:11:30 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <11353237.fLVsHzmD7c@al> <878v2rf5iy.fsf@codemonkey.ws> In-Reply-To: <878v2rf5iy.fsf@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] QEMU aborts since "kvm: support using KVM_MEM_READONLY flag for regions" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Jordan Justen , Peter Wu , qemu-devel@nongnu.org, Gleb Natapov , Xiao Guangrong Il 03/06/2013 19:49, Anthony Liguori ha scritto: > Peter Wu writes: > >> Hi, >> >> With the current git source (f10acc8b38d65a66ffa0588a036489d7fa6a593e), >> `qemu-system-x86_64 -enable-kvm` fails to run with the following error: >> >> kvm_set_phys_mem: error unregistering overlapping slot: Invalid argument >> >> After this message, qemu aborts. Reverting the following commit on top of >> master makes the bug go away. Removing the `-enable-kvm` option also >> allows QEMU to operate, but without KVM. > > I also noted this on F19 this weekend. > > Is anyone else seeing this on more recent kernels? Yes, it's caused by 3.9. Gleb and I decided to consider this (raising an error when removing a non-existent slot) a feature since it never happened as far as we know on released versions of QEMU/nlkt/whatever. Gleb queued a patch in uq/master, I think he'll be sending a pull request soon. Paolo