From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755360AbcAVVis (ORCPT ); Fri, 22 Jan 2016 16:38:48 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:27424 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755210AbcAVVga (ORCPT ); Fri, 22 Jan 2016 16:36:30 -0500 From: Boris Ostrovsky To: david.vrabel@citrix.com, konrad.wilk@oracle.com Cc: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, roger.pau@citrix.com, mcgrof@suse.com, Boris Ostrovsky Subject: [PATCH v1 06/12] xen/hvmlite: Initialize PCI Date: Fri, 22 Jan 2016 16:35:52 -0500 Message-Id: <1453498558-6028-7-git-send-email-boris.ostrovsky@oracle.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1453498558-6028-1-git-send-email-boris.ostrovsky@oracle.com> References: <1453498558-6028-1-git-send-email-boris.ostrovsky@oracle.com> X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HVMlite guests need PCI frontend and always have PV devices Signed-off-by: Boris Ostrovsky --- arch/x86/pci/xen.c | 2 +- arch/x86/xen/platform-pci-unplug.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c index ff31ab4..d847f7d 100644 --- a/arch/x86/pci/xen.c +++ b/arch/x86/pci/xen.c @@ -405,7 +405,7 @@ static void xen_teardown_msi_irq(unsigned int irq) int __init pci_xen_init(void) { - if (!xen_pv_domain() || xen_initial_domain()) + if ((!xen_pv_domain() && !xen_hvmlite) || xen_initial_domain()) return -ENODEV; printk(KERN_INFO "PCI: setting up Xen PCI frontend stub\n"); diff --git a/arch/x86/xen/platform-pci-unplug.c b/arch/x86/xen/platform-pci-unplug.c index 9586ff3..802ec90 100644 --- a/arch/x86/xen/platform-pci-unplug.c +++ b/arch/x86/xen/platform-pci-unplug.c @@ -73,8 +73,8 @@ bool xen_has_pv_devices(void) if (!xen_domain()) return false; - /* PV domains always have them. */ - if (xen_pv_domain()) + /* PV and HVMlite domains always have them. */ + if (xen_pv_domain() || xen_hvmlite) return true; /* And user has xen_platform_pci=0 set in guest config as -- 1.7.1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Ostrovsky Subject: [PATCH v1 06/12] xen/hvmlite: Initialize PCI Date: Fri, 22 Jan 2016 16:35:52 -0500 Message-ID: <1453498558-6028-7-git-send-email-boris.ostrovsky@oracle.com> References: <1453498558-6028-1-git-send-email-boris.ostrovsky@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aMjNd-0004EX-C0 for xen-devel@lists.xenproject.org; Fri, 22 Jan 2016 21:36:29 +0000 In-Reply-To: <1453498558-6028-1-git-send-email-boris.ostrovsky@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: david.vrabel@citrix.com, konrad.wilk@oracle.com Cc: Boris Ostrovsky , xen-devel@lists.xenproject.org, mcgrof@suse.com, linux-kernel@vger.kernel.org, roger.pau@citrix.com List-Id: xen-devel@lists.xenproject.org HVMlite guests need PCI frontend and always have PV devices Signed-off-by: Boris Ostrovsky --- arch/x86/pci/xen.c | 2 +- arch/x86/xen/platform-pci-unplug.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c index ff31ab4..d847f7d 100644 --- a/arch/x86/pci/xen.c +++ b/arch/x86/pci/xen.c @@ -405,7 +405,7 @@ static void xen_teardown_msi_irq(unsigned int irq) int __init pci_xen_init(void) { - if (!xen_pv_domain() || xen_initial_domain()) + if ((!xen_pv_domain() && !xen_hvmlite) || xen_initial_domain()) return -ENODEV; printk(KERN_INFO "PCI: setting up Xen PCI frontend stub\n"); diff --git a/arch/x86/xen/platform-pci-unplug.c b/arch/x86/xen/platform-pci-unplug.c index 9586ff3..802ec90 100644 --- a/arch/x86/xen/platform-pci-unplug.c +++ b/arch/x86/xen/platform-pci-unplug.c @@ -73,8 +73,8 @@ bool xen_has_pv_devices(void) if (!xen_domain()) return false; - /* PV domains always have them. */ - if (xen_pv_domain()) + /* PV and HVMlite domains always have them. */ + if (xen_pv_domain() || xen_hvmlite) return true; /* And user has xen_platform_pci=0 set in guest config as -- 1.7.1