xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libxl: Don't insert PCI device into xenstore for HVM guests
@ 2015-05-29  7:59 Ross Lagerwall
  2015-05-29  9:41 ` Wei Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Ross Lagerwall @ 2015-05-29  7:59 UTC (permalink / raw)
  To: xen-devel
  Cc: Ian Jackson, Ross Lagerwall, Wei Liu, Ian Campbell,
	Stefano Stabellini

When doing passthrough of a PCI device for an HVM guest, don't insert
the device into xenstore, otherwise pciback attempts to use it which
conflicts with QEMU.

This manifests itself such that the first time a device is passed to a
domain, it succeeds. Subsequent attempts fail unless the device is
unbound from pciback or the machine rebooted.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
---
 tools/libxl/libxl_pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c
index e0743f8..2552889 100644
--- a/tools/libxl/libxl_pci.c
+++ b/tools/libxl/libxl_pci.c
@@ -994,7 +994,7 @@ out:
         }
     }
 
-    if (!starting)
+    if (!starting && type == LIBXL_DOMAIN_TYPE_PV)
         rc = libxl__device_pci_add_xenstore(gc, domid, pcidev, starting);
     else
         rc = 0;
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2015-06-10 20:10 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-29  7:59 [PATCH] libxl: Don't insert PCI device into xenstore for HVM guests Ross Lagerwall
2015-05-29  9:41 ` Wei Liu
2015-05-29  9:43   ` Ross Lagerwall
2015-05-29  9:50     ` Wei Liu
2015-05-29  9:54       ` Ross Lagerwall
2015-05-29 10:24         ` Wei Liu
2015-06-01 10:12 ` George Dunlap
2015-06-01 15:26 ` Konrad Rzeszutek Wilk
2015-06-01 15:43   ` Ross Lagerwall
2015-06-01 15:58     ` Konrad Rzeszutek Wilk
2015-06-01 15:59     ` Sander Eikelenboom
2015-06-01 16:03     ` Malcolm Crossley
2015-06-01 17:55       ` Konrad Rzeszutek Wilk
2015-06-02 10:06         ` Malcolm Crossley
2015-06-02 14:34           ` Konrad Rzeszutek Wilk
2015-06-02 15:48             ` Malcolm Crossley
2015-06-10 20:10               ` Konrad Rzeszutek Wilk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).