libxl: change default QEMU machine to pc-i440fx-1.6
PATCH 1/1 libxl: change default QEMU machine to pc-i440fx-1.6
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 Intel graphic passthrough, slot 2 might be needed by the grafic card. However now 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 devices options. Otherwise the selected PCI slot for the xen-platform device is not available in QEMU.
Specify PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off, because differently from xenfv, the other QEMU machines do not have that option off 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
tools/libxl/libxl_dm.c +23 -23
@@ -476,6 +476,29 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,flexarray_vappend (dm_args,"-k" , keymap,NULL ); } +flexarray_append (dm_args,"-machine" ); +switch (b_info->type) { +case LIBXL_DOMAIN_TYPE_PV : +flexarray_append (dm_args,"xenpv" ); +for (i =0 ; b_info->extra_pv && b_info->extra_pv[i] !=NULL ; i++) +flexarray_append (dm_args, b_info->extra_pv[i]); +break ; +case LIBXL_DOMAIN_TYPE_HVM : +flexarray_append (dm_args,"pc-i440fx-1.6,accel=xen" ); +flexarray_append (dm_args,"-global" ); +flexarray_append (dm_args,"PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off" ); +if (libxl_defbool_val (b_info->u.hvm.xen_platform_pci)) { +flexarray_append (dm_args,"-device" ); +flexarray_append (dm_args,"xen-platform,addr=0x2" ); + } +for (i =0 ; b_info->extra_hvm && b_info->extra_hvm[i] !=NULL ; i++) +flexarray_append (dm_args, b_info->extra_hvm[i]); +break ; +default : +abort (); + } + +if (b_info->type ==LIBXL_DOMAIN_TYPE_HVM ) {int ioemu_nics =0 ;
@@ -645,29 +668,6 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,for (i =0 ; b_info->extra && b_info->extra[i] !=NULL ; i++)flexarray_append (dm_args, b_info->extra[i]); -flexarray_append (dm_args,"-machine" ); -switch (b_info->type) { -case LIBXL_DOMAIN_TYPE_PV : -flexarray_append (dm_args,"xenpv" ); -for (i =0 ; b_info->extra_pv && b_info->extra_pv[i] !=NULL ; i++) -flexarray_append (dm_args, b_info->extra_pv[i]); -break ; -case LIBXL_DOMAIN_TYPE_HVM : -if (!libxl_defbool_val (b_info->u.hvm.xen_platform_pci)) { -/* Switching here to the machine "pc" which does not add -* the xen-platform device instead of the default "xenfv" machine. -*/ -flexarray_append (dm_args,"pc,accel=xen" ); - }else { -flexarray_append (dm_args,"xenfv" ); - } -for (i =0 ; b_info->extra_hvm && b_info->extra_hvm[i] !=NULL ; i++) -flexarray_append (dm_args, b_info->extra_hvm[i]); -break ; -default : -abort (); - } - ram_size =libxl__sizekb_to_mb (b_info->max_memkb - b_info->video_memkb);flexarray_append (dm_args,"-m" );flexarray_append (dm_args,libxl__sprintf (gc,"%" PRId64, ram_size));
Il 23/05/2014 18:07, Stefano Stabellini ha scritto:
Quoted 34 lines
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_pcioption. Add the xen-platform device if requested. Choose slot 2 for the xen-platform device for compatibility with current installations. In case of Intel graphic passthrough, slot 2 might be needed by the grafic card. However now 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 devices options. Otherwise the selected PCI slot for the xen-platform device is not available in QEMU.
Specify PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off, because differently from xenfv, the other QEMU machines do not have that option off 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
Signed-off-by Stefano Stabellini <[email protected]>tools/libxl/libxl_dm.c +1
-0@@ -476,6 +476,29 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,flexarray_vappend (dm_args,"-k" , keymap,NULL ); } +flexarray_append (dm_args,"-machine" );
tools/libxl/libxl_dm.c static char ** libxl__build_device_model_args_new(libxl__gc *gc, · line 489
Quoted 10 lines
tools/libxl/libxl_dm.c +10
-0+switch (b_info->type) { +case LIBXL_DOMAIN_TYPE_PV : +flexarray_append (dm_args,"xenpv" ); +for (i =0 ; b_info->extra_pv && b_info->extra_pv[i] !=NULL ; i++) +flexarray_append (dm_args, b_info->extra_pv[i]); +break ; +case LIBXL_DOMAIN_TYPE_HVM : +flexarray_append (dm_args,"pc-i440fx-1.6,accel=xen" ); +flexarray_append (dm_args,"-global" ); +flexarray_append (dm_args,"PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off" );
I think is good add a comment for remember to remove this workaround when pc >=2.1 will be the default since qemu 2.1 will fix it.
https://lists.gnu.org/archive/html/qemu-devel/2014-05/msg04789.html
tools/libxl/libxl_dm.c static char ** libxl__build_device_model_args_new(libxl__gc *gc, · line 492
Quoted 3 lines
tools/libxl/libxl_dm.c +3
-0+if (libxl_defbool_val (b_info->u.hvm.xen_platform_pci)) { +flexarray_append (dm_args,"-device" ); +flexarray_append (dm_args,"xen-platform,addr=0x2" );
The fixed pci address to 0x2 probably is a problem with intel gpu passthrough:
http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg03726.html
Quoted 47 lines
tools/libxl/libxl_dm.c +9
-23+ } +for (i =0 ; b_info->extra_hvm && b_info->extra_hvm[i] !=NULL ; i++) +flexarray_append (dm_args, b_info->extra_hvm[i]); +break ; +default : +abort (); + } + +if (b_info->type ==LIBXL_DOMAIN_TYPE_HVM ) {int ioemu_nics =0 ;@@ -645,29 +668,6 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,for (i =0 ; b_info->extra && b_info->extra[i] !=NULL ; i++)flexarray_append (dm_args, b_info->extra[i]); -flexarray_append (dm_args,"-machine" ); -switch (b_info->type) { -case LIBXL_DOMAIN_TYPE_PV : -flexarray_append (dm_args,"xenpv" ); -for (i =0 ; b_info->extra_pv && b_info->extra_pv[i] !=NULL ; i++) -flexarray_append (dm_args, b_info->extra_pv[i]); -break ; -case LIBXL_DOMAIN_TYPE_HVM : -if (!libxl_defbool_val (b_info->u.hvm.xen_platform_pci)) { -/* Switching here to the machine "pc" which does not add -* the xen-platform device instead of the default "xenfv" machine. -*/ -flexarray_append (dm_args,"pc,accel=xen" ); - }else { -flexarray_append (dm_args,"xenfv" ); - } -for (i =0 ; b_info->extra_hvm && b_info->extra_hvm[i] !=NULL ; i++) -flexarray_append (dm_args, b_info->extra_hvm[i]); -break ; -default : -abort (); - } - ram_size =libxl__sizekb_to_mb (b_info->max_memkb - b_info->video_memkb);flexarray_append (dm_args,"-m" );flexarray_append (dm_args,libxl__sprintf (gc,"%" PRId64, ram_size));_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 48 lines · Fabio Fantoni
Il 23/05/2014 18:07, Stefano Stabellini ha scritto:
Quoted 35 lines
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_pcioption. Add the xen-platform device if requested. Choose slot 2 for the xen-platform device for compatibility with current installations. In case of Intel graphic passthrough, slot 2 might be needed by the grafic card. However now 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 devices options. Otherwise the selected PCI slot for the xen-platform device is not available in QEMU.
Specify PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off, because differently from xenfv, the other QEMU machines do not have that option off 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
Signed-off-by Stefano Stabellini <[email protected]>tools/libxl/libxl_dm.c +1
-0@@ -476,6 +476,29 @@ static char **libxl__build_device_model_args_new (libxl__gc *gc, flexarray_vappend(dm_args, "-k", keymap, NULL); } +flexarray_append (dm_args,"-machine" ); +switch (b_info->type) {tools/libxl/libxl_dm.c static char ** · line 490
Quoted 10 lines
tools/libxl/libxl_dm.c +9
-0+case LIBXL_DOMAIN_TYPE_PV : +flexarray_append (dm_args,"xenpv" ); +for (i =0 ; b_info->extra_pv && b_info->extra_pv[i] !=NULL ; i++) +flexarray_append (dm_args, b_info->extra_pv[i]); +break ; +case LIBXL_DOMAIN_TYPE_HVM : +flexarray_append (dm_args,"pc-i440fx-1.6,accel=xen" ); +flexarray_append (dm_args,"-global" ); +flexarray_append (dm_args,"PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off" );I think is good add a comment for remember to remove this workaround when pc
Quoted 2 lines
Quoted 1 line
=2.1 will be the default since qemu 2.1 will fix it.
https://lists.gnu.org/archive/html/qemu-devel/2014-05/msg04789.html
The workaround is not actually harmful, it doesn't need to be removed when pc >= 2.1 in QEMU.
Quoted 6 lines
tools/libxl/libxl_dm.c static char ** libxl__build_device_model_args_new(libxl__gc *gc, · line 492
Quoted 3 lines
tools/libxl/libxl_dm.c +3
-0+if (libxl_defbool_val (b_info->u.hvm.xen_platform_pci)) { +flexarray_append (dm_args,"-device" ); +flexarray_append (dm_args,"xen-platform,addr=0x2" );The fixed pci address to
0x2probably is a problem with intel gpu passthrough:
http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg03726.html
Right, however we cannot really change the default position of the xen-platform device on the PCI bus, otherwise we'll end up changing the emulated environment for all the VMs out there.
I'll leave it to Tiejun to move xen-platform to another slot when graphic passthrough is enabled.
Il 25/05/2014 16:14, Stefano Stabellini ha scritto:
Quoted 36 lines · Fabio Fantoni
Quoted 35 lines
Il 23/05/2014 18:07, Stefano Stabellini ha scritto:
Quoted 34 lines
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_pcioption. Add the xen-platform device if requested. Choose slot 2 for the xen-platform device for compatibility with current installations. In case of Intel graphic passthrough, slot 2 might be needed by the grafic card. However now 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 devices options. Otherwise the selected PCI slot for the xen-platform device is not available in QEMU.
Specify PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off, because differently from xenfv, the other QEMU machines do not have that option off 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
Signed-off-by Stefano Stabellini <[email protected]>tools/libxl/libxl_dm.c +0
-0@@ -476,6 +476,29 @@ static char **libxl__build_device_model_args_new (libxl__gc *gc, flexarray_vappend(dm_args, "-k", keymap, NULL); } +flexarray_append (dm_args,"-machine" );
Quoted 8 lines
Quoted 8 lines
tools/libxl/libxl_dm.c static char ** libxl__build_device_model_args_new(libxl__gc *gc, · line 487
Quoted 8 lines
tools/libxl/libxl_dm.c +8
-0+switch (b_info->type) { +case LIBXL_DOMAIN_TYPE_PV : +flexarray_append (dm_args,"xenpv" ); +for (i =0 ; b_info->extra_pv && b_info->extra_pv[i] !=NULL ; i++) +flexarray_append (dm_args, b_info->extra_pv[i]); +break ; +case LIBXL_DOMAIN_TYPE_HVM : +flexarray_append (dm_args,"pc-i440fx-1.6,accel=xen" );
I think that a note in README should be added: qemu >=1.6.1 is required for hvm domUs.
About the other xl parameter to be added I think that should be:
qemu_machine_type="i440fx"|"q35" (when also q35 will be supported on xen) qemu_machine_version="x.y" to specify the machine version, useful for debug/testing and other some cases.
Quoted 21 lines
Quoted 6 lines
tools/libxl/libxl_dm.c static char ** · line 490
Quoted 3 lines
tools/libxl/libxl_dm.c +2
-0+flexarray_append (dm_args,"-global" ); +flexarray_append (dm_args,"PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off" );I think is good add a comment for remember to remove this workaround when pc
Quoted 1 line
=2.1 will be the default since qemu 2.1 will fix it.
https://lists.gnu.org/archive/html/qemu-devel/2014-05/msg04789.html
The workaround is not actually harmful, it doesn't need to be removed when pc >= 2.1 in QEMU.
Quoted 5 lines
tools/libxl/libxl_dm.c static char ** libxl__build_device_model_args_new(libxl__gc *gc, · line 492
Quoted 3 lines
tools/libxl/libxl_dm.c +3
-0+if (libxl_defbool_val (b_info->u.hvm.xen_platform_pci)) { +flexarray_append (dm_args,"-device" ); +flexarray_append (dm_args,"xen-platform,addr=0x2" );The fixed pci address to
0x2probably is a problem with intel gpu passthrough:
http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg03726.htmlRight, however we cannot really change the default position of the xen-platform device on the PCI bus, otherwise we'll end up changing the emulated environment for all the VMs out there.
I'll leave it to Tiejun to move xen-platform to another slot when graphic passthrough is enabled.
Il 26/05/2014 10:00, Fabio Fantoni ha scritto:
Quoted 49 lines
Il 25/05/2014 16:14, Stefano Stabellini ha scritto:
Quoted 37 lines · Fabio Fantoni
Quoted 36 lines
Il 23/05/2014 18:07, Stefano Stabellini ha scritto:
Quoted 35 lines
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_pcioption. Add the xen-platform device if requested. Choose slot 2 for the xen-platform device for compatibility with current installations. In case of Intel graphic passthrough, slot 2 might be needed by the grafic card. However now 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 devices options. Otherwise the selected PCI slot for the xen-platform device is not available in QEMU.
Specify PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off, because differently from xenfv, the other QEMU machines do not have that option off 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
Signed-off-by Stefano Stabellini <[email protected]>tools/libxl/libxl_dm.c +1
-0@@ -476,6 +476,29 @@ static char **libxl__build_device_model_args_new (libxl__gc *gc, flexarray_vappend(dm_args, "-k", keymap, NULL); } +flexarray_append (dm_args,"-machine" ); +switch (b_info->type) {Quoted 8 lines
Quoted 8 lines
tools/libxl/libxl_dm.c static char ** libxl__build_device_model_args_new(libxl__gc *gc, · line 487
Quoted 8 lines
tools/libxl/libxl_dm.c +7
-0+case LIBXL_DOMAIN_TYPE_PV : +flexarray_append (dm_args,"xenpv" ); +for (i =0 ; b_info->extra_pv && b_info->extra_pv[i] !=NULL ; i++) +flexarray_append (dm_args, b_info->extra_pv[i]); +break ; +case LIBXL_DOMAIN_TYPE_HVM : +flexarray_append (dm_args,"pc-i440fx-1.6,accel=xen" );I think that a note in README should be added: qemu >=1.6.1 is required for hvm domUs.
Quoted 26 lines
About the other xl parameter to be added I think that should be:
qemu_machine_type="i440fx"|"q35" (when also q35 will be supported on xen) qemu_machine_version="x.y" to specify the machine version, useful for debug/testing and other some cases.Quoted 21 lines
Quoted 6 lines
tools/libxl/libxl_dm.c static char ** · line 491
Quoted 3 lines
tools/libxl/libxl_dm.c +2
-0+flexarray_append (dm_args,"-global" ); +flexarray_append (dm_args,"PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off" );I think is good add a comment for remember to remove this workaround when pc
Quoted 1 line
=2.1 will be the default since qemu 2.1 will fix it.
https://lists.gnu.org/archive/html/qemu-devel/2014-05/msg04789.html
The workaround is not actually harmful, it doesn't need to be removed when pc >= 2.1 in QEMU.
Quoted 5 lines
tools/libxl/libxl_dm.c static char ** libxl__build_device_model_args_new(libxl__gc *gc, · line 492
Quoted 3 lines
tools/libxl/libxl_dm.c +3
-0+if (libxl_defbool_val (b_info->u.hvm.xen_platform_pci)) { +flexarray_append (dm_args,"-device" ); +flexarray_append (dm_args,"xen-platform,addr=0x2" );The fixed pci address to
0x2probably is a problem with intel gpu passthrough:
http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg03726.htmlRight, however we cannot really change the default position of the xen-platform device on the PCI bus, otherwise we'll end up changing the emulated environment for all the VMs out there.
I'll leave it to Tiejun to move xen-platform to another slot when graphic passthrough is enabled.
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:
Quoted 3 lines
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:
Quoted 23 lines
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
Quoted 8 lines
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.
Quoted 126 lines · Fabio Fantoni
Il 26/05/2014 10:00, Fabio Fantoni ha scritto:
Quoted 54 lines
Il 25/05/2014 16:14, Stefano Stabellini ha scritto:
Quoted 41 lines · Fabio Fantoni
Quoted 40 lines
Il 23/05/2014 18:07, Stefano Stabellini ha scritto:
Quoted 39 lines
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_pcioption. Add the xen-platform device if requested. Choose slot 2 for the xen-platform device for compatibility with current installations. In case of Intel graphic passthrough, slot 2 might be needed by the grafic card. However
now 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 devices options. Otherwise the selected PCI slot for the xen-platform device is
not available in QEMU.Specify PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off, because differently from xenfv, the other QEMU machines do not have that option
off 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=2Signed-off-by Stefano Stabellini <[email protected]>tools/libxl/libxl_dm.c +1
-0@@ -476,6 +476,29 @@ static char **libxl__build_device_model_args_new (libxl__gc *gc, flexarray_vappend(dm_args, "-k", keymap, NULL); } +flexarray_append (dm_args,"-machine" ); +switch (b_info->type) {Quoted 8 lines
Quoted 8 lines
tools/libxl/libxl_dm.c static char ** libxl__build_device_model_args_new(libxl__gc *gc, · line 487
Quoted 8 lines
tools/libxl/libxl_dm.c +7
-0+case LIBXL_DOMAIN_TYPE_PV : +flexarray_append (dm_args,"xenpv" ); +for (i =0 ; b_info->extra_pv && b_info->extra_pv[i] !=NULL ; i++) +flexarray_append (dm_args, b_info->extra_pv[i]); +break ; +case LIBXL_DOMAIN_TYPE_HVM : +flexarray_append (dm_args,"pc-i440fx-1.6,accel=xen" );I think that a note in README should be added: qemu >=1.6.1 is required for hvm domUs.
Quoted 29 lines
About the other xl parameter to be added I think that should be:
qemu_machine_type="i440fx"|"q35" (when also q35 will be supported on xen) qemu_machine_version="x.y" to specify the machine version, useful for debug/testing and other some cases.Quoted 23 lines
Quoted 7 lines
tools/libxl/libxl_dm.c static char ** · line 491
Quoted 3 lines
tools/libxl/libxl_dm.c +2
-0+flexarray_append (dm_args,"-global" ); +flexarray_append (dm_args,"PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off" );I think is good add a comment for remember to remove this workaround when pc
Quoted 1 line
=2.1 will be the default since qemu 2.1 will fix it.
https://lists.gnu.org/archive/html/qemu-devel/2014-05/msg04789.html
The workaround is not actually harmful, it doesn't need to be removed when pc >= 2.1 in QEMU.
Quoted 6 lines
tools/libxl/libxl_dm.c static char ** libxl__build_device_model_args_new(libxl__gc *gc, · line 492
Quoted 3 lines
tools/libxl/libxl_dm.c +3
-0+if (libxl_defbool_val (b_info->u.hvm.xen_platform_pci)) { +flexarray_append (dm_args,"-device" ); +flexarray_append (dm_args,"xen-platform,addr=0x2" );The fixed pci address to
0x2probably is a problem with intel gpu passthrough:
http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg03726.htmlRight, however we cannot really change the default position of the xen-platform device on the PCI bus, otherwise we'll end up changing the emulated environment for all the VMs out there.
I'll leave it to Tiejun to move xen-platform to another slot when graphic passthrough is enabled.
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:
Quoted 6 lines
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 initializedThe domU's xl cfg:
Quoted 21 lines
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'Quoted 8 lines
spiceport=6002
spicedisable_ticketing=1
spicevdagent=1
spice_clipboard_sharing=0
spice_image_compression="off"
spice_streaming_video="filter"
spiceusbredirection=4
soundhw="hda"
Quoted 1 line
From the error message, it looks like soundhw is the option that
conflicts with xen-platform,addr=0x2.
Quoted 9 lines
Quoted 2 lines
localtime=1
usbversion=2Probably 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.
Actually it looks like that by passing -device xen-platform before the other options, it already tries to assign slot 2 if possible. I don't need to specify addr=0x2. That seems to be the best course of action.
Thanks for testing!
Quoted 141 lines · Stefano Stabellini
Quoted 126 lines · Fabio Fantoni
Il 26/05/2014 10:00, Fabio Fantoni ha scritto:
Quoted 54 lines
Il 25/05/2014 16:14, Stefano Stabellini ha scritto:
Quoted 41 lines · Fabio Fantoni
Quoted 40 lines
Il 23/05/2014 18:07, Stefano Stabellini ha scritto:
Quoted 39 lines
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_pcioption. Add the xen-platform device if requested. Choose slot 2 for the xen-platform device for compatibility with current installations. In case of Intel graphic passthrough, slot 2 might be needed by the grafic card. However
now 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 devices options. Otherwise the selected PCI slot for the xen-platform device is
not available in QEMU.Specify PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off, because differently from xenfv, the other QEMU machines do not have that option
off 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=2Signed-off-by Stefano Stabellini <[email protected]>tools/libxl/libxl_dm.c +1
-0@@ -476,6 +476,29 @@ static char **libxl__build_device_model_args_new (libxl__gc *gc, flexarray_vappend(dm_args, "-k", keymap, NULL); } +flexarray_append (dm_args,"-machine" ); +switch (b_info->type) {Quoted 8 lines
Quoted 8 lines
tools/libxl/libxl_dm.c static char ** libxl__build_device_model_args_new(libxl__gc *gc, · line 487
Quoted 8 lines
tools/libxl/libxl_dm.c +7
-0+case LIBXL_DOMAIN_TYPE_PV : +flexarray_append (dm_args,"xenpv" ); +for (i =0 ; b_info->extra_pv && b_info->extra_pv[i] !=NULL ; i++) +flexarray_append (dm_args, b_info->extra_pv[i]); +break ; +case LIBXL_DOMAIN_TYPE_HVM : +flexarray_append (dm_args,"pc-i440fx-1.6,accel=xen" );I think that a note in README should be added: qemu >=1.6.1 is required for hvm domUs.
Quoted 29 lines
About the other xl parameter to be added I think that should be:
qemu_machine_type="i440fx"|"q35" (when also q35 will be supported on xen) qemu_machine_version="x.y" to specify the machine version, useful for debug/testing and other some cases.Quoted 23 lines
Quoted 7 lines
tools/libxl/libxl_dm.c static char ** · line 491
Quoted 3 lines
tools/libxl/libxl_dm.c +2
-0+flexarray_append (dm_args,"-global" ); +flexarray_append (dm_args,"PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off" );I think is good add a comment for remember to remove this workaround when pc
Quoted 1 line
=2.1 will be the default since qemu 2.1 will fix it.
https://lists.gnu.org/archive/html/qemu-devel/2014-05/msg04789.html
The workaround is not actually harmful, it doesn't need to be removed when pc >= 2.1 in QEMU.
Quoted 6 lines
tools/libxl/libxl_dm.c static char ** libxl__build_device_model_args_new(libxl__gc *gc, · line 492
Quoted 3 lines
tools/libxl/libxl_dm.c +3
-0+if (libxl_defbool_val (b_info->u.hvm.xen_platform_pci)) { +flexarray_append (dm_args,"-device" ); +flexarray_append (dm_args,"xen-platform,addr=0x2" );The fixed pci address to
0x2probably is a problem with intel gpu passthrough:
http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg03726.htmlRight, however we cannot really change the default position of the xen-platform device on the PCI bus, otherwise we'll end up changing the emulated environment for all the VMs out there.
I'll leave it to Tiejun to move xen-platform to another slot when graphic passthrough is enabled.
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:
Quoted 6 lines
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 initializedThe domU's xl cfg:
Quoted 21 lines
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'Quoted 8 lines
spiceport=6002
spicedisable_ticketing=1
spicevdagent=1
spice_clipboard_sharing=0
spice_image_compression="off"
spice_streaming_video="filter"
spiceusbredirection=4
soundhw="hda"Quoted 1 line
From the error message, it looks like soundhw is the option that
conflicts with xen-platform,addr=0x2.
Quoted 9 lines
Quoted 2 lines
localtime=1
usbversion=2Probably 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.
Quoted 3 lines
Actually it looks like that by passing -device xen-platform before the other options, it already tries to assign slot 2 if possible. I don't need to specify addr=0x2. That seems to be the best course of action.
However it would still place xen-platform at slot 3 instead of slot 2 if soundhw is specified. It seems to me that there is not a perfect solution to this problem. We can either:
- Switch to -machine pc-i440fx-1.6 by default and use consistently the same -machine option no matter the value of xen_platform_pci. Nice, but we break compatibility with existing guests if soundhw is specified.
- Switch to -machine pc-i440fx-1.6 only when xen_platform_pci=0 is specified and keep xenfv if xen_platform_pci=1. We still break compatibility when soundhw is specified together with xen_platform_pci=0.
Il 28/05/2014 18:41, Stefano Stabellini ha scritto:
Quoted 11 lines
However it would still place xen-platform at slot 3 instead of slot 2 if soundhw is specified. It seems to me that there is not a perfect solution to this problem. We can either:
- Switch to -machine pc-i440fx-1.6 by default and use consistently the same -machine option no matter the value of
xen_platform_pci. Nice, but we break compatibility with existing guests if soundhw is specified.- Switch to -machine pc-i440fx-1.6 only when xen_platform_pci=0 is specified and keep xenfv if xen_platform_pci=1. We still break compatibility when soundhw is specified together with xen_platform_pci=0.
- change the implementation of the soundhw option to use -device instead.
Paolo
2014-05-28 18:50 GMT+02:00 Paolo Bonzini <[email protected]>:
Quoted 10 lines
Il 28/05/2014 18:41, Stefano Stabellini ha scritto:
However it would still place xen-platform at slot 3 instead of slot 2 if
Quoted 7 lines
soundhw is specified. It seems to me that there is not a perfect solution to this problem. We can either:
- Switch to -machine pc-i440fx-1.6 by default and use consistently the same -machine option no matter the value of
xen_platform_pci. Nice, but we break compatibility with existing guests if soundhw is specified.
Quoted 9 lines
Quoted 4 lines
- Switch to -machine pc-i440fx-1.6 only when xen_platform_pci=0 is specified and keep xenfv if xen_platform_pci=1. We still break compatibility when soundhw is specified together with xen_platform_pci=0.
- change the implementation of the soundhw option to use -device instead.
Paolo
I already did the new features with -device and switched vga to -device but when I tried to convert the disks to -device (also required for compatibility q35) had a problem that I was not able to solve (and also reported to qemu-devel time ago), and then I had postponed the complete conversion to -device.
Quoted 9 lines · Paolo Bonzini
Il 28/05/2014 18:41, Stefano Stabellini ha scritto:
Quoted 8 lines
However it would still place xen-platform at slot 3 instead of slot 2 if soundhw is specified. It seems to me that there is not a perfect solution to this problem. We can either:
- Switch to -machine pc-i440fx-1.6 by default and use consistently the same -machine option no matter the value of
xen_platform_pci. Nice, but we break compatibility with existing guests if soundhw is specified.
Quoted 5 lines
Quoted 3 lines
- Switch to -machine pc-i440fx-1.6 only when xen_platform_pci=0 is specified and keep xenfv if xen_platform_pci=1. We still break compatibility when soundhw is specified together with xen_platform_pci=0.
- change the implementation of the soundhw option to use -device instead.
Thanks, this sounds like the best option by far.
I noticed that "-soundhw hda" becomes "-device intel-hda".
Given that the VM config file exports a soundhw paramter, we would need a programmatic way to get the -device command line option from the soundhw paramter. Is there a way to do that?
Il 03/06/2014 15:38, Stefano Stabellini ha scritto:
Quoted 7 lines
Thanks, this sounds like the best option by far.
I noticed that "-soundhw hda" becomes "-device intel-hda".
Given that the VM config file exports a soundhw paramter, we would need a programmatic way to get the -device command line option from the soundhw paramter. Is there a way to do that?
A table. :)
-soundhw corresponding -device syntax
---------------------------------------------------------
ac97 -device AC97
adlib -device adlib
cs4231a -device cs4231a
es1370 -device ES1370
gus -device gus
hda -device intel-hda,id=libxl-intel-hda \
-device hda-duplex,bus=libxl-intel-hda.0
pcspk -device isa-pcspk
sb16 -device sb16
(To review it start with "git grep _register_soundhw").
Paolo
Quoted 1 line · Stefano Stabellini
Given that the VM config file exports a soundhw paramter,
... as a string.
That sounds like a libxl API mistake to me. libxl should take an enum for this sort of thing. Then xl should parse whatever strings it likes (including specific string needed for backward compatibility) into the appropriate enum values and libxl should generate the correct corresponding qemu options for whichever version it is using.
libxl will need to keep the existing string field alongside the new enum field for API compatibility, I suppose it will also need to parse some legacy values into the enum itself, those probably equate to whatever qemu -soundhw used to accept.
Icky, but not insurmountable, I think.
Ian.
Il 03/06/2014 15:38, Stefano Stabellini ha scritto:
Quoted 13 lines · Paolo Bonzini
Quoted 12 lines
Il 28/05/2014 18:41, Stefano Stabellini ha scritto:
Quoted 11 lines
However it would still place xen-platform at slot 3 instead of slot 2 if soundhw is specified. It seems to me that there is not a perfect solution to this problem. We can either:
- Switch to -machine pc-i440fx-1.6 by default and use consistently the same -machine option no matter the value of
xen_platform_pci. Nice, but we break compatibility with existing guests if soundhw is specified.- Switch to -machine pc-i440fx-1.6 only when xen_platform_pci=0 is specified and keep xenfv if xen_platform_pci=1. We still break compatibility when soundhw is specified together with xen_platform_pci=0.
Quoted 8 lines
Quoted 1 line
- change the implementation of the soundhw option to use -device instead.
Thanks, this sounds like the best option by far.
I noticed that "-soundhw hda" becomes "-device intel-hda".
Given that the VM config file exports a soundhw paramter, we would need a programmatic way to get the -device command line option from the soundhw paramter. Is there a way to do that?
Not only -device intel-hda, if I remember good there is also -device hda-duplex
soundhw now in libxl is only a string passed to qemu without check, probably is good add another parameter with a selectable options supported, similar to vga, for example audio=ac97|intelhda and libxl will check if exist and give to qemu the correct -device parameters. The only problem is that audio device as many and not all qemu build support all (howevercurrently libxl does not care and isthe user having to make sure of the features support in qemu and view the log if qemu fails).
In addition there are also the disks to convert in -device.
I tried last year but with -device the automatic selection of bus and slot (unit now used in xen is not supported in -device if I remember good) was not working properly and the manual I did not know if I could do it working with cd/disk hot-plug working.
Thanks for any reply and sorry for my bad english.
2014-05-28 18:41 GMT+02:00 Stefano Stabellini <
[email protected]>:
Quoted 177 lines · Stefano Stabellini
Quoted 6 lines · Fabio Fantoni
Quoted 5 lines
Il 26/05/2014 10:00, Fabio Fantoni ha scritto:
Quoted 4 lines
Il 25/05/2014 16:14, Stefano Stabellini ha scritto:
Quoted 3 lines · Fabio Fantoni
Quoted 2 lines
Il 23/05/2014 18:07, Stefano Stabellini ha scritto:
Quoted 1 line
Choose pc-i440fx-1.6 instead of pc for HVM guests, so that we
know for
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
sure what is the machine that we are emulating.
Use pc-i440fx-1.6 regardless of the
xen_platform_pcioption.Add the
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
xen-platform device if requested. Choose slot 2 for the
xen-platform
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
device for compatibility with current installations. In case
of Intel
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
graphic passthrough, slot 2 might be needed by the grafic card. However
now that we can specify the slot explicitly, it is easy tochange the
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
position of the xen-platform device on the PCI bus if graphic passthrough is enabled.
Move the machine options earlier, before any other emulated
devices
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
options. Otherwise the selected PCI slot for the xen-platform
device
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
is
not available in QEMU.Specify PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off,
because
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
differently from xenfv, the other QEMU machines do not have
that
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
option
off by default.This patch does not change the emulated environment in the
guest.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Refer to this thread:
http://marc.info/?l=xen-devel&m=140023775929625&w=2Signed-off-by Stefano Stabellini <Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 6 lines
tools/libxl/libxl_dm.c +0
-0tools/libxl/libxl_dm.c static char ** · line 483
Quoted 8 lines
tools/libxl/libxl_dm.c +4
-0@@ -476,6 +476,29 @@ static char **libxl__build_device_model_args_new (libxl__gc *gc, flexarray_vappend(dm_args, "-k", keymap, NULL); } +flexarray_append (dm_args,"-machine" ); +switch (b_info->type) { +case LIBXL_DOMAIN_TYPE_PV : +flexarray_append (dm_args,"xenpv" ); + for (i = 0; b_info->extra_pv && b_info->extra_pv[i]!= NULL;
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
tools/libxl/libxl_dm.c static char ** · line 488
Quoted 5 lines
tools/libxl/libxl_dm.c +4
-0i++) +flexarray_append (dm_args, b_info->extra_pv[i]); +break ; +case LIBXL_DOMAIN_TYPE_HVM : +flexarray_append (dm_args,"pc-i440fx-1.6,accel=xen" );I think that a note in README should be added: qemu >=1.6.1 is
required for
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
hvm domUs.
About the other xl parameter to be added I think that should be:
qemu_machine_type="i440fx"|"q35" (when also q35 will be supported onxen)
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
qemu_machine_version="x.y" to specify the machine version, useful for debug/testing and other some cases.
Quoted 4 lines
Quoted 4 lines
tools/libxl/libxl_dm.c static char ** · line 491
Quoted 3 lines
tools/libxl/libxl_dm.c +2
-0+flexarray_append (dm_args,"-global" ); +flexarray_append (dm_args,"PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off" );I think is good add a comment for remember to remove this
workaround
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
when pc
Quoted 1 line
=2.1 will be the default since qemu 2.1 will fix it.
https://lists.gnu.org/archive/html/qemu-devel/2014-05/msg04789.html
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
The workaround is not actually harmful, it doesn't need to be
removed
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
when pc >= 2.1 in QEMU.
Quoted 1 line
Quoted 1 line
+ if
(
libxl_defbool_val(b_info->u.hvm.xen_platform_pci)) {Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
tools/libxl/libxl_dm.c
Quoted 2 lines
tools/libxl/libxl_dm.c +2
-0+flexarray_append (dm_args,"-device" ); + flexarray_append(dm_args,"xen-platform,addr=0x2");
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
The fixed pci address to
0x2probably is a problem with intel gpu passthrough:http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg03726.html
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Right, however we cannot really change the default position of the xen-platform device on the PCI bus, otherwise we'll end up
changing the
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 4 lines
emulated environment for all the VMs out there.
I'll leave it to Tiejun to move xen-platform to another slot when graphic passthrough is enabled.
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
Quoted 2 lines
Quoted 2 lines
example the domU of my test:
Quoted 1 line
qemu-system-i386: -device xen-platform,addr=0x2: PCI: slot 2
function 0 not
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
available for xen-platform, in use by intel-hda
qemu-system-i386: -device xen-platform,addr=0x2: Deviceinitialization
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
failed.
qemu-system-i386: -device xen-platform,addr=0x2: Device'xen-platform' could
Quoted 33 lines
Quoted 32 lines
Quoted 1 line
not be initialized
The domU's xl cfg:
Quoted 29 lines
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"Quoted 9 lines
Quoted 1 line
From the error message, it looks like soundhw is the option that
conflicts with xen-platform,addr=0x2.
Quoted 5 lines
Quoted 2 lines
localtime=1
usbversion=2Probably there are also other cases that can create a problem with xen-platform fixed address, FWIK now new usb controller (with
usbversion) is
Quoted 3 lines
Quoted 3 lines
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 orderbecause
Quoted 5 lines
Quoted 1 line
the xen-platform is already before audio.
Actually it looks like that by passing -device xen-platform before the other options, it already tries to assign slot 2 if possible. I don't need to specify addr=0x2. That seems to be the best course of action.
However it would still place xen-platform at slot 3 instead of slot 2 if soundhw is specified. It seems to me that there is not a perfect solution to this problem. We can either:
Quoted 8 lines
- Switch to -machine pc-i440fx-1.6 by default and use consistently the same -machine option no matter the value of
xen_platform_pci. Nice, but we break compatibility with existing guests if soundhw is specified.- Switch to -machine pc-i440fx-1.6 only when xen_platform_pci=0 is specified and keep xenfv if xen_platform_pci=1. We still break compatibility when soundhw is specified together with xen_platform_pci=0.
FWIK removing the xen-platform's fixed pci slot will keep compatibility in any cases, assigning slots as it did before.
I'll try tomorrow.
Otherwise I think there would be problems in other cases, not only audio case.
Perhaps even with save/restore/migrate.
Il 28/05/2014 18:53, Fabio Fantoni ha scritto:
Quoted 204 lines
2014-05-28 18:41 GMT+02:00 Stefano Stabellini <[email protected] <mailto:[email protected]>>:
On Wed, 28 May 2014, Stefano Stabellini wrote: > On Wed, 28 May 2014, Fabio Fantoni wrote: > > 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 Intel > > > > > > graphic passthrough, slot 2 might be needed by the grafic card. > > > > > > However > > > > > > now 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 devices > > > > > > options. Otherwise the selected PCI slot for the xen-platform device > > > > > > is > > > > > > not available in QEMU. > > > > > > > > > > > > Specify PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off, because > > > > > > differently from xenfv, the other QEMU machines do not have that > > > > > > option > > > > > > off 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 > > > > > > > > > > > > Signed-off-by: Stefano Stabellini <[email protected] <mailto:[email protected]>> > > > > > > > > > > > > diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c > > > > > > index 8abed7b..fef684f 100644 > > > > > > --- a/tools/libxl/libxl_dm.c > > > > > > +++ b/tools/libxl/libxl_dm.c > > > > > > @@ -476,6 +476,29 @@ static char ** > > > > > > libxl__build_device_model_args_new(libxl__gc *gc, > > > > > > flexarray_vappend(dm_args, "-k", keymap, NULL); > > > > > > } > > > > > > + flexarray_append(dm_args, "-machine"); > > > > > > + switch (b_info->type) { > > > > > > + case LIBXL_DOMAIN_TYPE_PV: > > > > > > + flexarray_append(dm_args, "xenpv"); > > > > > > + for (i = 0; b_info->extra_pv && b_info->extra_pv[i] != NULL; > > > > > > i++) > > > > > > + flexarray_append(dm_args, b_info->extra_pv[i]); > > > > > > + break; > > > > > > + case LIBXL_DOMAIN_TYPE_HVM: > > > > > > + flexarray_append(dm_args, "pc-i440fx-1.6,accel=xen"); > > > > > > I think that a note in README should be added: qemu >=1.6.1 is required for > > > hvm domUs. > > > > > > About the other xl parameter to be added I think that should be: > > > qemu_machine_type="i440fx"|"q35" (when also q35 will be supported on xen) > > > qemu_machine_version="x.y" to specify the machine version, useful for > > > debug/testing and other some cases. > > > > > > > > > + flexarray_append(dm_args, "-global"); > > > > > > + flexarray_append(dm_args, > > > > > > "PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off"); > > > > > I think is good add a comment for remember to remove this workaround > > > > > when pc > > > > > > =2.1 will be the default since qemu 2.1 will fix it. > > > > > https://lists.gnu.org/archive/html/qemu-devel/2014-05/msg04789.html > > > > The workaround is not actually harmful, it doesn't need to be removed > > > > when pc >= 2.1 in QEMU. > > > > > > > > > > > > > > + if (libxl_defbool_val(b_info->u.hvm.xen_platform_pci)) { > > > > > > + flexarray_append(dm_args, "-device"); > > > > > > + flexarray_append(dm_args, "xen-platform,addr=0x2"); > > > > > The fixed pci address to 0x2 probably is a problem with intel gpu > > > > > passthrough: > > > > > http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg03726.html > > > > Right, however we cannot really change the default position of the > > > > xen-platform device on the PCI bus, otherwise we'll end up changing the > > > > emulated environment for all the VMs out there. > > > > > > > > I'll leave it to Tiejun to move xen-platform to another slot when > > > > graphic passthrough is enabled. > > > > > > > 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" > > >From the error message, it looks like soundhw is the option that > conflicts with xen-platform,addr=0x2. > > > > > 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. > > Actually it looks like that by passing -device xen-platform before the > other options, it already tries to assign slot 2 if possible. I don't > need to specify addr=0x2. That seems to be the best course of action. However it would still place xen-platform at slot 3 instead of slot 2 if soundhw is specified. It seems to me that there is not a perfect solution to this problem. We can either: - Switch to -machine pc-i440fx-1.6 by default and use consistently the same -machine option no matter the value of xen_platform_pci. Nice, but we break compatibility with existing guests if soundhw is specified. - Switch to -machine pc-i440fx-1.6 only when xen_platform_pci=0 is specified and keep xenfv if xen_platform_pci=1. We still break compatibility when soundhw is specified together with xen_platform_pci=0.
Quoted 5 lines
FWIK removing the xen-platform's fixed pci slot will keep compatibility in any cases, assigning slots as it did before. I'll try tomorrow.
Otherwise I think there would be problems in other cases, not only audio case.
Perhaps even with save/restore/migrate.
Removing xen-platform's fixed pci slot works, I not found any case with problem for now.
The only problem probably will be only intel graphic passthrough (not tested), same with fixed pci slot of starting patch.
Quoted 2 lines · Stefano Stabellini
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.
Does 1.6 here refer to the qemu version? If so then I think we need to consciously decide that we are happy for Xen 4.5 to depend on qemu >= 1.6 and document it in README.
qemu 1.6 was release in August 2013, which is ~10 months ago, it'll be approximately a year old when we release. Are we happy with this from a distro PoV?
I think it is likely that distros which have an older qemu (and users of such distros) will be using the qemu which comes with Xen (and is naturally new enough) rather than expecting to use the system qemu.
At some point we really ought to grow an option to let the user choose the machine...
Quoted 4 lines
Use pc-i440fx-1.6 regardless of the
xen_platform_pcioption. Add the xen-platform device if requested. Choose slot 2 for the xen-platform device for compatibility with current installations. In case of Intel graphic passthrough, slot 2 might be needed by the grafic card. However
"graphics"
Quoted 8 lines
now 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 devices options. Otherwise the selected PCI slot for the xen-platform device is not available in QEMU.
Quoted 7 lines
Specify PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off, because differently from xenfv, the other QEMU machines do not have that option off 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
This takes me to "[Xen-devel] [v2][PATCH 4/8] xen, gfx passthrough:
reserve 00:02.0 for INTEL IGD" which I can't see the link to (including via the 2 replies). Wrong link perhaps?
A Message-Id is generally a better identifier since I can feed it to the archive of my choice and they aren't subject to e.g. future accidentally renumberings etc.
Quoted 12 lines
Signed-off-by Stefano Stabellini <[email protected]>tools/libxl/libxl_dm.c +1
-0@@ -476,6 +476,29 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,flexarray_vappend (dm_args,"-k" , keymap,NULL ); } +flexarray_append (dm_args,"-machine" );
tools/libxl/libxl_dm.c static char ** libxl__build_device_model_args_new(libxl__gc *gc, · line 489
Quoted 10 lines
tools/libxl/libxl_dm.c +10
-0+switch (b_info->type) { +case LIBXL_DOMAIN_TYPE_PV : +flexarray_append (dm_args,"xenpv" ); +for (i =0 ; b_info->extra_pv && b_info->extra_pv[i] !=NULL ; i++) +flexarray_append (dm_args, b_info->extra_pv[i]); +break ; +case LIBXL_DOMAIN_TYPE_HVM : +flexarray_append (dm_args,"pc-i440fx-1.6,accel=xen" ); +flexarray_append (dm_args,"-global" ); +flexarray_append (dm_args,"PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off" );
FWIW you can use flexarray_append_pair which more naturally gathers an option and its argument together (improving readability).
(personally I think the -machine should be pulled into both cases using this method, but that's not a prereq for accepting the patch IMHO)
Other than that the patch itself seems sound (although I dislike code motion mixed with real changes, I suppose this one is small enough that I can cope).
Ian.
Quoted 5 lines · Ian Campbell
Quoted 2 lines · Stefano Stabellini
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.
Does 1.6 here refer to the qemu version?
Yes, every new QEMU version introduces a new PC machine version string.
Quoted 8 lines
If so then I think we need to
consciously decide that we are happy for Xen 4.5 to depend on qemu >= 1.6 and document it in README.qemu 1.6 was release in August 2013, which is ~10 months ago, it'll be approximately a year old when we release. Are we happy with this from a distro PoV?
Quoted 6 lines
I think it is likely that distros which have an older qemu (and users of such distros) will be using the qemu which comes with Xen (and is naturally new enough) rather than expecting to use the system qemu.
At some point we really ought to grow an option to let the user choose the machine...
I think that the dependency on QEMU >= 1.6 is OK. The Xen PV Device went in v1.6.0 and we certainy cannot go back to versions older than v1.5 due to missing mapcache fixes. Fabio reported multiple times that QEMU 1.6 is the first stable version he tested.
Quoted 23 lines
Quoted 4 lines
Use pc-i440fx-1.6 regardless of the
xen_platform_pcioption. Add the xen-platform device if requested. Choose slot 2 for the xen-platform device for compatibility with current installations. In case of Intel graphic passthrough, slot 2 might be needed by the grafic card. However"graphics"
Quoted 8 lines
now 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 devices options. Otherwise the selected PCI slot for the xen-platform device is not available in QEMU.
Quoted 7 lines
Specify PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off, because differently from xenfv, the other QEMU machines do not have that option off 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
Quoted 7 lines
This takes me to "[Xen-devel] [v2][PATCH 4/8] xen, gfx passthrough:
reserve 00:02.0 for INTEL IGD" which I can't see the link to (including via the 2 replies). Wrong link perhaps?A Message-Id is generally a better identifier since I can feed it to the archive of my choice and they aren't subject to e.g. future accidentally renumberings etc.
Quoted 25 lines
Quoted 11 lines
Signed-off-by Stefano Stabellini <[email protected]>tools/libxl/libxl_dm.c +1
-0@@ -476,6 +476,29 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,flexarray_vappend (dm_args,"-k" , keymap,NULL ); } +flexarray_append (dm_args,"-machine" );tools/libxl/libxl_dm.c static char ** libxl__build_device_model_args_new(libxl__gc *gc, · line 489
Quoted 10 lines
tools/libxl/libxl_dm.c +10
-0+switch (b_info->type) { +case LIBXL_DOMAIN_TYPE_PV : +flexarray_append (dm_args,"xenpv" ); +for (i =0 ; b_info->extra_pv && b_info->extra_pv[i] !=NULL ; i++) +flexarray_append (dm_args, b_info->extra_pv[i]); +break ; +case LIBXL_DOMAIN_TYPE_HVM : +flexarray_append (dm_args,"pc-i440fx-1.6,accel=xen" ); +flexarray_append (dm_args,"-global" ); +flexarray_append (dm_args,"PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off" );FWIW you can use
flexarray_append_pairwhich more naturally gathers an option and its argument together (improving readability).
Quoted 6 lines
(personally I think the -machine should be pulled into both cases using this method, but that's not a prereq for accepting the patch IMHO)
Other than that the patch itself seems sound (although I dislike code motion mixed with real changes, I suppose this one is small enough that I can cope).
Should I go ahead with these minor changes and leave the soundhw problem unsolved? I am not keen on fixing that.
Quoted 6 lines · Stefano Stabellini
Quoted 1 line · Ian Campbell
On Fri, 2014-05-23 at 17:07 +0100, Stefano Stabellini wrote:
I think that the dependency on QEMU >= 1.6 is OK. The Xen PV Device went in v1.6.0 and we certainy cannot go back to versions older than v1.5 due to missing mapcache fixes. Fabio reported multiple times that QEMU 1.6 is the first stable version he tested.
OK, then please can we update the README (and any other relevant docs) as part of this change.
Quoted 27 lines
Quoted 27 lines
Quoted 4 lines
Use pc-i440fx-1.6 regardless of the
xen_platform_pcioption. Add the xen-platform device if requested. Choose slot 2 for the xen-platform device for compatibility with current installations. In case of Intel graphic passthrough, slot 2 might be needed by the grafic card. However"graphics"
Quoted 8 lines
now 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 devices options. Otherwise the selected PCI slot for the xen-platform device is not available in QEMU.
Quoted 7 lines
Specify PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off, because differently from xenfv, the other QEMU machines do not have that option off 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
This takes me to "[Xen-devel] [v2][PATCH 4/8] xen, gfx passthrough:
reserve 00:02.0 for INTEL IGD" which I can't see the link to (including via the 2 replies). Wrong link perhaps?
Quoted 5 lines
Quoted 3 lines
A Message-Id is generally a better identifier since I can feed it to the archive of my choice and they aren't subject to e.g. future accidentally renumberings etc.
(pedantic: the <>s are formally part of the message ID...)
OK, so I'm still not sure why this message is relevant to the sentence which precedes the link.
Quoted 25 lines
Quoted 25 lines
Quoted 11 lines
Signed-off-by Stefano Stabellini <[email protected]>tools/libxl/libxl_dm.c +1
-0@@ -476,6 +476,29 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,flexarray_vappend (dm_args,"-k" , keymap,NULL ); } +flexarray_append (dm_args,"-machine" );tools/libxl/libxl_dm.c static char ** libxl__build_device_model_args_new(libxl__gc *gc, · line 489
Quoted 10 lines
tools/libxl/libxl_dm.c +10
-0+switch (b_info->type) { +case LIBXL_DOMAIN_TYPE_PV : +flexarray_append (dm_args,"xenpv" ); +for (i =0 ; b_info->extra_pv && b_info->extra_pv[i] !=NULL ; i++) +flexarray_append (dm_args, b_info->extra_pv[i]); +break ; +case LIBXL_DOMAIN_TYPE_HVM : +flexarray_append (dm_args,"pc-i440fx-1.6,accel=xen" ); +flexarray_append (dm_args,"-global" ); +flexarray_append (dm_args,"PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off" );FWIW you can use
flexarray_append_pairwhich more naturally gathers an option and its argument together (improving readability).
Quoted 8 lines
Quoted 6 lines
(personally I think the -machine should be pulled into both cases using this method, but that's not a prereq for accepting the patch IMHO)
Other than that the patch itself seems sound (although I dislike code motion mixed with real changes, I suppose this one is small enough that I can cope).
Should I go ahead with these minor changes
Please.
Quoted 4 lines
and leave the soundhw problem
unsolved? I am not keen on fixing that.
I came into this at the point where we were discussing how to support using -device for soundhw, but I missed the bit where it was explained why it was necessary to switch to that scheme.
If this change leads to regressions where existing cfg files no longer work then we need to decide if that would be blocker for 4.5. I can't see why it wouldn't be, but it's up to you and Konrad to agree I suppose.
Ian.
2014-06-11 12:44 GMT+02:00 Ian Campbell <[email protected]>:
Quoted 11 lines · Stefano Stabellini
Quoted 6 lines · Ian Campbell
Quoted 1 line · Stefano Stabellini
I think that the dependency on QEMU >= 1.6 is OK. The Xen PV Device went in v1.6.0 and we certainy cannot go back to versions older than v1.5 due to missing mapcache fixes. Fabio reported multiple times that QEMU 1.6 is the first stable version he tested.
OK, then please can we update the README (and any other relevant docs) as part of this change.
I tested upstream qemu from 1.2 and based on my test at least qemu 1.6.1 is needed to be fairly complete and stable on xen (no major or critical bugs), I started using it in production for a few month, in the next few days I will start to put also qemu 2.0 on a production system.
I want to be remembered to specify >=1.6.1 because 1.6.0 have critical bug that that prevents all hvm domUs start.
Quoted 90 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Use pc-i440fx-1.6 regardless of the
xen_platform_pcioption. Add the xen-platform device if requested. Choose slot 2 for the xen-platform device for compatibility with current installations. In case of Intel graphic passthrough, slot 2 might be needed by the grafic card.However
Quoted 9 lines
Quoted 9 lines
"graphics"
Quoted 6 lines
now 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 devices options. Otherwise the selected PCI slot for the xen-platform device
is
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
not available in QEMU.
Specify PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off, because differently from xenfv, the other QEMU machines do not have that
option
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
off 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
Quoted 6 lines
Quoted 6 lines
This takes me to "[Xen-devel] [v2][PATCH 4/8] xen, gfx passthrough:
reserve 00:02.0 for INTEL IGD" which I can't see the link to (including via the 2 replies). Wrong link perhaps?A Message-Id is generally a better identifier since I can feed it to
the
Quoted 1 line
Quoted 1 line
archive of my choice and they aren't subject to e.g. future
accidentally
Quoted 3 lines
Quoted 1 line
renumberings etc.
(pedantic: the <>s are formally part of the message ID...)
OK, so I'm still not sure why this message is relevant to the sentence which precedes the link.
Quoted 7 lines
Quoted 7 lines
tools/libxl/libxl_dm.c static char **
Quoted 7 lines
Signed-off-by Stefano Stabellini <[email protected]>tools/libxl/libxl_dm.c +0
-0@@ -476,6 +476,29 @@ static char **libxl__build_device_model_args_new(libxl__gc *gc,
Quoted 8 lines
Quoted 8 lines
tools/libxl/libxl_dm.c static char ** libxl__build_device_model_args_new(libxl__gc *gc,
Quoted 8 lines
tools/libxl/libxl_dm.c +5
-0flexarray_vappend (dm_args,"-k" , keymap,NULL ); } +flexarray_append (dm_args,"-machine" ); + switch (b_info->type) { + case LIBXL_DOMAIN_TYPE_PV: + flexarray_append(dm_args, "xenpv"); + for (i = 0; b_info->extra_pv && b_info->extra_pv[i] !=NULL; i++)
Quoted 6 lines
Quoted 6 lines
tools/libxl/libxl_dm.c static char ** libxl__build_device_model_args_new(libxl__gc *gc,
Quoted 6 lines
tools/libxl/libxl_dm.c +6
-0+flexarray_append (dm_args, b_info->extra_pv[i]); +break ; +case LIBXL_DOMAIN_TYPE_HVM : +flexarray_append (dm_args,"pc-i440fx-1.6,accel=xen" ); +flexarray_append (dm_args,"-global" ); + flexarray_append(dm_args,"PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off");
Quoted 4 lines
Quoted 4 lines
FWIW you can use
flexarray_append_pairwhich more naturally gathers an option and its argument together (improving readability).Quoted 8 lines
Quoted 6 lines
(personally I think the -machine should be pulled into both cases using this method, but that's not a prereq for accepting the patch IMHO)
Other than that the patch itself seems sound (although I dislike code motion mixed with real changes, I suppose this one is small enough that I can cope).
Should I go ahead with these minor changes
Please.
Quoted 4 lines
and leave the soundhw problem
unsolved? I am not keen on fixing that.
Quoted 9 lines
I came into this at the point where we were discussing how to support using -device for soundhw, but I missed the bit where it was explained why it was necessary to switch to that scheme.
If this change leads to regressions where existing cfg files no longer work then we need to decide if that would be blocker for 4.5. I can't see why it wouldn't be, but it's up to you and Konrad to agree I suppose.
I think add new option with audio device select and check similar to vga would be good but I'm afraid I do not have time to do it recently. May still be other cases in addition to the audio to cause problems if you put xen-platform's pci slot fixed, I have not tested further. Complete the conversion to -device does not seem blocker, FWIK would be blocking the disks part conversion with q35 cipset but is not currently supported
by xen.
Sorry for my bad english.
Quoted 9 lines
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel