Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754271AbbHFQKt (ORCPT ); Thu, 6 Aug 2015 12:10:49 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:49660 "EHLO SMTP02.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753043AbbHFQKs (ORCPT ); Thu, 6 Aug 2015 12:10:48 -0400 X-IronPort-AV: E=Sophos;i="5.15,623,1432598400"; d="scan'208";a="292100739" Message-ID: <55C386E9.6060806@citrix.com> Date: Thu, 6 Aug 2015 17:10:17 +0100 From: David Vrabel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: "Jason A. Donenfeld" , Ian Campbell CC: , Paul McKenney , , Subject: Re: [Xen-devel] printk from softirq on xen: hard lockup References: <55C0F291.7060806@citrix.com> <55C330C7.6050204@citrix.com> In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-DLP: MIA2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1952 Lines: 62 On 06/08/15 16:58, Jason A. Donenfeld wrote: > On Thu, Aug 6, 2015 at 12:02 PM, David Vrabel wrote: >> Linux PV guests must use the "Xen PV" APIC driver. You need to >> investigate why your PV guest is not using this (although I'm surprised >> it works at all with the wrong one). > > Actually it appears this PV Guest is using the "flat" APIC driver > instead of the Xen APIC driver. > > But upon further investigation into why: > > arch/x86/xen/Makefile: > obj-$(CONFIG_XEN_DOM0) += apic.o vga.o > > It would appear that only dom0 gets to use the Xen APIC driver. > > What gives? Looks like the Makefile is wrong. Try this: 8<------------------ x86/xen: build "Xen PV" APIC driver for domU as well A PV domU also needs the Xen PV APIC driver but it was only built for CONFIG_XEN_DOM0=y. Signed-off-by: David Vrabel Cc: --- arch/x86/xen/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/xen/Makefile b/arch/x86/xen/Makefile index 7322755..4b6e29a 100644 --- a/arch/x86/xen/Makefile +++ b/arch/x86/xen/Makefile @@ -13,13 +13,13 @@ CFLAGS_mmu.o := $(nostackp) obj-y := enlighten.o setup.o multicalls.o mmu.o irq.o \ time.o xen-asm.o xen-asm_$(BITS).o \ grant-table.o suspend.o platform-pci-unplug.o \ - p2m.o + p2m.o apic.o obj-$(CONFIG_EVENT_TRACING) += trace.o obj-$(CONFIG_SMP) += smp.o obj-$(CONFIG_PARAVIRT_SPINLOCKS)+= spinlock.o obj-$(CONFIG_XEN_DEBUG_FS) += debugfs.o -obj-$(CONFIG_XEN_DOM0) += apic.o vga.o +obj-$(CONFIG_XEN_DOM0) += vga.o obj-$(CONFIG_SWIOTLB_XEN) += pci-swiotlb-xen.o obj-$(CONFIG_XEN_EFI) += efi.o -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/