1. 04 6月, 2013 1 次提交
    • F
      block: add block driver read only whitelist · b64ec4e4
      Fam Zheng 提交于
      We may want to include a driver in the whitelist for read only tasks
      such as diagnosing or exporting guest data (with libguestfs as a good
      example). This patch introduces a readonly whitelist option, and for
      backward compatibility, the old configure option --block-drv-whitelist
      is now an alias to rw whitelist.
      
      Drivers in readonly list is only permitted to open file readonly, and
      returns -ENOTSUP for RW opening.
      
      E.g. To include vmdk readonly, and others read+write:
          ./configure --target-list=x86_64-softmmu \
                      --block-drv-rw-whitelist=qcow2,raw,file,qed \
                      --block-drv-ro-whitelist=vmdk
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      b64ec4e4
  2. 24 4月, 2012 3 次提交
    • E
      create_config: simplify prefix=* block, remove CONFIG_QEMU_PREFIX · 0b3b7174
      Eduardo Habkost 提交于
      As now that block handles only the prefix variable, the code can be much
      simpler. This also removes the CONFIG_QEMU_PREFIX define as it is not
      used by any C code.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      0b3b7174
    • E
      create_config: remove *dir block · c41cc50f
      Eduardo Habkost 提交于
      Now only the qemu_*dir variables will become #defines. The other
      directory names aren't used by the C code.
      
      That means the following #defines won't be available in C code anymore:
      
       - CONFIG_QEMU_BINDIR
       - CONFIG_QEMU_LIBDIR
       - CONFIG_QEMU_INCLUDEDIR
       - CONFIG_QEMU_MANDIR
       - CONFIG_QEMU_SYSCONFDIR
       - CONFIG_QEMU_LIBEXECDIR
      
      The following #defines are going to be kept because they are handled by
      the qemu_* block on create_config:
      
       - CONFIG_QEMU_CONFDIR
       - CONFIG_QEMU_DATADIR
       - CONFIG_QEMU_DOCDIR
      
      This one will be kept because it is set directly by ./configure:
      
       - CONFIG_QEMU_HELPERDIR
      
      This patch keeps the 'prefix=*' (CONFIG_QEMU_PREFIX) pattern because
      other variables may use $prefix on their config-host.mak definitions.
      The remaining code will be simplified on a further patch.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      c41cc50f
    • E
      create_config: separate section for qemu_*dir variables (v2) · eb72952b
      Eduardo Habkost 提交于
      The generic *dir section will eventually go away and be replaced with
      qemu_* section. By now, both sections will be kept, while the variables
      get renamed on config-host.mak.
      
      With this patch, a XXXdir variable will become a CONFIG_QEMU_XXXDIR
      define, and a qemu_XXXdir variable will become CONFIG_QEMU_XXXDIR as
      well (instead of becoming a CONFIG_QEMU_QEMU_XXXDIR define).
      
      Changes v1 -> v2:
       - Rebase on top of newer qemu.git changes, that changed
         "tr '[:lower:]' '[:upper:]'" to "LC_ALL=C tr '[a-z]' '[A-Z]'".
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      eb72952b
  3. 31 3月, 2012 1 次提交
    • S
      Fix conversion from lower to upper case with Turkish locale · bb55b712
      Stefan Weil 提交于
      Some locale settings let make fail or create wrong results
      because tr '[:lower:]' '[:upper:]' which is used to convert
      from lower to upper case depends on the locale.
      
      With locale tr_TR.UTF-8, lower case 'i' is not converted to 'I'.
      This results in wrong entries in config-host.h like these ones:
      
        #define CONFIG_QEMU_PREFiX "/usr/local"
        #define CONFIG_QEMU_BiNDiR "/usr/local/bin"
      
      This problem was reported by Emre Ersin.
      
      The same problem occurs when configure creates the target specific
      files config-target.mak. They get wrong declarations:
      
      TARGET_CRiS=y
      TARGET_i386=y
      TARGET_MiCROBLAZE=y
      TARGET_MiPS64=y
      TARGET_MiPS=y
      TARGET_UNiCORE32=y
      
      It is sufficient to restrict the conversion to the characters a-z.
      
      Using this explicit range avoids the dependency on the locale
      settings and is also shorter.
      
      v2:
      POSIX says that 'tr a-z' is unspecified outside of the POSIX
      locale, so we must set LC_ALL=C to make sure that we are using
      POSIX (hint from Eric Blake, thanks).
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      bb55b712
  4. 21 1月, 2011 1 次提交
  5. 13 6月, 2010 1 次提交
  6. 10 6月, 2010 2 次提交
  7. 09 11月, 2009 1 次提交
    • M
      Configurable block format whitelist · eb852011
      Markus Armbruster 提交于
      We have code for a quite a few block formats.  While I trust that all
      of these formats are useful at least for some people in some
      circumstances, some of them are of a kind that friends don't let
      friends use in production.
      
      This patch provides an optional block format whitelist, default off.
      If a whitelist is configured with --block-drv-whitelist, QEMU proper
      can use only whitelisted formats.  Other programs, like qemu-img, are
      not affected.
      
      Drivers for formats off the whitelist still participate in format
      probing, to ensure all programs probe exactly the same.  Without that,
      QEMU proper would be prone to treat images with a format off the
      whitelist as raw when the image's format is probed.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      eb852011
  8. 09 10月, 2009 1 次提交
  9. 11 8月, 2009 2 次提交
  10. 28 7月, 2009 2 次提交
  11. 17 7月, 2009 1 次提交