From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui5sI-0007uo-AO for qemu-devel@nongnu.org; Thu, 30 May 2013 12:38:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ui5sD-00065r-JT for qemu-devel@nongnu.org; Thu, 30 May 2013 12:38:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui5sD-00065f-9j for qemu-devel@nongnu.org; Thu, 30 May 2013 12:38:45 -0400 Date: Thu, 30 May 2013 12:08:32 -0400 From: Luiz Capitulino Message-ID: <20130530120832.5abe1c65@redhat.com> In-Reply-To: <51A77838.4060707@redhat.com> References: <20130530114604.4b12cb22@redhat.com> <51A77838.4060707@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [BUG]: kvm_set_phys_mem: error unregistering overlapping slot: Invalid argument List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: jordan.l.justen@intel.com, qemu-devel , xiaoguangrong@linux.vnet.ibm.com On Thu, 30 May 2013 18:03:04 +0200 Paolo Bonzini wrote: > Il 30/05/2013 17:46, Luiz Capitulino ha scritto: > > The culprit is commit: > > > > commit 235e8982ad393e5611cb892df54881c872eea9e1 > > Author: Jordan Justen > > Date: Wed May 29 01:27:26 2013 -0700 > > > > kvm: support using KVM_MEM_READONLY flag for regions > > > > I'm running 3.9.2-200.fc18, btw. And, error checking is missing on the > > first call to kvm_vm_ioctl(). > > > > Reproducer? I just try to start a VM (HEAD 87d23f7): ~/work/virt/ sudo ./qemu-qmp -drive file=disks/test.img,if=virtio,cache=none,aio=native -enable-kvm -m 1G -monitor stdio -cpu host -snapshot QEMU 1.5.50 monitor - type 'help' for more information (qemu) kvm_set_phys_mem: error unregistering overlapping slot: Invalid argument ~/work/virt/