Error: pci: to avoid potential security issue, 0000:08:00.0 is not allowed to be assigned to guest since it is behind PCIe switch that does not support or enable ACS.
Error: pool Pool-0 not activated
Die Slotbelegung betrifft die IRQ-Belegung und darüber ggf. auch Xen. Wie genau, kann ich nicht mal sagen, aber das ist der einzige Unterschied, der mir bei unseren Konfigurationen einfallen würde. Laut Handbuch soll man zuerst PCIe1 und PCIe3 belegen, so habe ich es auch gemacht. Meine Belegung (funktioniert):1. Slot: Leer
2. Slot:GT220
3. Slot: Leer (aber verdeckt)
4. Slot: Leer
5. Slot Radeon 5450
Soweit so gut aber in wie fern kann das überhaupt XEN beeinflussen?
Eigentlich musst du nur die Grafikkarte durch reichen und dann unter Windows die Treiber dazu installieren. (Ja, war auch ne Umstellung für mich, manuell Treiber installieren zu müssen.)
name = "windows"
uuid = "0515f430-39ab-1a04-7d30-923edfe3114c"
maxmem = 4096
memory = 4096
memory_sharing = 0
vcpus = 2
xen_extended_power_mgmt=0
builder = "hvm"
kernel = "/usr/lib/xen/boot/hvmloader"
boot = "c"
pae = 1
acpi = 1
apic = 1
sdl = 0
hap = 0
localtime = 1
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
device_model = "/usr/lib64/xen/bin/qemu-dm"
usb = 1
usbdevice = "tablet"
vfb = [ "type=vnc,vncdisplay=1,keymap=de" ]
disk = [ "phy:/dev/vgcrypt/vmwindows,hda,w" ]
vif = [ "mac=00:16:3e:5c:c5:ad,bridge=eth0,script=vif-bridge" ]
gfx_passthru = 0
iommu = 1
pci = [ '01:00.0-1' ]
pci_msitranslate = 1
pci_power_mgmt = 1
[...] xen-pciback.permissive xen-pciback.hide=(01:00.0)(01:00.1) xen-pciback.passthrough=1 pci=resource_alignment=01:00.0;01:00.1
CPU: Intel Core-i5 2500
Mainboard: ASRock Z68 Extreme4 Gen3
Distribution: gentoo (x86_64)
Kernel: 3.1.10 oder 3.2.5 Marke Eigenbau mit pvops
Xen: 4.1.2
$ lspci
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Cypress [Radeon HD 5800 Series]
01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Cypress HDMI Audio [Radeon HD 5800 Series]
$ xm pci-list windows
Vdev Device
05.0 0000:01:00.0
05.1 0000:01:00.1
$ xm pci-list-assignable-devices
0000:01:00.0
0000:01:00.1
$ dmesg | grep pciback
[ 3.824340] pciback 0000:01:00.0: seizing device
[ 3.824389] pciback 0000:01:00.1: seizing device
[ 3.828026] pciback 0000:01:00.0: BAR 0: assigned [mem 0xc0000000-0xcfffffff 64bit pref]
[ 3.828107] pciback 0000:01:00.0: BAR 0: set to [mem 0xc0000000-0xcfffffff 64bit pref] (PCI address [0xc0000000-0xcfffffff])
[ 3.828187] pciback 0000:01:00.0: BAR 2: assigned [mem 0xf8d00000-0xf8d1ffff 64bit]
[ 3.828268] pciback 0000:01:00.0: BAR 2: set to [mem 0xf8d00000-0xf8d1ffff 64bit] (PCI address [0xf8d00000-0xf8d1ffff])
[ 3.828347] pciback 0000:01:00.0: BAR 6: assigned [mem 0xf8d20000-0xf8d3ffff pref]
[ 3.828421] pciback 0000:01:00.1: BAR 0: assigned [mem 0xf8d40000-0xf8d43fff 64bit]
[ 3.828501] pciback 0000:01:00.1: BAR 0: set to [mem 0xf8d40000-0xf8d43fff 64bit] (PCI address [0xf8d40000-0xf8d43fff])
[ 4.104737] pciback 0000:01:00.0: Signaling PME through PCIe PME interrupt
[ 4.104785] pciback 0000:01:00.1: Signaling PME through PCIe PME interrupt
[ 4.116906] pciback 0000:01:00.1: enabling device (0005 -> 0007)
[ 4.117053] pciback 0000:01:00.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
[ 4.117105] pciback 0000:01:00.1: PCI INT B disabled
[ 4.117176] pciback 0000:01:00.0: enabling device (0000 -> 0003)
[ 4.117316] pciback 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 4.117366] pciback 0000:01:00.0: PCI INT A disabled
[ 4.117434] xen-pciback: backend is passthrough
[ 411.455198] pciback 0000:01:00.1: device has been assigned to another domain! Over-writting the ownership, but beware.
[ 411.456041] pciback 0000:01:00.0: device has been assigned to another domain! Over-writting the ownership, but beware.
$ xl dmesg | grep virtu
(XEN) I/O virtualisation enabled
(XEN) - APIC MMIO access virtualisation
$ cat /var/log/xen/qemu-dm-windows.log
domid: 13
config qemu network with xen bridge for tap13.0 eth0
Using file /dev/vgcrypt/vmwindows in read-write mode
Watching /local/domain/0/device-model/13/logdirty/cmd
Watching /local/domain/0/device-model/13/command
Watching /local/domain/13/cpu
char device redirected to /dev/pts/7
qemu_map_cache_init nr_buckets = 10000 size 4194304
shared page at pfn feffd
buffered io page at pfn feffb
Guest uuid = 0515f430-39ab-1a04-7d30-923edfe3114c
Time offset set 0
populating video RAM at ff000000
mapping video RAM from ff000000
Register xen platform.
Done register platform.
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state.
xs_read(/local/domain/0/device-model/13/xen_extended_power_mgmt): read error
xs_read(): vncpasswd get error. /vm/0515f430-39ab-1a04-7d30-923edfe3114c/vncpasswd.
Log-dirty: no command yet.
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
vcpu-set: watch node error.
xs_read(/local/domain/13/log-throttling): read error
qemu: ignoring not-understood drive `/local/domain/13/log-throttling'
medium change watch on `/local/domain/13/log-throttling' - unknown device, ignored
dm-command: hot insert pass-through pci dev
register_real_device: Assigning real physical device 01:00.0 ...
register_real_device: Enable MSI translation via per device option
register_real_device: Enable power management
pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No such file or directory: 0x1:0x0.0x0
pt_register_regions: IO region registered (size=0x10000000 base_addr=0xc000000c)
pt_register_regions: IO region registered (size=0x00020000 base_addr=0xf8d00004)
pt_register_regions: IO region registered (size=0x00000100 base_addr=0x0000e001)
pt_register_regions: Expansion ROM registered (size=0x00020000 base_addr=0xf8d20000)
pt_msi_setup: msi mapped with pirq 37
pci_intx: intx=1
register_real_device: Real physical device 01:00.0 registered successfuly!
IRQ type = MSI-INTx
dm-command: hot insert pass-through pci dev
register_real_device: Assigning real physical device 01:00.1 ...
register_real_device: Enable MSI translation via per device option
register_real_device: Enable power management
pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No such file or directory: 0x1:0x0.0x1
pt_register_regions: IO region registered (size=0x00004000 base_addr=0xf8d40004)
pt_msi_setup: msi mapped with pirq 36
pci_intx: intx=2
register_real_device: Real physical device 01:00.1 registered successfuly!
IRQ type = MSI-INTx
char device redirected to /dev/pts/8
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
pt_iomem_map: e_phys=e0000000 maddr=c0000000 type=8 len=268435456 index=0 first_map=1
cirrus vga map change while on lfb mode
pt_iomem_map: e_phys=f3000000 maddr=f8d00000 type=0 len=131072 index=2 first_map=1
pt_iomem_map: e_phys=f3040000 maddr=f8d40000 type=0 len=16384 index=0 first_map=1
pt_ioport_map: e_phys=c200 pio_base=e000 len=256 index=4 first_map=1
mapping vram to f0000000 - f0400000
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state.
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro state.
pt_pci_read_config: Error: Failed to read register with invalid access size alignment. [00:05.0][Offset:0eh][Length:4]
pt_pci_read_config: Error: Failed to read register with invalid access size alignment. [00:05.0][Offset:0eh][Length:4]
pt_pci_read_config: Error: Failed to read register with invalid access size alignment. [00:05.0][Offset:0eh][Length:4]
pt_pci_read_config: Error: Failed to read register with invalid access size alignment. [00:05.0][Offset:0eh][Length:4]
pt_pci_read_config: Error: Failed to read register with invalid access size alignment. [00:05.0][Offset:0eh][Length:4]
pt_pci_read_config: Error: Failed to read register with invalid access size alignment. [00:05.0][Offset:0eh][Length:4]
pt_pci_read_config: Error: Failed to read register with invalid access size alignment. [00:05.0][Offset:0eh][Length:4]
pt_iomem_map: e_phys=ffffffff maddr=c0000000 type=8 len=268435456 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f8d00000 type=0 len=131072 index=2 first_map=0
pt_ioport_map: e_phys=ffff pio_base=e000 len=256 index=4 first_map=0
pt_iomem_map: e_phys=e0000000 maddr=c0000000 type=8 len=268435456 index=0 first_map=0
pt_iomem_map: e_phys=f3000000 maddr=f8d00000 type=0 len=131072 index=2 first_map=0
pt_ioport_map: e_phys=c200 pio_base=e000 len=256 index=4 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f8d40000 type=0 len=16384 index=0 first_map=0
pt_iomem_map: e_phys=f3040000 maddr=f8d40000 type=0 len=16384 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=c0000000 type=8 len=268435456 index=0 first_map=0
pt_iomem_map: e_phys=ffffffff maddr=f8d00000 type=0 len=131072 index=2 first_map=0
pt_ioport_map: e_phys=ffff pio_base=e000 len=256 index=4 first_map=0
pt_iomem_map: e_phys=e0000000 maddr=c0000000 type=8 len=268435456 index=0 first_map=0
pt_iomem_map: e_phys=f3000000 maddr=f8d00000 type=0 len=131072 index=2 first_map=0
pt_ioport_map: e_phys=c200 pio_base=e000 len=256 index=4 first_map=0
pt_msgctrl_reg_write: guest enabling MSI, disable MSI-INTx translation
pci_intx: intx=1
pt_msi_update: Update msi with pirq 37 gvec b0 gflags 1303
pt_iomem_map: e_phys=ffffffff maddr=f8d40000 type=0 len=16384 index=0 first_map=0
pt_iomem_map: e_phys=f3040000 maddr=f8d40000 type=0 len=16384 index=0 first_map=0
[___ hier gibts dann den BSOD ___]
reset requested in cpu_handle_ioreq.
Issued domain 13 reboot