xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for-4.7] Revert "libxl: No emulated disk driver for xvdX disk"
@ 2016-06-08 15:31 Wei Liu
  2016-06-08 15:32 ` Ian Jackson
  0 siblings, 1 reply; 10+ messages in thread
From: Wei Liu @ 2016-06-08 15:31 UTC (permalink / raw)
  To: Xen-devel; +Cc: Anthony PERARD, George Dunlap, Ian Jackson, Wei Liu

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 <wei.liu2@citrix.com>
---
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(-)

diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index 155a653..6ff05c3 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -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");
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-06-13 10:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-08 15:31 [PATCH for-4.7] Revert "libxl: No emulated disk driver for xvdX disk" Wei Liu
2016-06-08 15:32 ` Ian Jackson
2016-06-08 15:52   ` Wei Liu
2016-06-08 16:00     ` George Dunlap
2016-06-08 16:17       ` Olaf Hering
2016-06-08 17:55         ` Konrad Rzeszutek Wilk
2016-06-09 13:23           ` Olaf Hering
2016-06-13  8:41             ` George Dunlap
2016-06-13 10:21               ` Olaf Hering
2016-06-13 10:23                 ` George Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).