|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] libxl: change default QEMU machine to pc-i440fx-1.6
Il 26/05/2014 10:00, Fabio Fantoni ha scritto: Il 25/05/2014 16:14, Stefano Stabellini ha scritto:On Fri, 23 May 2014, Fabio Fantoni wrote:Il 23/05/2014 18:07, Stefano Stabellini ha scritto:Choose pc-i440fx-1.6 instead of pc for HVM guests, so that we know for sure what is the machine that we are emulating. Use pc-i440fx-1.6 regardless of the xen_platform_pci option. Add the xen-platform device if requested. Choose slot 2 for the xen-platform device for compatibility with current installations. In case of Intelgraphic passthrough, slot 2 might be needed by the grafic card. Howevernow that we can specify the slot explicitly, it is easy to change the position of the xen-platform device on the PCI bus if graphic passthrough is enabled. Move the machine options earlier, before any other emulated devicesoptions. Otherwise the selected PCI slot for the xen-platform device isnot available in QEMU. Specify PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off, becausedifferently from xenfv, the other QEMU machines do not have that optionoff by default. This patch does not change the emulated environment in the guest.Refer to this thread: http://marc.info/?l=xen-devel&m=140023775929625&w=2 I found another case of problem with xen-platform's fixed pci slot.I tested this patch and I saw that qemu not start also in other cases, for example the domU of my test: qemu-system-i386: -device xen-platform,addr=0x2: PCI: slot 2 function 0 not available for xen-platform, in use by intel-hda qemu-system-i386: -device xen-platform,addr=0x2: Device initialization failed. qemu-system-i386: -device xen-platform,addr=0x2: Device 'xen-platform' could not be initialized The domU's xl cfg: name='W7' builder="hvm" #device_model_override="/usr/lib/xen/bin/qemu-gdb" #device_model_override="/usr/bin/qemu-system-x86_64" #bios="ovmf" memory=2048 vcpus=2 #nestedhvm=1 #vif=['model=e1000,bridge=xenbr0'] vif=['bridge=xenbr0,mac=00:16:3e:42:ae:8f'] disk=['/mnt/vm/disks/W7.disk1.xm,raw,hda,rw',',raw,hdb,ro,cdrom'] boot='dc' device_model_version="qemu-xen" viridian=1 vnc=0 keymap="it" on_crash="destroy" vga="qxl" #videoram=64 spice=1 spicehost='0.0.0.0' spiceport=6002 spicedisable_ticketing=1 spicevdagent=1 spice_clipboard_sharing=0 spice_image_compression="off" spice_streaming_video="filter" spiceusbredirection=4 soundhw="hda" localtime=1 usbversion=2 Probably there are also other cases that can create a problem with xen-platform fixed address, FWIK now new usb controller (with usbversion) is the only other with fixed pci address in libxl, all other emulated qemu components not. And call it before in qemu binary starts notaffect the pci slot order because the xen-platform is already before audio. Thanks for any reply and sorry for my bad english. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |