WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] pci-passthrough and filesystem corrupted

To: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] pci-passthrough and filesystem corrupted
From: Kazuki Nakajima <nkjm.kzk@xxxxxxxxx>
Date: Wed, 28 Apr 2010 22:16:41 +0900
Delivery-date: Wed, 28 Apr 2010 06:17:59 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:x-mailer:mime-version :subject:date; bh=XQuGEXr1pwAppCkWeyo+x0+gO7KkXbnoUPSK892WnzQ=; b=mMC5ElgAVsjSHsfQ2O2Qmtaqi9iGrgMSQBm0znu/zv5mkX1QQE6lL0dPXvIx9bQweW YlcM2LOYWMnfqyG//PnUzPl6dIzQahzBB1Itw0EAc2DxS7UW1NSZca9QRRe+eI0Zio30 g+cNqiaGqHsijqIxS6TYvfmMi1Y307KyqIj80=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding:x-mailer :mime-version:subject:date; b=o0NCWFD7NiXghxJyoOPkW4SKxQfWyXRw1H92oJaA6rBdI2Q9HIFM+4UgESGtq9Drh5 2zR2ZdrtqHbMd50DgrGmcBTejrg/1NMpwaAbYPZpvHLZ5zRADiaqruBZXFS6ovhJmWUo sYomrGIwWUyD8uHCSgCQTGgrJHU5ysnlJ8Ka4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
hi all,

I got Intel Core i7 860 and testing PCI-Passthrough on it with Xen 3.4.0.
My machine has onboard SATA controller and it has 6 port. 4 ports are owned by BDF 00:1f.2 and other 2 ports are owned by BDF 00:1f.5. (yes, it is multi-function)

I confirmed IO Virtualization being enabled from xm dmesg. (but some functions seems being enabled)
(XEN) Intel VT-d Snoop Control supported.
(XEN) Intel VT-d DMA Passthrough not supported.
(XEN) Intel VT-d Queued Invalidation supported.
(XEN) Intel VT-d Interrupt Remapping not supported.
(XEN) I/O virtualisation enabled
(XEN) I/O virtualisation for PV guests enabled

I decided to pass 00:1f.5 through one PVHVM guest.
I executed following script to hide this pci device from dom0.

BDF=0000:00:1f.5
# Load xen-pciback
modprobe xen-pciback
# Unbind a PCI function from its driver as necessary
[ ! -e /sys/bus/pci/devices/$BDF/driver/unbind ] || \
       echo -n $BDF > /sys/bus/pci/devices/$BDF/driver/unbind
# Add a new slot to the PCI Backend's list
echo -n $BDF > /sys/bus/pci/drivers/pciback/new_slot
# Now that the backend is watching for the slot, bind to it
echo -n $BDF > /sys/bus/pci/drivers/pciback/bind

And below is the output of xm pci-list-assignable-device

# xm pci-list-assignable-device
0000:00:1f.5

I thought it was ready to go. So i attached it to PVHVM guest.

# xm pci-attach [domU-id] 0000:00:1f.5

At the beginning, it seemed working well. But sometime later, i couldn't get any response from domU and dom0 and the messages outputted on dom0's console saying filesystem being corrupted. Any key could not be accepted and I force reboot it by pushing power button.

I did same test with Xen 4.0.0 but the result was same. Accurately, domU and dom0 stopped almost immediately as soon as i attached pci device in this case.

I suspect that using multi-function onboard SATA controller can occur this issue.

Any idea would be appreciated.

Thanks !

Kazuki
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>