1. 04 7月, 2015 3 次提交
  2. 03 7月, 2015 1 次提交
  3. 02 7月, 2015 6 次提交
  4. 30 6月, 2015 3 次提交
  5. 26 6月, 2015 7 次提交
    • P
      hw/arm/virt: Make block devices default to virtio · 4e2c0b2a
      Peter Maydell 提交于
      Now we have virtio-pci, we can make the virt board's default block
      device type be IF_VIRTIO. This allows users to use simplified
      command lines that don't have to explicitly create virtio-pci-blk
      devices; the -hda &c very short options now also work.
      
      This means we also need to set no_cdrom to avoid getting a
      default cdrom device -- this is needed because the virtio-blk
      device will fail if it is connected to a block backend with
      no media, which is what the default cdrom device typically is.
      Providing a cdrom with media via -cdrom will succeed, but silently
      create a device with non-removable medium. this is probably
      not really what the user wants, but is the best we can do now.
      
      Note that this change means that some command lines which used
      to work (by accident) will stop working. Where a drive was connected
      manually to a device but without 'if=none' being specified, we
      used to treat this as an IDE drive, which we would then not autoplug
      because the board doesn't support IDE. Now we will treat it as a
      virtio disk and autoplug it, which means the attempt to use the
      drive manually will fail:
        qemu-system-arm: -drive file=img.qcow2,id=foo: Drive 'foo' is already
        in use because it has been automatically connected to another device
        (did you need 'if=none' in the drive options?)
      The command line will have to be changed to include 'if=none', as the
      error message suggests.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 1435068107-12594-4-git-send-email-peter.maydell@linaro.org
      4e2c0b2a
    • P
      qdev-properties-system: Improve error message for drive assignment conflict · 62f7dbde
      Peter Maydell 提交于
      If the user forgot if=none on their drive specification they're likely
      to get an error message because the drive is assigned once automatically
      by QEMU and once by the manual id=/drive= user command line specification.
      Improve the error message produced in this case to explicitly guide the
      user towards if=none.
      
      We rephrase the "drive conflict but not for an if=something" error as
      well to keep the wording in line.
      
      The two cases that change are:
      
      (1) Drive specified as to be auto-connected and also manually connected
      (and the board does handle this if= type):
      
        qemu-system-x86_64 -nodefaults -display none \
           -drive if=scsi,file=tmp.qcow2,id=foo -device ide-hd,drive=foo
      
      Previously:
        qemu-system-x86_64: -device ide-hd,drive=foo: Property 'ide-hd.drive'
        can't take value 'foo', it's in use
      
      Now:
        qemu-system-x86_64: -device ide-hd,drive=foo: Drive 'foo' is already in
        use because it has been automatically connected to another device (did
        you need 'if=none' in the drive options?)
      
      (2) Drive specified to be manually connected in two different ways:
      
        qemu-system-x86_64 -nodefaults -display none \
         -drive if=none,file=tmp.qcow2,id=foo -device ide-hd,drive=foo \
         -device ide-hd,drive=foo
      
      Previously:
        qemu-system-x86_64: -device ide-hd,drive=foo: Property 'ide-hd.drive'
        can't take value 'foo', it's in use
      
      Now:
        qemu-system-x86_64: -device ide-hd,drive=foo: Drive 'foo' is already in
        use by another device
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 1435068107-12594-3-git-send-email-peter.maydell@linaro.org
      62f7dbde
    • P
      qdev-properties-system: Change set_pointer's parse callback to use Error · f1fb9f0d
      Peter Maydell 提交于
      Instead of having set_pointer() call a parse callback which returns
      an error number that we then convert to an Error string with
      error_set_from_qdev_prop_error(), make the parse callback take an
      Error** and set the error itself. This will allow parse routines
      to provide more helpful error messages than the generic ones.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 1435068107-12594-2-git-send-email-peter.maydell@linaro.org
      f1fb9f0d
    • S
      hw/arm/virt-acpi-build: Add GICv2m description in ACPI MADT table · ca793736
      Shannon Zhao 提交于
      Add GICv2m description in ACPI MADT table, so guest can use MSI when
      booting with ACPI.
      Signed-off-by: NShannon Zhao <zhaoshenglong@huawei.com>
      Signed-off-by: NShannon Zhao <shannon.zhao@linaro.org>
      Reviewed-by: NAndrew Jones <drjones@redhat.com>
      Tested-by: NAndrew Jones <drjones@redhat.com>
      Message-id: 1434676210-2276-1-git-send-email-shannon.zhao@linaro.org
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      ca793736
    • S
      hw/arm/virt-acpi-build: Fix table revision and some comments · d0652b57
      Shannon Zhao 提交于
      The table revision is not the ACPI spec version. Fix the wrong revision
      and also some comments.
      Signed-off-by: NShannon Zhao <shannon.zhao@linaro.org>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Message-id: 1433820378-8336-1-git-send-email-zhaoshenglong@huawei.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      d0652b57
    • L
      target-mips: add Unified Hosting Interface (UHI) support · 3b3c1694
      Leon Alrae 提交于
      Add UHI semihosting support for MIPS. QEMU run with "-semihosting" option
      will alter the behaviour of SDBBP 1 instruction -- UHI operation will be
      called instead of generating a debug exception.
      
      Also tweak Malta's pseudo-bootloader. On CPU reset the $4 register is set
      to -1 if semihosting arguments are passed to indicate that the UHI
      operations should be used to obtain input arguments.
      Signed-off-by: NLeon Alrae <leon.alrae@imgtec.com>
      Reviewed-by: NAurelien Jarno <aurelien@aurel32.net>
      3b3c1694
    • M
      hw/mips: Do not clear BEV for MIPS malta kernel load · d6ca4277
      Matthew Fortune 提交于
      The BEV flag controls whether the boot exception vector is still
      in place when starting a kernel.  When cleared the exception vector
      at EBASE (or hard coded address of 0x80000000) is used instead.
      
      The early stages of the linux kernel would benefit from BEV still
      being set to ensure any faults get handled by the boot rom exception
      handlers.  This is a moot point for system qemu as there aren't really
      any BEV handlers, but there are other good reasons to change this...
      
      The UHI (semi-hosting interface) defines special behaviours depending
      on whether an application starts in an environment with BEV set or
      cleared. When BEV is set then UHI assumes that a bootloader is
      relatively dumb and has no advanced exception handling logic.
      However, when BEV is cleared then UHI assumes that the bootloader
      has the ability to handle UHI exceptions with its exception handlers
      and will unwind and forward UHI SYSCALL exceptions to the exception
      vector that was installed prior to running the application.
      Signed-off-by: NMatthew Fortune <matthew.fortune@imgtec.com>
      Signed-off-by: NLeon Alrae <leon.alrae@imgtec.com>
      d6ca4277
  6. 24 6月, 2015 20 次提交