qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] move 'unsafe' to end of caching modes in help
@ 2010-07-21 20:32 Bruce Rogers
  2010-07-21 20:55 ` Anthony Liguori
  2010-07-27 10:26 ` Daniel P. Berrange
  0 siblings, 2 replies; 35+ messages in thread
From: Bruce Rogers @ 2010-07-21 20:32 UTC (permalink / raw)
  To: qemu-devel

Libvirt parses qemu help output to determine qemu features. In particular
 it probes for the following: "cache=writethrough|writeback|none". The
 addition of the unsafe cache mode was inserted within this string, as
 opposed to being added to the end, which impacted libvirt's probe.
 Unbreak libvirt by keeping the existing cache modes intact and add
 unsafe to the end.

This problem only manifests itself if a caching mode is explicitly
specified in the libvirt xml, in which case older syntax for caching is
passed to qemu, which it  no longer understands.

Signed-off-by: Bruce Rogers <brogers@novell.com>

---
 qemu-options.hx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/qemu-options.hx b/qemu-options.hx
index 0d7dd90..9ecc54e 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -118,7 +118,7 @@ ETEXI
 DEF("drive", HAS_ARG, QEMU_OPTION_drive,
     "-drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i]\n"
     "       [,cyls=c,heads=h,secs=s[,trans=t]][,snapshot=on|off]\n"
-    "       [,cache=writethrough|writeback|unsafe|none][,format=f]\n"
+    "       [,cache=writethrough|writeback|none|unsafe][,format=f]\n"
     "       [,serial=s][,addr=A][,id=name][,aio=threads|native]\n"
     "       [,readonly=on|off]\n"
     "                use 'file' as a drive image\n", QEMU_ARCH_ALL)
-- 
1.6.2.4

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

end of thread, other threads:[~2010-08-03  9:43 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-21 20:32 [Qemu-devel] [PATCH] move 'unsafe' to end of caching modes in help Bruce Rogers
2010-07-21 20:55 ` Anthony Liguori
2010-07-21 21:32   ` Daniel P. Berrange
2010-07-21 21:45     ` Anthony Liguori
2010-07-21 21:58       ` Daniel P. Berrange
2010-07-21 23:39         ` Anthony Liguori
2010-07-22  0:45           ` Jamie Lokier
2010-07-22  6:53           ` Markus Armbruster
2010-07-22  8:42           ` Daniel P. Berrange
2010-07-22 14:19             ` Anthony Liguori
2010-07-23  8:00               ` Markus Armbruster
2010-07-26 15:53                 ` Anthony Liguori
2010-07-26 16:26                   ` Avi Kivity
2010-07-26 16:29                     ` Avi Kivity
2010-07-26 19:03                       ` Anthony Liguori
2010-07-26 19:24                         ` Avi Kivity
2010-07-26 19:43                           ` [Qemu-devel] " Juan Quintela
2010-07-26 16:40                     ` [Qemu-devel] " Anthony Liguori
2010-07-26 16:54                       ` Avi Kivity
2010-07-26 18:59                         ` Anthony Liguori
2010-07-26 19:19                           ` Avi Kivity
2010-07-26 19:35                             ` Anthony Liguori
2010-07-26 19:43                               ` Avi Kivity
2010-07-26 20:03                                 ` Anthony Liguori
2010-07-27  8:11                               ` Markus Armbruster
2010-07-27  9:47                                 ` Jes Sorensen
2010-07-27 12:30                                   ` Cole Robinson
2010-07-27 12:50                                     ` Anthony Liguori
2010-07-27 13:35                                       ` Cole Robinson
2010-07-27  8:26                               ` Markus Armbruster
2010-08-03  9:43                                 ` Richard W.M. Jones
2010-07-27  8:56                   ` Kevin Wolf
2010-07-22 13:45   ` Luiz Capitulino
2010-07-27 10:26 ` Daniel P. Berrange
2010-07-27 13:11   ` Bruce Rogers

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).