From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754203AbdHUNiC (ORCPT ); Mon, 21 Aug 2017 09:38:02 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:57274 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753499AbdHUNiA (ORCPT ); Mon, 21 Aug 2017 09:38:00 -0400 Subject: Re: system hung up when offlining CPUs To: Christoph Hellwig Cc: YASUAKI ISHIMATSU , tglx@linutronix.de, axboe@kernel.dk, mpe@ellerman.id.au, keith.busch@intel.com, peterz@infradead.org, LKML References: <20170809124213.0d9518bb@why.wild-wind.fr.eu.org> <20170821131809.GA17564@lst.de> From: Marc Zyngier Organization: ARM Ltd Message-ID: Date: Mon, 21 Aug 2017 14:37:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170821131809.GA17564@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/08/17 14:18, Christoph Hellwig wrote: > Can you try the patch below please? > > --- > From d5f59cb7a629de8439b318e1384660e6b56e7dd8 Mon Sep 17 00:00:00 2001 > From: Christoph Hellwig > Date: Mon, 21 Aug 2017 14:24:11 +0200 > Subject: virtio_pci: fix cpu affinity support > > Commit 0b0f9dc5 ("Revert "virtio_pci: use shared interrupts for > virtqueues"") removed the adjustment of the pre_vectors for the virtio > MSI-X vector allocation which was added in commit fb5e31d9 ("virtio: > allow drivers to request IRQ affinity when creating VQs"). This will > lead to an incorrect assignment of MSI-X vectors, and potential > deadlocks when offlining cpus. > > Signed-off-by: Christoph Hellwig > Fixes: 0b0f9dc5 ("Revert "virtio_pci: use shared interrupts for virtqueues") > Reported-by: YASUAKI ISHIMATSU Just gave it a go on an arm64 VM, and the behaviour seems much saner (the virtio queue affinity now spans the whole system). Tested-by: Marc Zyngier Thanks, M. -- Jazz is not dead. It just smells funny...