1. 26 6月, 2013 3 次提交
  2. 22 6月, 2013 1 次提交
  3. 20 6月, 2013 1 次提交
  4. 17 6月, 2013 1 次提交
  5. 07 6月, 2013 2 次提交
  6. 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
  7. 01 6月, 2013 1 次提交
  8. 29 5月, 2013 2 次提交
  9. 25 5月, 2013 1 次提交
    • J
      memory: Rename readable flag to romd_mode · 5f9a5ea1
      Jan Kiszka 提交于
      "Readable" is a very unfortunate name for this flag because even a
      rom_device region will always be readable from the guest POV. What
      differs is the mapping, just like the comments had to explain already.
      Also, readable could currently be understood as being a generic region
      flag, but it only applies to rom_device regions.
      
      So rename the flag and the function to modify it after the original term
      "ROMD" which could also be interpreted as "ROM direct", i.e. ROM mode
      with direct access. In any case, the scope of the flag is clearer now.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      5f9a5ea1
  10. 13 5月, 2013 1 次提交
  11. 12 5月, 2013 1 次提交
    • E
      m25p80.c: Sync Flash chip list with Linux · 3e758c1d
      Ed Maste 提交于
      Add new devices for various manufacturers, and re-sort Spansion list to
      match the order in Linux, which requires chips with a non-zero extended ID
      to come first.
      
      With this commit the outstanding differences to Linux rev 55bf75b are:
      
      - Erase size flag differences in s25sl032p, s25sl064p, s25fl016k, s25fl064k
        (These devices have only some blocks that support small erase sizes.)
      - Linux lacks n25q128
      - Devices without a Jedec ID have been excluded
      Signed-off-by: NEd Maste <emaste@freebsd.org>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      3e758c1d
  12. 29 4月, 2013 1 次提交
  13. 25 4月, 2013 4 次提交
    • M
      pc: Kill the "use flash device for BIOS unless KVM" misfeature · 9953f882
      Markus Armbruster 提交于
      Use of a flash memory device for the BIOS was added in series "[PATCH
      v10 0/8] PC system flash support", commit 4732dcaf..1b89fafe, v1.1.
      
      Flash vs. ROM is a guest-visible difference.  Thus, flash use had to
      be suppressed for machine types pc-1.0 and older.  This was
      accomplished by adding a dummy device "pc-sysfw" with property
      "rom_only":
      
      * Non-zero rom_only means "use ROM".  Default for pc-1.0 and older.
      * Zero rom_only means "maybe use flash".  Default for newer machines.
      
      Not only is the dummy device ugly, it was also retroactively added to
      the older machine types!  Fortunately, it's not guest-visible (thus no
      immediate guest ABI breakage), and has no vmstate (thus no immediate
      migration breakage).  Breakage occurs only if the user unwisely
      enables flash by setting rom_only to zero.  Patch review FAIL #1.
      
      Why "maybe use flash"?  Flash didn't (and still doesn't) work with
      KVM.  Therefore, rom_only=0 really means "use flash, except when KVM
      is enabled, use ROM".  This is a Bad Idea, because it makes enabling/
      disabling KVM guest-visible.  Patch review FAIL #2.
      
      Aside: it also precludes migrating between KVM on and off, but that's
      not possible for other reasons anyway.
      
      Fix as follows:
      
      1. Change the meaning of rom_only=0 to mean "use flash, no ifs, buts,
      or maybes" for pc-i440fx-1.5 and pc-q35-1.5.  Don't change anything
      for older machines (to remain bug-compatible).
      
      2. Change the default value from 0 to 1 for these machines.
      Necessary, because 0 doesn't work with KVM.  Once it does, we can flip
      the default back to 0.
      
      3. Don't revert the retroactive addition of device "pc-sysfw" to older
      machine types.  Seems not worth the trouble.
      
      4. Add a TODO comment asking for device "pc-sysfw" to be dropped once
      flash works with KVM.
      
      Net effect is that you get a BIOS ROM again even when KVM is disabled,
      just like for machines predating the introduction of flash.
      
      To get flash instead, use "--global pc-sysfw.rom_only=0".
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-id: 1365780303-26398-4-git-send-email-armbru@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      9953f882
    • K
      virtio: cleanup: init and exit function. · 6a1a8cc7
      KONRAD Frederic 提交于
      This clean the init and the exit functions and rename virtio_common_cleanup
      to virtio_cleanup.
      Signed-off-by: NKONRAD Frederic <fred.konrad@greensocs.com>
      Message-id: 1366791683-5350-7-git-send-email-fred.konrad@greensocs.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      6a1a8cc7
    • K
      virtio: remove virtiobindings. · 1c819449
      KONRAD Frederic 提交于
      This remove virtio-bindings, and use class instead.
      Signed-off-by: NKONRAD Frederic <fred.konrad@greensocs.com>
      Message-id: 1366791683-5350-6-git-send-email-fred.konrad@greensocs.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      1c819449
    • K
      virtio: remove the function pointer. · 181103cd
      KONRAD Frederic 提交于
      This remove the function pointer in VirtIODevice, and use only
      VirtioDeviceClass function pointer.
      Signed-off-by: NKONRAD Frederic <fred.konrad@greensocs.com>
      Message-id: 1366791683-5350-5-git-send-email-fred.konrad@greensocs.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      181103cd
  14. 21 4月, 2013 1 次提交
    • P
      qdev: Drop taddr properties · 21e5181f
      Peter Maydell 提交于
      Drop all the infrastructure for taddr properties (ie ones which
      are 'hwaddr' sized). These are now unused, and any further desired
      use would be rather questionable since device properties shouldn't
      generally depend on a type that is conceptually variable based on
      the target CPU. 32 or 64 bit integer properties should be used instead
      as appropriate for the specific device.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      21e5181f
  15. 19 4月, 2013 1 次提交
  16. 16 4月, 2013 4 次提交
  17. 15 4月, 2013 1 次提交
  18. 12 4月, 2013 1 次提交
  19. 09 4月, 2013 5 次提交