Revert "libxl: No emulated disk driver for xvdX disk"
PATCH 1/1 Revert "libxl: No emulated disk driver for xvdX disk"
This reverts c0c099d157cc5bc942afef766cf141628a6380a1.
That commit causes regression on the semantics of our diskspec. See [0] for more information.
[0] http://lists.xen.org/archives/html/xen-devel/2016-05/msg02876.html
---
Please review carefully about this patch. There are one commit that is of interest: ef6cb76026628e26e3d1ae53c50ccde1c3c78b1b
I believe the reverting the snippet in question won't cause security issue as described in XSA-142, because the code to create IDE disk still checks if the disk is read-only.
--- tools/libxl/libxl_dm.c | 6 ------ 1 file changed, 6 deletions(-)
tools/libxl/libxl_dm.c +0 -6
@@ -1422,12 +1422,6 @@ static int libxl__build_device_model_args_new(libxl__gc *gc, format, &disks[i], colo_mode); - }else if (strncmp (disks[i].vdev,"xvd" ,3 ) ==0 ) { -/* -* Do not add any emulated disk when PV disk are -* explicitly asked for. -*/ -continue ; }else if (disk <6 && b_info->u.hvm.hdtype ==LIBXL_HDTYPE_AHCI ) {if (!disks[i].readwrite) {LOG (ERROR ,"qemu-xen doesn't support read-only AHCI disk drivers" );
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Wei Liu writes ("[PATCH for-4.7] Revert "libxl: No emulated disk driver for xvdX disk""):
Quoted 7 lines
This reverts
c0c099d157cc5bc942afef766cf141628a6380a1.That commit causes regression on the semantics of our diskspec. See [0] for more information.
[0] http://lists.xen.org/archives/html/xen-devel/2016-05/msg02876.html
Quoted 8 lines
Signed-off-by Wei Liu <[email protected]>---
Please review carefully about this patch. There are one commit that is of interest:ef6cb76026628e26e3d1ae53c50ccde1c3c78b1bI believe the reverting the snippet in question won't cause security issue as described in XSA-142, because the code to create IDE disk still checks if the disk is read-only.
I think this is the right answer for 4.7. In 4.8 we should do something like one of the proposals being discussed in this thread.
Thanks,
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 13 lines · Ian Jackson
Wei Liu writes ("[PATCH for-4.7] Revert "libxl: No emulated disk driver for xvdX disk""):
Quoted 12 lines
This reverts
c0c099d157cc5bc942afef766cf141628a6380a1.That commit causes regression on the semantics of our diskspec. See [0] for more information.
[0] http://lists.xen.org/archives/html/xen-devel/2016-05/msg02876.html
Signed-off-by Wei Liu <[email protected]>---
Please review carefully about this patch. There are one commit that is of interest:ef6cb76026628e26e3d1ae53c50ccde1c3c78b1b
Quoted 9 lines
Quoted 3 lines
I believe the reverting the snippet in question won't cause security issue as described in XSA-142, because the code to create IDE disk still checks if the disk is read-only.
Acked-by Ian Jackson <[email protected]>I think this is the right answer for 4.7. In 4.8 we should do something like one of the proposals being discussed in this thread.
Thanks. And Anthony said on IRC this patch looked good to him.
I've queued this for committing to both unstable and 4.7.
Wei.
Quoted 2 lines
Thanks,
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 20 lines · Wei Liu
Quoted 19 lines · Ian Jackson
Wei Liu writes ("[PATCH for-4.7] Revert "libxl: No emulated disk driver for xvdX disk""):
Quoted 7 lines
This reverts
c0c099d157cc5bc942afef766cf141628a6380a1.That commit causes regression on the semantics of our diskspec. See [0] for more information.
[0] http://lists.xen.org/archives/html/xen-devel/2016-05/msg02876.html
Quoted 8 lines
Signed-off-by Wei Liu <[email protected]>---
Please review carefully about this patch. There are one commit that is of interest:ef6cb76026628e26e3d1ae53c50ccde1c3c78b1bI believe the reverting the snippet in question won't cause security issue as described in XSA-142, because the code to create IDE disk still checks if the disk is read-only.
Acked-by Ian Jackson <[email protected]>
Quoted 7 lines
Quoted 3 lines
I think this is the right answer for 4.7. In 4.8 we should do something like one of the proposals being discussed in this thread.
Thanks. And Anthony said on IRC this patch looked good to him.
I've queued this for committing to both unstable and 4.7.
CC'ing Olaf and Konrad for their information. :-)
-George
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 1 line · George Dunlap
CC'ing Olaf and Konrad for their information. :-)
I'm fine with the revert.
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 5 lines · Olaf Hering
Quoted 1 line · George Dunlap
CC'ing Olaf and Konrad for their information. :-)
I'm fine with the revert.
Me too!
Thanks!
Quoted 2 lines
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 6 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Olaf Hering
Quoted 1 line · George Dunlap
CC'ing Olaf and Konrad for their information. :-)
I'm fine with the revert.
Another case is pvgrub2, which also uses the 'dev' property to name the disk internally "xen/$vdev". Not sure if any generated grub.cfg actually contains tne name. But now that its reverted everything should continue to work as it did in xen-4.6.
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 5 lines · Olaf Hering
Quoted 3 lines · Konrad Rzeszutek Wilk
Quoted 2 lines · Olaf Hering
On Wed, Jun 08, George Dunlap wrote:
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
CC'ing Olaf and Konrad for their information. :-)
I'm fine with the revert.
Another case is pvgrub2, which also uses the 'dev' property to name the disk internally "xen/$vdev". Not sure if any generated grub.cfg actually contains tne name. But now that its reverted everything should continue to work as it did in xen-4.6.
Ah, so pvgrub2 follows the xenolinux code, rather than the pvops code?
That should definitely be changed ASAP.
-George
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 2 lines · George Dunlap
Ah, so pvgrub2 follows the xenolinux code, rather than the pvops code?
That should definitely be changed ASAP.
What needs to be changed? It has to construct some internal identifier, and appearently "xen/$vdev" was the most obvious choice.
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 7 lines · Olaf Hering
Quoted 2 lines · George Dunlap
Ah, so pvgrub2 follows the xenolinux code, rather than the pvops code?
That should definitely be changed ASAP.What needs to be changed? It has to construct some internal identifier, and appearently "xen/$vdev" was the most obvious choice.
I took you to mean that the on-disk grub.cfg would contain references to "hda" rather than "xvda", which would be problematic. If there's no user-visible effect of this choice then of course it doesn't matter in the slightest (and bringing it up was a red herring).
-George
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel