libxl: add option for discard support to xl disk configuration
PATCH v5 1/1 libxl: add option for discard support to xl disk configuration
Handle new boolean option discard/no-discard for disk configuration. It is supposed to disable discard support if file based backing storage was intentionally created non-sparse to avoid fragmentation of the file.
The option intended for the backend driver. A new boolean property "discard-enable" is written to the backend node. An upcoming patch for qemu will make use of this property. The kernel blkback driver may be updated as well to disable discard for phy based backing storage.
v5:
replace option discard=0|1 with boolean discard/no-discard
adjust wording in xl-disk-configuration.txt and blkif.h
call libxl_defbool_setdefault directly
adjust linewarapping in device_disk_add
v4:
rebase ontop of commit 6ec48cf4 (direct_io_safe)
rebase ontop of fixup commit for 6ec48cf4 (direct_io_safe)
add testcases to tools/libxl/check-xl-disk-parse
v3:
enable discard unconditionally by always writing discard-enable=1 to xenstore fix typos in xl-disk-configuration.txt
update description in blkif.h, property should be ignored if unsupported v2:
rename xenstore property from discard_enable to discard-enable update description in xl-disk-configuration.txt
use libxl_defbool as type for discard_enable
update check-xl-disk-parse to use "<default>"
add LIBXL_HAVE_LIBXL_DEVICE_DISK_DISCARD_ENABLE to libxl.h
---
Please rerun bison/flex due to changes to .l files Also note the change to the .idl file
docs/misc/xl-disk-configuration.txt | 17 ++++++++ tools/libxl/check-xl-disk-parse | 80 +++++++++++++++++++++++++++++++++---- tools/libxl/libxl.c | 3 ++ tools/libxl/libxl.h | 5 +++ tools/libxl/libxl_types.idl | 1 + tools/libxl/libxlu_disk.c | 1 + tools/libxl/libxlu_disk_l.l | 2 + xen/include/public/io/blkif.h | 10 +++++ 8 files changed, 112 insertions(+), 7 deletions(-)
docs/misc/xl-disk-configuration.txt +17 -0
@@ -217,6 +217,23 @@ If in the future the bug is fixed properly this option will then be silently ignored. +discard / no-discard +--------------- + +Description: Request backend to advertise discard support to frontend +Supported values: discard + no-discard +Mandatory: No +Default value: discard + +An advisory setting for the backend driver, specifying whether, to +advertise discard support (TRIM, UNMAP) to the frontend. The real +benefit of this option is to be able to force it off rather than on. It +can be used to disable "hole punching" for file based backends which +were intentionally created non-sparse to avoid fragmentation of the +file. + + ============================================ DEPRECATED PARAMETERS, PREFIXES AND SYNTAXES ============================================
tools/libxl/check-xl-disk-parse +73 -7
126 lines not on this page · raw message
tools/libxl/libxl.c +3 -0
@@ -2476,6 +2476,9 @@ static void device_disk_add(libxl__egc *egc, uint32_t domid,flexarray_append (back,"direct-io-safe" );flexarray_append (back,"1" ); } +flexarray_append_pair (back,"discard-enable" , +libxl_defbool_val (disk->discard_enable) ? +"1" :"0" );flexarray_append (front,"backend-id" );flexarray_append (front,libxl__sprintf (gc,"%d" , disk->backend_domid));
tools/libxl/libxl.h +5 -0
@@ -102,6 +102,11 @@#define LIBXL_HAVE_DEVICE_DISK_DIRECT_IO_SAFE 1/* +* The libxl_device_disk has the discard_enable field. +*/ +#define LIBXL_HAVE_LIBXL_DEVICE_DISK_DISCARD_ENABLE 1 + +/* * libxl ABI compatibility * * The only guarantee which libxl makes regarding ABI compatibility
tools/libxl/libxl_types.idl +1 -0
@@ -417,6 +417,7 @@ libxl_device_disk = Struct("device_disk", [ ("readwrite", integer), ("is_cdrom", integer), ("direct_io_safe", bool), + ("discard_enable", libxl_defbool), ]) libxl_device_nic = Struct("device_nic", [
tools/libxl/libxlu_disk.c +1 -0
@@ -79,6 +79,7 @@ int xlu_disk_parse(XLU_Config *cfg,if (!disk->pdev_path || !strcmp (disk->pdev_path,"" )) disk->format =LIBXL_DISK_FORMAT_EMPTY ; } +libxl_defbool_setdefault (&disk->discard_enable, !!disk->readwrite);if (!disk->vdev) {xlu__disk_err (&dpc,0 ,"no vdev specified" );
tools/libxl/libxlu_disk_l.l +2 -0
@@ -174,6 +174,8 @@ backendtype=[^,]*,? { STRIP(','); setbackendtype(DPC,FROMEQUALS); } vdev=[^,]*,? { STRIP(','); SAVESTRING("vdev", vdev, FROMEQUALS); } script=[^,]*,? { STRIP(','); SAVESTRING("script", script, FROMEQUALS); } direct-io-safe,? { DPC->disk->direct_io_safe = 1; } +discard,? { libxl_defbool_set(&DPC->disk->discard_enable, true); } +no-discard,? { libxl_defbool_set(&DPC->disk->discard_enable, false); } /* the target magic parameter, eats the rest of the string */
xen/include/public/io/blkif.h +10 -0
@@ -197,6 +197,16 @@ * *------------------------- Backend Device Properties ------------------------- * + * discard-enable + * Values: 0/1 (boolean) + * Default Value: 1 + * + * This optional property, set by the toolstack, instructs the backend + * to offer discard to the frontend. If the property is missing the + * backend should offer discard if the backing storage actually supports + * it. This optional property, set by the toolstack, requests that the + * backend offer, or not offer, discard to the frontend. + * * discard-alignment * Values: <uint32_t> * Default Value: 0
Quoted 8 lines · Olaf Hering
Handle new boolean option discard/no-discard for disk configuration. It is supposed to disable discard support if file based backing storage was intentionally created non-sparse to avoid fragmentation of the file.
The option intended for the backend driver. A new boolean property "discard-enable" is written to the backend node. An upcoming patch for qemu will make use of this property. The kernel blkback driver may be updated as well to disable discard for phy based backing storage.
Stefano,
please backport these changes from qemu.git to qemu-xen.git so that discard:
58da5b1e01a586eb5a52ba3eec342d6828269839 xen_disk: fix io accounting f31352041bdde436c3f6d07e1525a42e48dec215 xen_disk: add discard support
Thanks.
Olaf
Olaf Hering writes ("Re: [PATCH v5] libxl: add option for discard support to xl disk configuration"):
Quoted 10 lines · Olaf Hering
Quoted 8 lines
Handle new boolean option discard/no-discard for disk configuration. It is supposed to disable discard support if file based backing storage was intentionally created non-sparse to avoid fragmentation of the file.
The option intended for the backend driver. A new boolean property "discard-enable" is written to the backend node. An upcoming patch for qemu will make use of this property. The kernel blkback driver may be updated as well to disable discard for phy based backing storage.
Quoted 7 lines
Stefano,
please backport these changes from qemu.git to qemu-xen.git so that discard:
58da5b1e01a586eb5a52ba3eec342d6828269839xen_disk: fix io accountingf31352041bdde436c3f6d07e1525a42e48dec215xen_disk: add discard support
Do you mean you want these patches backported from our qemu upstream to the old ("traditional") xen qemu fork ?
I'm the maintainer for the latter but it's very much in the deep freeze, maintenance wise. I don't think we're going to add discard support to it.
If there's something wrong with the io accounting in it I would consider a backported patch to fix it.
Thanks,
Ian.
Quoted 9 lines · Ian Jackson
Olaf Hering writes ("Re: [PATCH v5] libxl: add option for discard support to xl disk configuration"):
Quoted 5 lines
Stefano,
please backport these changes from qemu.git to qemu-xen.git so that discard:58da5b1e01a586eb5a52ba3eec342d6828269839xen_disk: fix io accountingf31352041bdde436c3f6d07e1525a42e48dec215xen_disk: add discard supportDo you mean you want these patches backported from our qemu upstream to the old ("traditional") xen qemu fork ?
I mean this copy, sorry if the wording was misleading:git://xenbits.xen.org/qemu-upstream-unstable.git
Looks like its state is currently at "1.6.2 + something".
Olaf
Quoted 9 lines · Olaf Hering
Quoted 7 lines · Ian Jackson
Olaf Hering writes ("Re: [PATCH v5] libxl: add option for discard support to xl disk configuration"):
Quoted 5 lines
Stefano,
please backport these changes from qemu.git to qemu-xen.git so that discard:58da5b1e01a586eb5a52ba3eec342d6828269839xen_disk: fix io accountingf31352041bdde436c3f6d07e1525a42e48dec215xen_disk: add discard support
Quoted 7 lines
Quoted 2 lines
Do you mean you want these patches backported from our qemu upstream to the old ("traditional") xen qemu fork ?
I mean this copy, sorry if the wording was misleading:
git://xenbits.xen.org/qemu-upstream-unstable.gitLooks like its state is currently at "1.6.2 + something".
Right. I didn't reply but I agree.
I think that we should upgrade qemu-upstream-unstable to QEMU v2.0, plus this series:
http://marc.info/?l=qemu-devel&m=139948451916847&w=2
but I haven't had the time to do it yet.
Il 12/05/2014 17:44, Stefano Stabellini ha scritto:
Quoted 14 lines · Olaf Hering
Quoted 13 lines · Ian Jackson
Quoted 9 lines
Olaf Hering writes ("Re: [PATCH v5] libxl: add option for discard support to xl disk configuration"):
Quoted 5 lines
Stefano,
please backport these changes from qemu.git to qemu-xen.git so that discard:58da5b1e01a586eb5a52ba3eec342d6828269839xen_disk: fix io accountingf31352041bdde436c3f6d07e1525a42e48dec215xen_disk: add discard supportDo you mean you want these patches backported from our qemu upstream to the old ("traditional") xen qemu fork ?
I mean this copy, sorry if the wording was misleading:
git://xenbits.xen.org/qemu-upstream-unstable.git
Quoted 8 lines
Quoted 1 line
Looks like its state is currently at "1.6.2 + something".
Right. I didn't reply but I agree.
I think that we should upgrade qemu-upstream-unstable to QEMU v2.0, plus this series:http://marc.info/?l=qemu-devel&m=139948451916847&w=2
but I haven't had the time to do it yet.
If nobody does it before, I'll prepare andtest and the qemu 2.0.0 + xen missed patches as soon as I have time and I'll post iton github where you can easily do a pull. Or anything else "special" are needed?
Is also important remember to update also the seabios version to 1.7.4 to avoid regression in some cases with qemu >=1.7.
Quoted 5 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 21 lines · Fabio Fantoni
Il 12/05/2014 17:44, Stefano Stabellini ha scritto:
Quoted 20 lines · Olaf Hering
Quoted 9 lines · Ian Jackson
Quoted 8 lines
Olaf Hering writes ("Re: [PATCH v5] libxl: add option for discard support to xl disk configuration"):
Quoted 5 lines
Stefano,
please backport these changes from qemu.git to qemu-xen.git so that discard:58da5b1e01a586eb5a52ba3eec342d6828269839xen_disk: fix io accountingf31352041bdde436c3f6d07e1525a42e48dec215xen_disk: add discard supportQuoted 6 lines
Quoted 2 lines
Do you mean you want these patches backported from our qemu upstream to the old ("traditional") xen qemu fork ?
I mean this copy, sorry if the wording was misleading:
git://xenbits.xen.org/qemu-upstream-unstable.gitLooks like its state is currently at "1.6.2 + something".
Right. I didn't reply but I agree.
I think that we should upgrade qemu-upstream-unstable to QEMU v2.0, plus this series:
Quoted 8 lines
Quoted 3 lines
http://marc.info/?l=qemu-devel&m=139948451916847&w=2
but I haven't had the time to do it yet.
If nobody does it before, I'll prepare andtest and the qemu 2.0.0 + xen missed patches as soon as I have time and I'll post iton github where you can easily do a pull.
Or anything else "special" are needed?
No, that would be all.
Make sure to only have these commits on top of v2.0.0:
f31352041bdde436c3f6d07e1525a42e48dec215 xen_disk: add discard support 8b6bb0ad17ab776239ba2bfc99ff107ada01c506 pass an inclusive address range to xc_domain_pin_memory_cacheattr 04b0de0ee83fe464487406064afe14de27decc24 xen: factor out common functions ad3f7e31bfc148135d93c176d1c9197933fa8344 xen: move Xen HVM files under hw/i386/xen d5fdb85e3d2c319603f87f3205689ed5659f621d xen: move Xen PV machine files to hw/xenpv c976437c7dba9c7444fb41df45468968aaa326ad qemu-xen: free all the pirqs for msi/msix when driver unload fe680d0dac85e0f2d6c3b53838c250f6e0b1f49b exec: Limit translation limiting in address_space_translate to xen
And please test the updated QEMU with PV (qdisk) and HVM guests. If everything works as expected, I can just pull your tree.
Quoted 2 lines
Is also important remember to update also the seabios version to 1.7.4 to avoid regression in some cases with qemu >=1.7.
Quoted 42 lines · Stefano Stabellini
Quoted 21 lines · Fabio Fantoni
Il 12/05/2014 17:44, Stefano Stabellini ha scritto:
Quoted 20 lines · Olaf Hering
Quoted 9 lines · Ian Jackson
Quoted 8 lines
Olaf Hering writes ("Re: [PATCH v5] libxl: add option for discard support to xl disk configuration"):
Quoted 5 lines
Stefano,
please backport these changes from qemu.git to qemu-xen.git so that discard:58da5b1e01a586eb5a52ba3eec342d6828269839xen_disk: fix io accountingf31352041bdde436c3f6d07e1525a42e48dec215xen_disk: add discard supportQuoted 6 lines
Quoted 2 lines
Do you mean you want these patches backported from our qemu upstream to the old ("traditional") xen qemu fork ?
I mean this copy, sorry if the wording was misleading:
git://xenbits.xen.org/qemu-upstream-unstable.gitLooks like its state is currently at "1.6.2 + something".
Right. I didn't reply but I agree.
I think that we should upgrade qemu-upstream-unstable to QEMU v2.0, plus this series:Quoted 8 lines
Quoted 3 lines
http://marc.info/?l=qemu-devel&m=139948451916847&w=2
but I haven't had the time to do it yet.
If nobody does it before, I'll prepare andtest and the qemu 2.0.0 + xen missed patches as soon as I have time and I'll post iton github where you can easily do a pull.
Or anything else "special" are needed?No, that would be all.
Make sure to only have these commits on top of v2.0.0:
f31352041bdde436c3f6d07e1525a42e48dec215xen_disk: add discard support8b6bb0ad17ab776239ba2bfc99ff107ada01c506pass an inclusive address range toxc_domain_pin_memory_cacheattr04b0de0ee83fe464487406064afe14de27decc24xen: factor out common functionsad3f7e31bfc148135d93c176d1c9197933fa8344xen: move Xen HVM files under hw/i386/xend5fdb85e3d2c319603f87f3205689ed5659f621dxen: move Xen PV machine files to hw/xenpvc976437c7dba9c7444fb41df45468968aaa326adqemu-xen: free all the pirqs for msi/msix when driver unloadfe680d0dac85e0f2d6c3b53838c250f6e0b1f49bexec: Limit translation limiting inaddress_space_translateto xen
Quoted 2 lines
And please test the updated QEMU with PV (qdisk) and HVM guests. If everything works as expected, I can just pull your tree.
I had few minutes and I prepared a branch:
git://xenbits.xen.org/people/sstabellini/qemu-dm.git qemu-xen-for-4.5
however your help testing QEMU with HVM and PV guests would still be very much appreciated and save me a lot of time!
Il 13/05/2014 19:23, Stefano Stabellini ha scritto:
Quoted 41 lines · Stefano Stabellini
Quoted 40 lines · Fabio Fantoni
Quoted 21 lines
Il 12/05/2014 17:44, Stefano Stabellini ha scritto:
Quoted 20 lines · Olaf Hering
Quoted 9 lines · Ian Jackson
Quoted 8 lines
Olaf Hering writes ("Re: [PATCH v5] libxl: add option for discard support to xl disk configuration"):
Quoted 5 lines
Stefano,
please backport these changes from qemu.git to qemu-xen.git so that discard:58da5b1e01a586eb5a52ba3eec342d6828269839xen_disk: fix io accountingf31352041bdde436c3f6d07e1525a42e48dec215xen_disk: add discard supportQuoted 6 lines
Quoted 2 lines
Do you mean you want these patches backported from our qemu upstream to the old ("traditional") xen qemu fork ?
I mean this copy, sorry if the wording was misleading:
git://xenbits.xen.org/qemu-upstream-unstable.gitLooks like its state is currently at "1.6.2 + something".
Right. I didn't reply but I agree.
I think that we should upgrade qemu-upstream-unstable to QEMU v2.0, plus this series:Quoted 7 lines
Quoted 3 lines
http://marc.info/?l=qemu-devel&m=139948451916847&w=2
but I haven't had the time to do it yet.
If nobody does it before, I'll prepare andtest and the qemu 2.0.0 + xen missed patches as soon as I have time and I'll post iton github where you can easily do a pull.
Or anything else "special" are needed?No, that would be all.
Make sure to only have these commits on top of v2.0.0:
f31352041bdde436c3f6d07e1525a42e48dec215xen_disk: add discard support8b6bb0ad17ab776239ba2bfc99ff107ada01c506pass an inclusive address range toxc_domain_pin_memory_cacheattr04b0de0ee83fe464487406064afe14de27decc24xen: factor out common functionsad3f7e31bfc148135d93c176d1c9197933fa8344xen: move Xen HVM files under hw/i386/xend5fdb85e3d2c319603f87f3205689ed5659f621dxen: move Xen PV machine files to hw/xenpvc976437c7dba9c7444fb41df45468968aaa326adqemu-xen: free all the pirqs for msi/msix when driver unloadfe680d0dac85e0f2d6c3b53838c250f6e0b1f49bexec: Limit translation limiting inaddress_space_translateto xen
Quoted 8 lines
Quoted 2 lines
And please test the updated QEMU with PV (qdisk) and HVM guests. If everything works as expected, I can just pull your tree.
I had few minutes and I prepared a branch:
git://xenbits.xen.org/people/sstabellini/qemu-dm.gitqemu-xen-for-4.5however your help testing QEMU with HVM and PV guests would still be very much appreciated and save me a lot of time!
I did some fast tests with pv and hvm domUs (both with qdisk's disks) and I not found regression for now.
Note: for not add regression in some cases before (or when) push the use of qemu 2.0 in xen-unstable there must also be this serie: [PATCH 0/2] tools: update to SeaBIOS 1.7.4
Quoted 63 lines · Fabio Fantoni
Il 13/05/2014 19:23, Stefano Stabellini ha scritto:
Quoted 53 lines · Stefano Stabellini
Quoted 52 lines · Fabio Fantoni
Quoted 28 lines
Il 12/05/2014 17:44, Stefano Stabellini ha scritto:
Quoted 27 lines · Olaf Hering
Quoted 12 lines · Ian Jackson
Quoted 11 lines
Olaf Hering writes ("Re: [PATCH v5] libxl: add option for discard support to xl disk configuration"):
Quoted 8 lines
Stefano,
please backport these changes from qemu.git to qemu-xen.git so that
discard:58da5b1e01a586eb5a52ba3eec342d6828269839xen_disk: fix io accountingf31352041bdde436c3f6d07e1525a42e48dec215xen_disk: add discard supportQuoted 7 lines
Quoted 3 lines
Do you mean you want these patches backported from our qemu upstream
to the old ("traditional") xen qemu fork ?I mean this copy, sorry if the wording was misleading:
git://xenbits.xen.org/qemu-upstream-unstable.gitLooks like its state is currently at "1.6.2 + something".
Right. I didn't reply but I agree.
I think that we should upgrade qemu-upstream-unstable to QEMU v2.0, plus
this series:Quoted 7 lines
Quoted 1 line
but I haven't had the time to do it yet.
If nobody does it before, I'll prepare andtest and the qemu 2.0.0 + xen missed
patches as soon as I have time and I'll post iton github where you can easily
do a pull.
Or anything else "special" are needed?No, that would be all.
Make sure to only have these commits on top of v2.0.0:
f31352041bdde436c3f6d07e1525a42e48dec215xen_disk: add discard support8b6bb0ad17ab776239ba2bfc99ff107ada01c506pass an inclusive address range toxc_domain_pin_memory_cacheattr04b0de0ee83fe464487406064afe14de27decc24xen: factor out common functionsad3f7e31bfc148135d93c176d1c9197933fa8344xen: move Xen HVM files under hw/i386/xend5fdb85e3d2c319603f87f3205689ed5659f621dxen: move Xen PV machine files to hw/xenpvc976437c7dba9c7444fb41df45468968aaa326adqemu-xen: free all the pirqs for msi/msix when driver unloadfe680d0dac85e0f2d6c3b53838c250f6e0b1f49bexec: Limit translation limiting inaddress_space_translateto xenQuoted 8 lines
Quoted 2 lines
And please test the updated QEMU with PV (qdisk) and HVM guests. If everything works as expected, I can just pull your tree.
I had few minutes and I prepared a branch:
git://xenbits.xen.org/people/sstabellini/qemu-dm.gitqemu-xen-for-4.5however your help testing QEMU with HVM and PV guests would still be very much appreciated and save me a lot of time!
Quoted 6 lines
I did some fast tests with pv and hvm domUs (both with qdisk's disks) and I not found regression for now.
Note: for not add regression in some cases before (or when) push the use of qemu 2.0 in xen-unstable there must also be this serie: [PATCH 0/2] tools:
update to SeaBIOS 1.7.4
Is the SeaBIOS update actually required to update QEMU?
I am not saying we shouldn't update SeaBIOS but I would like to know if I have to wait until SeaBIOS has been updated or I can go ahead and update QEMU now.
Il 14/05/2014 13:09, Stefano Stabellini ha scritto:
Quoted 66 lines · Fabio Fantoni
Quoted 65 lines
Il 13/05/2014 19:23, Stefano Stabellini ha scritto:
Quoted 53 lines · Stefano Stabellini
Quoted 52 lines · Fabio Fantoni
Quoted 28 lines
Il 12/05/2014 17:44, Stefano Stabellini ha scritto:
Quoted 27 lines · Olaf Hering
Quoted 12 lines · Ian Jackson
Quoted 11 lines
Olaf Hering writes ("Re: [PATCH v5] libxl: add option for discard support to xl disk configuration"):
Quoted 8 lines
Stefano,
please backport these changes from qemu.git to qemu-xen.git so that
discard:58da5b1e01a586eb5a52ba3eec342d6828269839xen_disk: fix io accountingf31352041bdde436c3f6d07e1525a42e48dec215xen_disk: add discard supportQuoted 7 lines
Quoted 3 lines
Do you mean you want these patches backported from our qemu upstream
to the old ("traditional") xen qemu fork ?I mean this copy, sorry if the wording was misleading:
git://xenbits.xen.org/qemu-upstream-unstable.gitLooks like its state is currently at "1.6.2 + something".
Right. I didn't reply but I agree.
I think that we should upgrade qemu-upstream-unstable to QEMU v2.0, plus
this series:Quoted 7 lines
Quoted 1 line
but I haven't had the time to do it yet.
If nobody does it before, I'll prepare andtest and the qemu 2.0.0 + xen missed
patches as soon as I have time and I'll post iton github where you can easily
do a pull.
Or anything else "special" are needed?No, that would be all.
Make sure to only have these commits on top of v2.0.0:
f31352041bdde436c3f6d07e1525a42e48dec215xen_disk: add discard support8b6bb0ad17ab776239ba2bfc99ff107ada01c506pass an inclusive address range toxc_domain_pin_memory_cacheattr04b0de0ee83fe464487406064afe14de27decc24xen: factor out common functionsad3f7e31bfc148135d93c176d1c9197933fa8344xen: move Xen HVM files under hw/i386/xend5fdb85e3d2c319603f87f3205689ed5659f621dxen: move Xen PV machine files to hw/xenpvc976437c7dba9c7444fb41df45468968aaa326adqemu-xen: free all the pirqs for msi/msix when driver unloadfe680d0dac85e0f2d6c3b53838c250f6e0b1f49bexec: Limit translation limiting inaddress_space_translateto xenQuoted 8 lines
Quoted 2 lines
And please test the updated QEMU with PV (qdisk) and HVM guests. If everything works as expected, I can just pull your tree.
I had few minutes and I prepared a branch:
git://xenbits.xen.org/people/sstabellini/qemu-dm.gitqemu-xen-for-4.5however your help testing QEMU with HVM and PV guests would still be very much appreciated and save me a lot of time!
I did some fast tests with pv and hvm domUs (both with qdisk's disks) and I not found regression for now.
Quoted 7 lines
Quoted 3 lines
Note: for not add regression in some cases before (or when) push the use of qemu 2.0 in xen-unstable there must also be this serie: [PATCH 0/2] tools:
update to SeaBIOS 1.7.4Is the SeaBIOS update actually required to update QEMU?
I am not saying we shouldn't update SeaBIOS but I would like to know if I have to wait until SeaBIOS has been updated or I can go ahead and update QEMU now.
I not know if is required but I already saw 4 cases reported by other users here and on debian that had critical regression with hvm domUs using qemu 1.7 or 2.0 with seabios 1.7.3, all solved upgrading seabios to 1.7.4
Quoted 83 lines · Fabio Fantoni
Il 14/05/2014 13:09, Stefano Stabellini ha scritto:
Quoted 82 lines · Fabio Fantoni
Quoted 81 lines
Il 13/05/2014 19:23, Stefano Stabellini ha scritto:
Quoted 64 lines · Stefano Stabellini
Quoted 63 lines · Fabio Fantoni
Quoted 33 lines
Il 12/05/2014 17:44, Stefano Stabellini ha scritto:
Quoted 29 lines · Olaf Hering
Quoted 15 lines · Ian Jackson
Quoted 14 lines
Olaf Hering writes ("Re: [PATCH v5] libxl: add option for discard
support to xl disk configuration"):Quoted 10 lines
Stefano,
please backport these changes from qemu.git to qemu-xen.git so
that
discard:58da5b1e01a586eb5a52ba3eec342d6828269839xen_disk: fix io accountingf31352041bdde436c3f6d07e1525a42e48dec215xen_disk: add discard
supportQuoted 7 lines
Quoted 3 lines
Do you mean you want these patches backported from our qemu upstream
to the old ("traditional") xen qemu fork ?I mean this copy, sorry if the wording was misleading:
git://xenbits.xen.org/qemu-upstream-unstable.gitLooks like its state is currently at "1.6.2 + something".
Right. I didn't reply but I agree.
I think that we should upgrade qemu-upstream-unstable to QEMU v2.0,
plus
this series:Quoted 3 lines
http://marc.info/?l=qemu-devel&m=139948451916847&w=2
but I haven't had the time to do it yet.
Quoted 8 lines
If nobody does it before, I'll prepare andtest and the qemu 2.0.0 + xen
missed
patches as soon as I have time and I'll post iton github where you can
easily
do a pull.
Or anything else "special" are needed?No, that would be all.
Make sure to only have these commits on top of v2.0.0:
f31352041bdde436c3f6d07e1525a42e48dec215xen_disk: add discard support8b6bb0ad17ab776239ba2bfc99ff107ada01c506pass an inclusive address range
toxc_domain_pin_memory_cacheattr04b0de0ee83fe464487406064afe14de27decc24xen: factor out common functionsad3f7e31bfc148135d93c176d1c9197933fa8344xen: move Xen HVM files under hw/i386/xend5fdb85e3d2c319603f87f3205689ed5659f621dxen: move Xen PV machine files to
hw/xenpvc976437c7dba9c7444fb41df45468968aaa326adqemu-xen: free all the pirqs for
msi/msix when driver unloadfe680d0dac85e0f2d6c3b53838c250f6e0b1f49bexec: Limit translation limiting
inaddress_space_translateto xenQuoted 8 lines
Quoted 2 lines
And please test the updated QEMU with PV (qdisk) and HVM guests. If everything works as expected, I can just pull your tree.
I had few minutes and I prepared a branch:
git://xenbits.xen.org/people/sstabellini/qemu-dm.gitqemu-xen-for-4.5however your help testing QEMU with HVM and PV guests would still be very much appreciated and save me a lot of time!
I did some fast tests with pv and hvm domUs (both with qdisk's disks) and I
not found regression for now.Note: for not add regression in some cases before (or when) push the use of
qemu 2.0 in xen-unstable there must also be this serie: [PATCH 0/2] tools:
update to SeaBIOS 1.7.4
Quoted 8 lines
Quoted 4 lines
Is the SeaBIOS update actually required to update QEMU?
I am not saying we shouldn't update SeaBIOS but I would like to know if I have to wait until SeaBIOS has been updated or I can go ahead and update QEMU now.I not know if is required but I already saw 4 cases reported by other users here and on debian that had critical regression with hvm domUs using qemu 1.7 or 2.0 with seabios 1.7.3, all solved upgrading seabios to 1.7.4
Thanks, I'll wait for the upgrade then.
Olaf Hering writes ("[PATCH v5] libxl: add option for discard support to xl disk configuration"):
Quoted 8 lines
Handle new boolean option discard/no-discard for disk configuration. It is supposed to disable discard support if file based backing storage was intentionally created non-sparse to avoid fragmentation of the file.
The option intended for the backend driver. A new boolean property "discard-enable" is written to the backend node. An upcoming patch for qemu will make use of this property. The kernel blkback driver may be updated as well to disable discard for phy based backing storage.
docs/misc/xl-disk-configuration.txt If in the future the bug is fixed properly this option will then be · line 223
Quoted 4 lines
docs/misc/xl-disk-configuration.txt +4
-0+discard / no-discard +--------------- + +Description: Request backend to advertise discard support to frontend
I have one tiny comment, which is that slightly better English grammar here would be "Request that backend advertise". If Ian C agrees then we should make this change as we commit it.
Thanks,
Ian.