From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoffer Dall Subject: Re: [RFC PATCH 00/45] KVM: arm/arm64: Rework virtual GIC emulation Date: Wed, 30 Mar 2016 15:56:51 +0200 Message-ID: <20160330135651.GJ4126@cbox> References: <1458871508-17279-1-git-send-email-andre.przywara@arm.com> <56FA7F29.4060005@arm.com> <56FBBBC2.6010602@arm.com> <56FBBDFB.7080308@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andre Przywara , Marc Zyngier , Eric Auger , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org To: Vladimir Murzin Return-path: Received: from mail-wm0-f41.google.com ([74.125.82.41]:34272 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753532AbcC3N4x (ORCPT ); Wed, 30 Mar 2016 09:56:53 -0400 Received: by mail-wm0-f41.google.com with SMTP id p65so184563067wmp.1 for ; Wed, 30 Mar 2016 06:56:52 -0700 (PDT) Content-Disposition: inline In-Reply-To: <56FBBDFB.7080308@arm.com> Sender: kvm-owner@vger.kernel.org List-ID: Hi Vladimir, On Wed, Mar 30, 2016 at 12:52:27PM +0100, Vladimir Murzin wrote: > On 30/03/16 12:42, Vladimir Murzin wrote: > > On 29/03/16 14:12, Vladimir Murzin wrote: > >> Hi Andre, > >> > >> On 25/03/16 02:04, Andre Przywara wrote: > >>> Please have a look at the series, review it and give the code some > >>> serious testing (and possibly debugging). All feedback is appreciated. > >> > >> I see that with the new vgic implementation kvmtool starts throwing: > >> > >> kvm [1273]: Unable to register VGICv3 redist MMIO regions > >> > > > > It comes from kvm_io_bus_register_dev() > > > > if (bus->dev_count - bus->ioeventfd_count > NR_IOBUS_DEVS - 1) > > return -ENOSPC; > > > > with bus->dev_count being 1000 > > > > [] kvm_io_bus_register_dev+0x130/0x148 > > [] kvm_vgic_register_mmio_region+0xac/0xdc > > [] vgic_register_redist_regions+0xb8/0x158 > > [] vgic_v3_map_resources+0x5c/0xf0 > > [] kvm_vgic_map_resources+0x40/0x84 > > [] kvm_arch_vcpu_ioctl_run+0x3f0/0x400 > > [] kvm_vcpu_ioctl+0x2d4/0x6ec > > [] do_vfs_ioctl+0xb4/0x760 > > [] SyS_ioctl+0x84/0x98 > > [] el0_svc_naked+0x24/0x28 > > > > and one more thing I've forgotten to mention... something odd happens on > destroy path > > INFO: task kvm-vcpu-0:1123 blocked for more than 120 seconds. > Tainted: G W 4.5.0-rc6+ #432 > "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. > kvm-vcpu-0 D ffffffc000086bcc 0 1123 1114 0x00000008 > Call trace: > [] __switch_to+0x90/0xa4 > [] __schedule+0x188/0x59c > [] schedule+0x3c/0xa0 > [] schedule_preempt_disabled+0x20/0x38 > [] __mutex_lock_slowpath+0xc4/0x148 > [] mutex_lock+0x44/0x5c > [] kvm_vgic_destroy+0x20/0xb0 > [] vgic_v3_map_resources+0xa8/0xf0 > [] kvm_vgic_map_resources+0x40/0x84 > [] kvm_arch_vcpu_ioctl_run+0x3f0/0x400 > [] kvm_vcpu_ioctl+0x2d4/0x6ec > [] do_vfs_ioctl+0xb4/0x760 > [] SyS_ioctl+0x84/0x98 > [] el0_svc_naked+0x24/0x28 > Is this also with many many VCPUs or in general? Thanks, -Christoffer