All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libxl: No emulated disk driver for xvdX disk
@ 2015-10-14 11:05 Anthony PERARD
  2015-10-16 14:01 ` Ian Jackson
  0 siblings, 1 reply; 14+ messages in thread
From: Anthony PERARD @ 2015-10-14 11:05 UTC (permalink / raw)
  To: xen-devel
  Cc: Anthony PERARD, Wei Liu, Ian Jackson, Ian Campbell,
	Stefano Stabellini

When a guest configuration list xvdX for its disks, there is no need to
provide an emulated driver for the same target.

Such configuration can work with the OVMF firmware, as it supports PV
disk.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
 tools/libxl/libxl_dm.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index 71a1a3e..5371f72 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -1190,6 +1190,12 @@ static int libxl__build_device_model_args_new(libxl__gc *gc,
                     drive = libxl__sprintf
                         (gc, "file=%s,if=scsi,bus=0,unit=%d,format=%s,cache=writeback",
                          pdev_path, disk, format);
+                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) {
                     flexarray_vappend(dm_args, "-drive",
                         GCSPRINTF("file=%s,if=none,id=ahcidisk-%d,format=%s,cache=writeback",
-- 
Anthony PERARD

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

end of thread, other threads:[~2015-10-27 14:52 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-14 11:05 [PATCH] libxl: No emulated disk driver for xvdX disk Anthony PERARD
2015-10-16 14:01 ` Ian Jackson
2015-10-22 15:54   ` Ian Campbell
2015-10-26 21:53   ` Boris Ostrovsky
2015-10-26 21:53   ` Boris Ostrovsky
2015-10-27 11:11     ` Stefano Stabellini
2015-10-27 11:31       ` George Dunlap
2015-10-27 13:19         ` Ian Jackson
2015-10-27 13:25           ` Boris Ostrovsky
2015-10-27 14:26             ` Ian Jackson
2015-10-27 14:35               ` Boris Ostrovsky
2015-10-27 14:43                 ` Ian Jackson
2015-10-27 14:52                   ` George Dunlap
2015-10-27 14:34           ` George Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.