From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1wmK-0003nV-9N for qemu-devel@nongnu.org; Wed, 24 Jul 2013 06:58:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1wmI-00055l-4R for qemu-devel@nongnu.org; Wed, 24 Jul 2013 06:58:44 -0400 Received: from mail-ea0-f173.google.com ([209.85.215.173]:58786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1wmH-00054v-Uj for qemu-devel@nongnu.org; Wed, 24 Jul 2013 06:58:42 -0400 Received: by mail-ea0-f173.google.com with SMTP id g10so157508eak.18 for ; Wed, 24 Jul 2013 03:58:39 -0700 (PDT) Date: Wed, 24 Jul 2013 12:58:36 +0200 From: Vasilis Liaskovitis Message-ID: <20130724105836.GA8177@dhcp-192-168-178-175.profitbricks.localdomain> References: <1374596592-7027-1-git-send-email-imammedo@redhat.com> <20130724095249.GA26559@localhost.localdomain> <20130724120246.3181d5b4@nial.usersys.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130724120246.3181d5b4@nial.usersys.redhat.com> Subject: Re: [Qemu-devel] [PATCH 00/16 RFC v6] ACPI memory hotplug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: Hu Tao , qemu-devel@nongnu.org, pbonzini@redhat.com On Wed, Jul 24, 2013 at 12:02:46PM +0200, Igor Mammedov wrote: > On Wed, 24 Jul 2013 17:52:50 +0800 > Hu Tao wrote: > > > v6 doesn't work here, things are going fine until online hotplugged > > memory in guest. > > > > steps: > > > > 1. qemu cmd: > > > > ./x86_64-softmmu/qemu-system-x86_64 -enable-kvm -m 512,maxmem=2G,slots=1 \ > > -hda /mnt/data/libvirt-images/hut-rhel6.3.img -L ../pc-bios-memhp/ > > > > (bios is from MST's acpi tree) > > > > 2. hot-plug a dimm: > > > > device_adddimm,id=d0,size=1G > > > > 3. online hotplugged memory(in guest): > > > > echo 'onlone' > /sys/devices/system/memory/memory/32/state > > > > then after several seconds the console prints error messages like: > > > > nommu_map_sg: overflow 107c15000+4096 of device mask ffffffff > > ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 > > ata1.00: cmd ca/00:10:d0:0d:a4/00:00:00:00:00/e0 tag 0 dma 8192 out > > res 50/00:00:08:09:e0/00:00:00:00:00/e0 Emask 0x40 (internal error) > > ata1.00: configured for MWDMA2 > > ata1: EH complete > > > > (repeat) > > > > and can't do any disk I/O. > Looks like a guest bug where it tries to use high memory but assumes low one. yes. Iirc booting the guest kernel with "swiotlb=force" option could also work around this. > if you boot guest with initial memory 4Gb then it wont hit issue or use FC18 > which doesn't have this problem. thanks, - Vasilis