1. 21 5月, 2019 3 次提交
    • D
      Revert "globals: Allow global properties to be optional" · 8fa70dbd
      Daniel P. Berrangé 提交于
      This reverts commit d7741743.
      
      Relying on setting properties on parents types which may not
      be relevant to certain sub-classes had unexpected side-effects
      causing bugs in device config defaults. It is preferrable to
      be explicit about which devices get which properties, even if
      this needs repetition.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      Message-Id: <20190215103239.28640-3-berrange@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      8fa70dbd
    • D
      hw: report invalid disable-legacy|modern usage for virtio-1-only devs · f2784eed
      Daniel P. Berrangé 提交于
      A number of virtio devices (gpu, crypto, mouse, keyboard, tablet) only
      support the virtio-1 (aka modern) mode. Currently if the user launches
      QEMU, setting those devices to enable legacy mode, QEMU will silently
      create them in modern mode, ignoring the user's (mistaken) request.
      
      This patch introduces proper data validation so that an attempt to
      configure a virtio-1-only devices in legacy mode gets reported as an
      error to the user.
      
      Checking this required introduction of a new field to explicitly track
      what operating model is to be used for a device, separately from the
      disable_modern and disable_legacy fields that record the user's
      requested configuration.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      Message-Id: <20190215103239.28640-2-berrange@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      f2784eed
    • P
      Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging · 2259637b
      Peter Maydell 提交于
      Block layer patches:
      
      - block: AioContext management, part 1
      - qmp: forbid qmp_cont in RUN_STATE_FINISH_MIGRATE
      - nvme: fix copy direction in DMA reads going to CMB
      - file-posix: Fix block status for unaligned raw images with O_DIRECT
      - file-posix: Fix xfs_write_zeroes() after EOF
      - Documentation and iotests improvements
      
      # gpg: Signature made Mon 20 May 2019 16:12:38 BST
      # gpg:                using RSA key 7F09B272C88F2FD6
      # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>" [full]
      # Primary key fingerprint: DC3D EB15 9A9A F95D 3D74  56FE 7F09 B272 C88F 2FD6
      
      * remotes/kevin/tags/for-upstream: (24 commits)
        iotests: Make 245 faster and more reliable
        iotests.py: Fix VM.run_job
        iotests.py: Let assert_qmp() accept an array
        block: Improve "Block node is read-only" message
        qemu-img.texi: Describe human-readable info output
        qemu-img.texi: Be specific about JSON object types
        iotests: Test unaligned raw images with O_DIRECT
        block/file-posix: Unaligned O_DIRECT block-status
        test-block-iothread: Test AioContext propagation for block jobs
        blockjob: Remove AioContext notifiers
        blockjob: Propagate AioContext change to all job nodes
        block: Add blk_set_allow_aio_context_change()
        block: Implement .(can_)set_aio_ctx for BlockBackend
        test-block-iothread: Test AioContext propagation through the tree
        block: Propagate AioContext change to parents
        block: Move recursion to bdrv_set_aio_context()
        block: Make bdrv_attach/detach_aio_context() static
        block: Add bdrv_try_set_aio_context()
        nvme: fix copy direction in DMA reads going to CMB
        iotest: fix 169: do not run qmp_cont in RUN_STATE_FINISH_MIGRATE
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      2259637b
  2. 20 5月, 2019 26 次提交
  3. 19 5月, 2019 2 次提交
  4. 18 5月, 2019 1 次提交
    • P
      Merge remote-tracking branch 'remotes/kraxel/tags/ui-20190517-pull-request' into staging · 1b46b4da
      Peter Maydell 提交于
      ui: bugfixes for curses, opengl console and kbd state tracker.
      
      # gpg: Signature made Fri 17 May 2019 17:12:30 BST
      # gpg:                using RSA key 4CB6D8EED3E87138
      # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" [full]
      # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>" [full]
      # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>" [full]
      # Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138
      
      * remotes/kraxel/tags/ui-20190517-pull-request:
        kbd-state: fix autorepeat handling
        ui/console: Precautionary glBindTexture and surface->texture validation in surface_gl_update_texture
        ui/curses: manipulate cchar_t with standard curses functions
        ui/curses: do not assume wchar_t contains unicode
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      1b46b4da
  5. 17 5月, 2019 8 次提交
    • G
      virtfs: Fix documentation of -fsdev and -virtfs · b44a6b09
      Greg Kurz 提交于
      This fixes several things:
      - add "id" description to -virtfs documentation
      - split the description into several lines in both usage and documentation
        for accurateness and clarity
      - add documentation and usage of the synth fsdriver
      - add "throttling.*" description to -fsdev local
      - add some missing periods
      - add proper reference to the virtfs-proxy-helper(1) manual page
      - document that the virtio device may be either virtio-9p-pci, virtio-9p-ccw
        or virtio-9p-device, depending on the machine type
      
      Buglink: https://bugs.launchpad.net/qemu/+bug/1581976Signed-off-by: NGreg Kurz <groug@kaod.org>
      Acked-by: NThomas Huth <thuth@redhat.com>
      b44a6b09
    • G
      vl: Deprecate -virtfs_synth · 6e4199af
      Greg Kurz 提交于
      The synth fsdriver never got used for anything else but the QTest
      testcase for VirtIO 9P. And even there, QTest uses -fsdev synth and
      -device virtio-9p-... directly.
      Signed-off-by: NGreg Kurz <groug@kaod.org>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      6e4199af
    • G
      fsdev: Error out when unsupported option is passed · aee7f3ec
      Greg Kurz 提交于
      Each fsdriver only supports a subset of the options that can be passed
      to -fsdev. Unsupported options are simply ignored. This could cause the
      user to erroneously think QEMU has a bug.
      
      Enforce strict checking of supported options for all fsdrivers. This
      shouldn't impact libvirt, since it doesn't know about the synth and
      proxy fsdrivers.
      Signed-off-by: NGreg Kurz <groug@kaod.org>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      aee7f3ec
    • G
      fsdev: Move some types definition to qemu-fsdev.c · 20232435
      Greg Kurz 提交于
      It would make sense for these types to be defined in a header file if
      we had an API for fsdrivers to register themselves. In practice, we
      only have three of them and it is very unlikely we add new ones since
      the future of file sharing between host and guest is the upcoming
      virtio-fs.
      
      Move the types to qemu-fsdev.c instead since they are only used there.
      Signed-off-by: NGreg Kurz <groug@kaod.org>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      20232435
    • G
      fsdev: Drop unused opaque field · 778f0fad
      Greg Kurz 提交于
      This was introduced along with -fsdev but it never got used.
      Signed-off-by: NGreg Kurz <groug@kaod.org>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      778f0fad
    • G
      fsdev: Drop unused extern declaration · 7159804d
      Greg Kurz 提交于
      This is a leftover of the handle backend, removed in QEMU 4.0.
      Signed-off-by: NGreg Kurz <groug@kaod.org>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      7159804d
    • P
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · 27cb89d1
      Peter Maydell 提交于
      Mostly bugfixes and cleanups, the most important being
      "megasas: fix mapped frame size" from Peter Lieven.
      In addition, -realtime is marked as deprecated.
      
      # gpg: Signature made Fri 17 May 2019 14:25:11 BST
      # gpg:                using RSA key BFFBD25F78C7AE83
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" [full]
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>" [full]
      # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
      #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
      
      * remotes/bonzini/tags/for-upstream: (21 commits)
        hw/net/ne2000: Extract the PCI device from the chipset common code
        hw/char: Move multi-serial devices into separate file
        ioapic: allow buggy guests mishandling level-triggered interrupts to make progress
        build: don't build hardware objects with linux-user
        build: chardev is only needed for softmmu targets
        configure: qemu-ga is only needed with softmmu targets
        build: replace GENERATED_FILES by generated-files-y
        trace: only include trace-event-subdirs when they are needed
        sun4m: obey -vga none
        mips-fulong2e: obey -vga none
        hw/i386/acpi: Assert a pointer is not null BEFORE using it
        hw/i386/acpi: Add object_resolve_type_unambiguous to improve modularity
        hw/acpi/piix4: Move TYPE_PIIX4_PM to a public header
        memory: correct the comment to DIRTY_MEMORY_MIGRATION
        vl: fix -sandbox parsing crash when seccomp support is disabled
        hvf: Add missing break statement
        megasas: fix mapped frame size
        vl: Add missing descriptions to the VGA adapters list
        Declare -realtime as deprecated
        roms: assert if max rom size is less than the used size
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      27cb89d1
    • P
      Merge remote-tracking branch 'remotes/mcayland/tags/qemu-sparc-20190517' into staging · f2a930ad
      Peter Maydell 提交于
      qemu-sparc queue
      
      # gpg: Signature made Fri 17 May 2019 10:30:54 BST
      # gpg:                using RSA key CC621AB98E82200D915CC9C45BC2C56FAE0F321F
      # gpg:                issuer "mark.cave-ayland@ilande.co.uk"
      # gpg: Good signature from "Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>" [full]
      # Primary key fingerprint: CC62 1AB9 8E82 200D 915C  C9C4 5BC2 C56F AE0F 321F
      
      * remotes/mcayland/tags/qemu-sparc-20190517:
        MAINTAINERS: add myself for leon3
        leon3: introduce the plug and play mechanism
        leon3: add a little bootloader
        grlib, apbuart: get rid of the old-style create function
        grlib, gptimer: get rid of the old-style create function
        grlib, irqmp: get rid of the old-style create function
        leon3: fix the error message when no bios are provided
        hw/char/escc: Lower irq when transmit buffer is filled
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f2a930ad