Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1315289 > unrolled thread
| Started by | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| First post | 2016-01-22 22:40 +0100 |
| Last post | 2016-01-25 11:30 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v1 06/12] xen/hvmlite: Initialize PCI Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-01-22 22:40 +0100
Re: [PATCH v1 06/12] xen/hvmlite: Initialize PCI Roger Pau Monné <royger@FreeBSD.org> - 2016-01-25 11:30 +0100
| From | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| Date | 2016-01-22 22:40 +0100 |
| Subject | [PATCH v1 06/12] xen/hvmlite: Initialize PCI |
| Message-ID | <qTRB0-1oj-15@gated-at.bofh.it> |
HVMlite guests need PCI frontend and always have PV devices
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
---
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
[toc] | [next] | [standalone]
| From | Roger Pau Monné <royger@FreeBSD.org> |
|---|---|
| Date | 2016-01-25 11:30 +0100 |
| Message-ID | <qUMzg-2um-3@gated-at.bofh.it> |
| In reply to | #1315289 |
El 22/01/16 a les 22.35, Boris Ostrovsky ha escrit: > HVMlite guests need PCI frontend and always have PV devices We still haven't discussed how to perform pci-passthrough for HVMlite guests. I admit there's a big chance that we are going to use the PV pcifront driver but there's no guarantee about it yet, so I would just leave it out for the moment. Roger.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web