B
ben001
Guest
I am trying to pass a sas controller to a osol vm, has anyone got this working?
I followed the instructions here http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM to build the kernel with the correct options. I don't see anything in dmesg about iommu but i do see the following for DMAR. This is a supermicro X8ST3-F motherboard with the latest bios and vt-d enabled.
I get the following errors when i boot osol build 133
and this error if i try to pass the controller into a windows 2008R2 vm (with osol shutdown), there are no devices on port 0 of the controller.
and finally this error and stalls when trying to boot up a gentoo vm
dmesg shows shows that i have successfully unbound the device and bound it to the stub driver with this code
pveversion
lspci
vm configuration
Am i missing something?
I followed the instructions here http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM to build the kernel with the correct options. I don't see anything in dmesg about iommu but i do see the following for DMAR. This is a supermicro X8ST3-F motherboard with the latest bios and vt-d enabled.
Code:
dmesg | grep -e DMAR -e IOMMU
ACPI: DMAR 00000000df79e0d0 00120 (v01 AMI OEMDMAR 00000001 MSFT 00000097)
Code:
WARNING: /pci@0,0/pci15d9,5@5 (mpt0):
unknown ioc_status = 0
scsi_state = 0, transfer count = 0, scsi_status = 0
WARNING: /pci@0,0/pci15d9,5@5 (mpt0):
NULL command returnedas address reply int slot 0, function:0
WARNING: /pci@0,0/pci15d9,5@5 (mpt0):
Disconnected command timeout for Target 0
WARNING: /pci@0,0/pci15d9,5@5 (mpt0):
NULL command returnedas address reply int slot 0, function:0
WARNING: /pci@0,0/pci15d9,5@5 (mpt0):
NULL command returnedas address reply int slot 0, function:0
WARNING: /pci@0,0/pci15d9,5@5 (mpt0):
NULL command returnedas address reply int slot 0, function:0
WARNING: /pci@0,0/pci15d9,5@5 (mpt0):
NULL command returnedas address reply int slot 0, function:0
etc
Code:
The driver detected a controller error on \Device\RaidPort0.
Code:
scanning for mptsas...scsi_transport_sas,
Code:
echo "[FONT=Courier New]1000[/FONT] [FONT=Courier New]0058[/FONT]" > /sys/bus/pci/drivers/pci-stub/new_id
echo 0000:05:00.0 > /sys/bus/pci/devices/0000:05:00.0/driver/unbind
echo 0000:05:00.0 > /sys/bus/pci/drivers/pci-stub/bind
Code:
dmesg
mptsas 0000:05:00.0: PCI INT A disabled
pci-stub 0000:05:00.0: claimed by stub
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
device vmtab101i0 entered promiscuous mode
vmbr0: port 2(vmtab101i0) entering forwarding state
pci-stub 0000:05:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
pci-stub 0000:05:00.0: restoring config space at offset 0x1 (was 0x40100000, writing 0x40100143)
alloc irq_desc for 45 on node -1
alloc kstat_irqs on node -1
pci-stub 0000:05:00.0: irq 45 for MSI/MSI-X
pci-stub 0000:05:00.0: irq 45 for MSI/MSI-X
kvm:2872 freeing invalid memtype fadfe000-fadff000
vmtab101i0: no IPv6 routers present
Code:
pve-manager: 1.5-8 (pve-manager/1.5/4674)
running kernel: 2.6.32-1-pve
proxmox-ve-2.6.32: 1.5-4
pve-kernel-2.6.32-1-pve: 2.6.32-4
pve-kernel-2.6.18-2-pve: 2.6.18-5
qemu-server: 1.1-11
pve-firmware: 1.0-3
libpve-storage-perl: 1.0-10
vncterm: 0.9-2
vzctl: 3.0.23-1pve8
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.11.1-2
ksm-control-daemon: 1.0-3
Code:
00:00.0 Host bridge: Intel Corporation 5520/5500/X58 I/O Hub to ESI Port (rev 13)
00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 13)
00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 13)
00:05.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 5 (rev 13)
00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 13)
00:09.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 9 (rev 13)
00:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers (rev 13)
00:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 13)
00:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 13)
00:14.3 PIC: Intel Corporation 5520/5500/X58 I/O Hub Throttle Registers (rev 13)
00:16.0 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.1 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.2 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.3 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.4 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.5 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.6 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.7 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:1a.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
00:1a.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5
00:1a.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6
00:1a.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1
00:1c.1 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Port 2
00:1d.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
00:1d.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
00:1d.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
00:1d.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIR (ICH10R) LPC Interface Controller
00:1f.2 IDE interface: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1
00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
00:1f.5 IDE interface: Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller #2
05:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068E PCI-Express Fusion-MPT SAS (rev 08)
06:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
07:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
08:04.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200eW WPCM450 (rev 0a)
Code:
name: Solaris
ide2: local:iso/osol-dev-133-x86.iso,media=cdrom
bootdisk: ide0
ostype: other
memory: 2048
sockets: 1
boot: dc
freeze: 0
cpuunits: 1000
acpi: 1
kvm: 1
vlan0: e1000=5A:FE:B2:5A:24:9F
args: -pcidevice host=05:00.0
onboot: 0
cores: 4