From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUgcx-00014G-Aa for qemu-devel@nongnu.org; Tue, 23 Apr 2013 13:03:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUgcv-0006Y8-Re for qemu-devel@nongnu.org; Tue, 23 Apr 2013 13:03:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUgcv-0006Xu-Ia for qemu-devel@nongnu.org; Tue, 23 Apr 2013 13:03:33 -0400 Message-ID: <5176BEB4.5070707@redhat.com> Date: Tue, 23 Apr 2013 19:02:44 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1366705795-24732-1-git-send-email-imammedo@redhat.com> <1366705795-24732-18-git-send-email-imammedo@redhat.com> In-Reply-To: <1366705795-24732-18-git-send-email-imammedo@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 17/21] introduce memory_region_get_address() and use it in kvm/ioapic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: peter.maydell@linaro.org, gleb@redhat.com, mst@redhat.com, jan.kiszka@siemens.com, qemu-devel@nongnu.org, lcapitulino@redhat.com, blauwirbel@gmail.com, kraxel@redhat.com, quintela@redhat.com, armbru@redhat.com, yang.z.zhang@intel.com, ehabkost@redhat.com, stefano.stabellini@eu.citrix.com, aderumier@odiso.com, anthony.perard@citrix.com, alex.williamson@redhat.com, rth@twiddle.net, kwolf@redhat.com, aliguori@us.ibm.com, claudio.fontana@huawei.com, afaerber@suse.de Il 23/04/2013 10:29, Igor Mammedov ha scritto: > kvm/ioapic is relying on the fact that SysBus device > maps mmio regions with offset counted from start of system memory. > But if ioapic's region is moved to another sub-region which doesn't > start at the beginning of system memory then using offset isn't correct. > > Fix kvm/ioapic by providing and using helper function that returns > absolute region address in respective address space. > > Signed-off-by: Igor Mammedov Looks good. Paolo