From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerhard Wiesinger Subject: Re: [Qemu-devel] [PATCH 0/2] Fix wide ioport access cracking Date: Thu, 11 Aug 2011 18:08:18 +0200 (CEST) Message-ID: References: <1313048426-17273-1-git-send-email-avi@redhat.com> <4E43927B.90606@redhat.com> <4E4392F7.8020002@redhat.com> <4E43A482.5040401@redhat.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from chello084112167138.7.11.vie.surfer.at ([84.112.167.138]:52514 "EHLO wiesinger.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752537Ab1HKQKj (ORCPT ); Thu, 11 Aug 2011 12:10:39 -0400 In-Reply-To: <4E43A482.5040401@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, 11 Aug 2011, Avi Kivity wrote: > On 08/11/2011 12:01 PM, Gerhard Wiesinger wrote: >> Hello Avi, >> >> #0 0x0000003a060328f5 in raise () from /lib64/libc.so.6 >> #1 0x0000003a060340d5 in abort () from /lib64/libc.so.6 >> #2 0x0000003a0602b8b5 in __assert_fail () from /lib64/libc.so.6 >> #3 0x0000000000435339 in memory_region_del_subregion (mr=> out>, subregion=) at >> /root/download/qemu/git/qemu-kvm-test/memory.c:1168 >> #4 0x000000000041eb9b in pci_update_mappings (d=0x1a90bc0) at >> /root/download/qemu/git/qemu-kvm-test/hw/pci.c:1134 >> #5 0x0000000000420a9c in pci_default_write_config (d=0x1a90bc0, addr=4, >> val=, l=) at >> /root/download/qemu/git/qemu-kvm-test/hw/pci.c:1213 >> #6 0x00000000004329a6 in kvm_handle_io (env=0x1931af0) at >> /root/download/qemu/git/qemu-kvm-test/kvm-all.c:858 >> #7 kvm_cpu_exec (env=0x1931af0) at >> /root/download/qemu/git/qemu-kvm-test/kvm-all.c:997 >> #8 0x000000000040bd4a in qemu_kvm_cpu_thread_fn (arg=0x1931af0) at >> /root/download/qemu/git/qemu-kvm-test/cpus.c:806 >> #9 0x0000003a06807761 in start_thread () from /lib64/libpthread.so.0 >> #10 0x0000003a060e098d in clone () from /lib64/libc.so.6 >> > > In frame 4, can you print out i, *r, and d->io_regions[0 through 6]? Some of > them may be optimized out unfortunately. See below. Ciao, Gerhard (gdb) frame 4 #4 0x000000000041eb9b in pci_update_mappings (d=0x1a90bc0) at /root/download/qemu/git/qemu-kvm-test/hw/pci.c:1134 1134 memory_region_del_subregion(r->address_space, r->memory); (gdb) print i $1 = (gdb) print *r $2 = {addr = 22058952032257, size = 32, filtered_size = 171717340864446496, type = 1 '\001', memory = 0x1a90000, address_space = 0x200019282f0} (gdb) print d->io_regions[0] $3 = {addr = 22058952032257, size = 32, filtered_size = 171717340864446496, type = 1 '\001', memory = 0x1a90000, address_space = 0x200019282f0} (gdb) print d->io_regions[1] $4 = {addr = 17113088, size = 32, filtered_size = 32, type = 0 '\000', memory = 0x1a911c8, address_space = 0x1920000} (gdb) print d->io_regions[2] $5 = {addr = 0, size = 0, filtered_size = 0, type = 0 '\000', memory = 0x0, address_space = 0x0} (gdb) print d->io_regions[3] $6 = {addr = 0, size = 0, filtered_size = 0, type = 239 '\357', memory = 0x0, address_space = 0x0} (gdb) print d->io_regions[4] $7 = {addr = 0, size = 0, filtered_size = 0, type = 0 '\000', memory = 0x0, address_space = 0x0} (gdb) print d->io_regions[5] $8 = {addr = 0, size = 0, filtered_size = 0, type = 0 '\000', memory = 0x0, address_space = 0x0} (gdb) print d->io_regions[6] $9 = {addr = 0, size = 0, filtered_size = 0, type = 0 '\000', memory = 0x0, address_space = 0x0} -- http://www.wiesinger.com/