1. 27 9月, 2016 17 次提交
    • A
      tap: Allow specifying a bridge · 584613ea
      Alexey Kardashevskiy 提交于
      The tap backend is already using qemu-bridge-helper to attach tap
      interface to a bridge but (unlike the bridge backend) it always uses
      the default bridge name - br0.
      
      This adds a "br" property support to the tap backend.
      Signed-off-by: NAlexey Kardashevskiy <aik@ozlabs.ru>
      Reviewed-by: NGreg Kurz <groug@kaod.org>
      Tested-by: NGreg Kurz <groug@kaod.org>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      584613ea
    • G
      e1000: fix buliding complaint · fb56d323
      Gonglei 提交于
      hw/net/e1000e_core.c:56: warning: e1000e_set_interrupt_cause declared inline after being called
      hw/net/e1000e_core.c:56: warning: previous declaration of e1000e_set_interrupt_cause was here
      Signed-off-by: NGonglei <arei.gonglei@huawei.com>
      Reviewed-by: NDmitry Fleytman <dmitry@daynix.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      fb56d323
    • Z
      docs: Add documentation for COLO-proxy · 46cca4ec
      Zhang Chen 提交于
      Introduce the design of COLO-proxy, and how to use it.
      Signed-off-by: NZhang Chen <zhangchen.fnst@cn.fujitsu.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      46cca4ec
    • Z
      MAINTAINERS: add maintainer for COLO-proxy · 88f82ed1
      Zhang Chen 提交于
      add Zhang Chen and Li zhijian as co-maintainers of COLO-proxy.
      Signed-off-by: NZhang Chen <zhangchen.fnst@cn.fujitsu.com>
      Signed-off-by: NLi Zhijian <lizhijian@cn.fujitsu.com>
      Signed-off-by: NWen Congyang <wency@cn.fujitsu.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      88f82ed1
    • Z
      filter-rewriter: rewrite tcp packet to keep secondary connection · 30656b09
      Zhang Chen 提交于
      We will rewrite tcp packet secondary received and sent.
      When colo guest is a tcp server.
      
      Firstly, client start a tcp handshake. the packet's seq=client_seq,
      ack=0,flag=SYN. COLO primary guest get this pkt and mirror(filter-mirror)
      to secondary guest, secondary get it use filter-redirector.
      Then,primary guest response pkt
      (seq=primary_seq,ack=client_seq+1,flag=ACK|SYN).
      secondary guest response pkt
      (seq=secondary_seq,ack=client_seq+1,flag=ACK|SYN).
      In here,we use filter-rewriter save the secondary_seq to it's tcp connection.
      Finally handshake,client send pkt
      (seq=client_seq+1,ack=primary_seq+1,flag=ACK).
      Here,filter-rewriter can get primary_seq, and rewrite ack from primary_seq+1
      to secondary_seq+1, recalculate checksum. So the secondary tcp connection
      kept good.
      
      When we send/recv packet.
      client send pkt(seq=client_seq+1+data_len,ack=primary_seq+1,flag=ACK|PSH).
      filter-rewriter rewrite ack and send to secondary guest.
      
      primary guest response pkt
      (seq=primary_seq+1,ack=client_seq+1+data_len,flag=ACK)
      secondary guest response pkt
      (seq=secondary_seq+1,ack=client_seq+1+data_len,flag=ACK)
      we rewrite secondary guest seq from secondary_seq+1 to primary_seq+1.
      So tcp connection kept good.
      
      In code We use offset( = secondary_seq - primary_seq )
      to rewrite seq or ack.
      handle_primary_tcp_pkt: tcp_pkt->th_ack += offset;
      handle_secondary_tcp_pkt: tcp_pkt->th_seq -= offset;
      Signed-off-by: NZhang Chen <zhangchen.fnst@cn.fujitsu.com>
      Signed-off-by: NLi Zhijian <lizhijian@cn.fujitsu.com>
      Signed-off-by: NWen Congyang <wency@cn.fujitsu.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      30656b09
    • Z
      filter-rewriter: track connection and parse packet · afe46124
      Zhang Chen 提交于
      We use net/colo.h to track connection and parse packet
      Signed-off-by: NZhang Chen <zhangchen.fnst@cn.fujitsu.com>
      Signed-off-by: NLi Zhijian <lizhijian@cn.fujitsu.com>
      Signed-off-by: NWen Congyang <wency@cn.fujitsu.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      afe46124
    • Z
      filter-rewriter: introduce filter-rewriter initialization · e6eee8ab
      Zhang Chen 提交于
      Filter-rewriter is a part of COLO project.
      It will rewrite some of secondary packet to make
      secondary guest's tcp connection established successfully.
      In this module we will rewrite tcp packet's ack to the secondary
      from primary,and rewrite tcp packet's seq to the primary from
      secondary.
      
      usage:
      
      colo secondary:
      -object filter-redirector,id=f1,netdev=hn0,queue=tx,indev=red0
      -object filter-redirector,id=f2,netdev=hn0,queue=rx,outdev=red1
      -object filter-rewriter,id=rew0,netdev=hn0,queue=all
      Signed-off-by: NZhang Chen <zhangchen.fnst@cn.fujitsu.com>
      Signed-off-by: NLi Zhijian <lizhijian@cn.fujitsu.com>
      Signed-off-by: NWen Congyang <wency@cn.fujitsu.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      e6eee8ab
    • Z
      colo-compare: add TCP, UDP, ICMP packet comparison · f4b61836
      Zhang Chen 提交于
      We add TCP,UDP,ICMP packet comparison to replace
      IP packet comparison. This can increase the
      accuracy of the package comparison.
      Less checkpoint more efficiency.
      Signed-off-by: NZhang Chen <zhangchen.fnst@cn.fujitsu.com>
      Signed-off-by: NLi Zhijian <lizhijian@cn.fujitsu.com>
      Signed-off-by: NWen Congyang <wency@cn.fujitsu.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      f4b61836
    • Z
      colo-compare: introduce packet comparison thread · 0682e15b
      Zhang Chen 提交于
      If primary packet is same with secondary packet,
      we will send primary packet and drop secondary
      packet, otherwise notify COLO frame to do checkpoint.
      If primary packet comes but secondary packet does not,
      after REGULAR_PACKET_CHECK_MS milliseconds we set
      the primary packet as old_packet,then do a checkpoint.
      Signed-off-by: NZhang Chen <zhangchen.fnst@cn.fujitsu.com>
      Signed-off-by: NLi Zhijian <lizhijian@cn.fujitsu.com>
      Signed-off-by: NWen Congyang <wency@cn.fujitsu.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      0682e15b
    • Z
      colo-compare: track connection and enqueue packet · b6540d40
      Zhang Chen 提交于
      In this patch we use kernel jhash table to track
      connection, and then enqueue net packet like this:
      
      + CompareState ++
      |               |
      +---------------+   +---------------+         +---------------+
      |conn list      +--->conn           +--------->conn           |
      +---------------+   +---------------+         +---------------+
      |               |     |           |             |          |
      +---------------+ +---v----+  +---v----+    +---v----+ +---v----+
                        |primary |  |secondary    |primary | |secondary
                        |packet  |  |packet  +    |packet  | |packet  +
                        +--------+  +--------+    +--------+ +--------+
                            |           |             |          |
                        +---v----+  +---v----+    +---v----+ +---v----+
                        |primary |  |secondary    |primary | |secondary
                        |packet  |  |packet  +    |packet  | |packet  +
                        +--------+  +--------+    +--------+ +--------+
                            |           |             |          |
                        +---v----+  +---v----+    +---v----+ +---v----+
                        |primary |  |secondary    |primary | |secondary
                        |packet  |  |packet  +    |packet  | |packet  +
                        +--------+  +--------+    +--------+ +--------+
      
      We use conn_list to record connection info.
      When we want to enqueue a packet, firstly get the
      connection from connection_track_table. then push
      the packet to g_queue(pri/sec) in it's own conn.
      Signed-off-by: NZhang Chen <zhangchen.fnst@cn.fujitsu.com>
      Signed-off-by: NLi Zhijian <lizhijian@cn.fujitsu.com>
      Signed-off-by: NWen Congyang <wency@cn.fujitsu.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      b6540d40
    • Z
      Jhash: add linux kernel jhashtable in qemu · ccf0426c
      Zhang Chen 提交于
      Jhash will be used by colo-compare and filter-rewriter
      to save and lookup net connection info
      Signed-off-by: NZhang Chen <zhangchen.fnst@cn.fujitsu.com>
      Signed-off-by: NLi Zhijian <lizhijian@cn.fujitsu.com>
      Signed-off-by: NWen Congyang <wency@cn.fujitsu.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      ccf0426c
    • Z
      net/colo.c: add colo.c to define and handle packet · 59509ec1
      Zhang Chen 提交于
      The net/colo.c is used by colo-compare and filter-rewriter.
      this can share common data structure like net packet,
      and other functions.
      Signed-off-by: NZhang Chen <zhangchen.fnst@cn.fujitsu.com>
      Signed-off-by: NLi Zhijian <lizhijian@cn.fujitsu.com>
      Signed-off-by: NWen Congyang <wency@cn.fujitsu.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      59509ec1
    • Z
      colo-compare: introduce colo compare initialization · 7dce4e6f
      Zhang Chen 提交于
      This a COLO net ascii figure:
      
       Primary qemu                                                           Secondary qemu
      +--------------------------------------------------------------+       +----------------------------------------------------------------+
      | +----------------------------------------------------------+ |       |  +-----------------------------------------------------------+ |
      | |                                                          | |       |  |                                                           | |
      | |                        guest                             | |       |  |                        guest                              | |
      | |                                                          | |       |  |                                                           | |
      | +-------^--------------------------+-----------------------+ |       |  +---------------------+--------+----------------------------+ |
      |         |                          |                         |       |                        ^        |                              |
      |         |                          |                         |       |                        |        |                              |
      |         |  +------------------------------------------------------+  |                        |        |                              |
      |netfilter|  |                       |                         |    |  |   netfilter            |        |                              |
      | +----------+ +----------------------------+                  |    |  |  +-----------------------------------------------------------+ |
      | |       |  |                       |      |        out       |    |  |  |                     |        |  filter excute order       | |
      | |       |  |          +-----------------------------+        |    |  |  |                     |        | +------------------->      | |
      | |       |  |          |            |      |         |        |    |  |  |                     |        |   TCP                      | |
      | | +-----+--+-+  +-----v----+ +-----v----+ |pri +----+----+sec|    |  |  | +------------+  +---+----+---v+rewriter++  +------------+ | |
      | | |          |  |          | |          | |in  |         |in |    |  |  | |            |  |        |              |  |            | | |
      | | |  filter  |  |  filter  | |  filter  +------>  colo   <------+ +-------->  filter   +--> adjust |   adjust     +-->   filter   | | |
      | | |  mirror  |  |redirector| |redirector| |    | compare |   |  |    |  | | redirector |  | ack    |   seq        |  | redirector | | |
      | | |          |  |          | |          | |    |         |   |  |    |  | |            |  |        |              |  |            | | |
      | | +----^-----+  +----+-----+ +----------+ |    +---------+   |  |    |  | +------------+  +--------+--------------+  +---+--------+ | |
      | |      |   tx        |   rx           rx  |                  |  |    |  |            tx                        all       |  rx      | |
      | |      |             |                    |                  |  |    |  +-----------------------------------------------------------+ |
      | |      |             +--------------+     |                  |  |    |                                                   |            |
      | |      |   filter excute order      |     |                  |  |    |                                                   |            |
      | |      |  +---------------->        |     |                  |  +--------------------------------------------------------+            |
      | +-----------------------------------------+                  |       |                                                                |
      |        |                            |                        |       |                                                                |
      +--------------------------------------------------------------+       +----------------------------------------------------------------+
               |guest receive               | guest send
               |                            |
      +--------+----------------------------v------------------------+
      |                                                              |                          NOTE: filter direction is rx/tx/all
      |                         tap                                  |                          rx:receive packets sent to the netdev
      |                                                              |                          tx:receive packets sent by the netdev
      +--------------------------------------------------------------+
      
      In COLO-compare, we do packet comparing job.
      Packets coming from the primary char indev will be sent to outdev.
      Packets coming from the secondary char dev will be dropped after comparing.
      colo-comapre need two input chardev and one output chardev:
      primary_in=chardev1-id (source: primary send packet)
      secondary_in=chardev2-id (source: secondary send packet)
      outdev=chardev3-id
      
      usage:
      
      primary:
      -netdev tap,id=hn0,vhost=off,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown
      -device e1000,id=e0,netdev=hn0,mac=52:a4:00:12:78:66
      -chardev socket,id=mirror0,host=3.3.3.3,port=9003,server,nowait
      -chardev socket,id=compare1,host=3.3.3.3,port=9004,server,nowait
      -chardev socket,id=compare0,host=3.3.3.3,port=9001,server,nowait
      -chardev socket,id=compare0-0,host=3.3.3.3,port=9001
      -chardev socket,id=compare_out,host=3.3.3.3,port=9005,server,nowait
      -chardev socket,id=compare_out0,host=3.3.3.3,port=9005
      -object filter-mirror,id=m0,netdev=hn0,queue=tx,outdev=mirror0
      -object filter-redirector,netdev=hn0,id=redire0,queue=rx,indev=compare_out
      -object filter-redirector,netdev=hn0,id=redire1,queue=rx,outdev=compare0
      -object colo-compare,id=comp0,primary_in=compare0-0,secondary_in=compare1,outdev=compare_out0
      
      secondary:
      -netdev tap,id=hn0,vhost=off,script=/etc/qemu-ifup,down script=/etc/qemu-ifdown
      -device e1000,netdev=hn0,mac=52:a4:00:12:78:66
      -chardev socket,id=red0,host=3.3.3.3,port=9003
      -chardev socket,id=red1,host=3.3.3.3,port=9004
      -object filter-redirector,id=f1,netdev=hn0,queue=tx,indev=red0
      -object filter-redirector,id=f2,netdev=hn0,queue=rx,outdev=red1
      Signed-off-by: NZhang Chen <zhangchen.fnst@cn.fujitsu.com>
      Signed-off-by: NLi Zhijian <lizhijian@cn.fujitsu.com>
      Signed-off-by: NWen Congyang <wency@cn.fujitsu.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      7dce4e6f
    • Z
      qemu-char: Add qemu_chr_add_handlers_full() for GMaincontext · e92aa36a
      Zhang Chen 提交于
      Add qemu_chr_add_handlers_full() API, we can use
      this API pass in a GMainContext,make handler run
      in the context rather than main_loop.
      This comments from Daniel P . Berrange.
      Signed-off-by: NZhang Chen <zhangchen.fnst@cn.fujitsu.com>
      Signed-off-by: NLi Zhijian <lizhijian@cn.fujitsu.com>
      Signed-off-by: NWen Congyang <wency@cn.fujitsu.com>
      Reviewed-by: NDaniel P. Berrange <berrange@redhat.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      e92aa36a
    • S
      net: hmp_host_net_remove: Del the -net option of the removed host_net · a4543b1b
      Shmulik Ladkani 提交于
      Upon hmp_host_net_remove(), the appropriate -net client is deleted
      (according to the given vlan_id and device id), as well as the
      corresponsing hub port.
      
      However, the relevant '-net' option that was added by former
      hmp_host_net_add() call is still present in "net" options group.
      
      This makes the following legit HMP sequence erroneous:
      
      (qemu) host_net_add tap id=n1,ifname=tap1,script=no,downscript=no,vlan=1
      (qemu) host_net_remove 1 n1
      (qemu) host_net_add tap id=n1,ifname=tap1,script=no,downscript=no,vlan=1
      Duplicate ID 'n1' for net
      
      Fix, by deleting the stored '-net' option associated with the given
      device id.
      Signed-off-by: NShmulik Ladkani <shmulik.ladkani@ravellosystems.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      a4543b1b
    • M
      virtio-net: allow increasing rx queue size · 1c0fbfa3
      Michael S. Tsirkin 提交于
      This allows increasing the rx queue size up to 1024: unlike with tx,
      guests don't put in huge S/G lists into RX so the risk of running into
      the max 1024 limitation due to some off-by-one seems small.
      
      It's helpful for users like OVS-DPDK which don't do any buffering on the
      host - 1K roughly matches 500 entries in tun + 256 in the current rx
      queue, which seems to work reasonably well. We could probably make do
      with ~750 entries but virtio spec limits us to powers of two.
      It might be a good idea to specify an s/g size limit in a future
      version.
      
      It also might be possible to make the queue size smaller down the road, 64
      seems like the minimal value which will still work (as guests seem to
      assume a queue full of 1.5K buffers is enough to process the largest
      incoming packet, which is ~64K).  No one actually asked for this, and
      with virtio 1 guests can reduce ring size without need for host
      configuration, so don't bother with this for now.
      
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Cc: Jason Wang <jasowang@redhat.com>
      Suggested-by: NPatrik Hermansson <phermansson@gmail.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      1c0fbfa3
    • P
      Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging · 7cfdc02d
      Peter Maydell 提交于
      virtio, pc: fixes and features
      
      beginning of guest error handling for virtio devices
      amd iommu
      pc compat fixes
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Fri 23 Sep 2016 23:02:09 BST
      # gpg:                using RSA key 0x281F0DB8D28D5469
      # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>"
      # gpg:                 aka "Michael S. Tsirkin <mst@redhat.com>"
      # Primary key fingerprint: 0270 606B 6F3C DF3D 0B17  0970 C350 3912 AFBE 8E67
      #      Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA  8A0D 281F 0DB8 D28D 5469
      
      * remotes/mst/tags/for_upstream:
        hw/i386: AMD IOMMU IVRS table
        hw/i386: Introduce AMD IOMMU
        hw/i386/trace-events: Add AMD IOMMU trace events
        hw/pci: Prepare for AMD IOMMU
        virtio: handle virtqueue_get_head() errors
        virtio: handle virtqueue_num_heads() errors
        virtio: handle virtqueue_read_next_desc() errors
        virtio: use unsigned int for virtqueue_get_avail_bytes() index
        virtio: handle virtqueue_get_avail_bytes() errors
        virtio: handle virtqueue_map_desc() errors
        virtio: migrate vdev->broken flag
        virtio: stop virtqueue processing if device is broken
        virtio: fix stray tab character
        target-i386: turn off CPU.l3-cache only for 2.7 and older machine types
        pc: clean up COMPAT macro chaining
        virtio: add check for descriptor's mapped address
        tests: add /vhost-user/flags-mismatch test
        tests: add a simple /vhost-user/multiqueue test
        tests: add /vhost-user/connect-fail test
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      7cfdc02d
  2. 24 9月, 2016 13 次提交
  3. 23 9月, 2016 10 次提交
    • I
      target-i386: turn off CPU.l3-cache only for 2.7 and older machine types · 152fcbec
      Igor Mammedov 提交于
      commit (14c985cf target-i386: present virtual L3 cache info for vcpus)
      misplaced compat property putting it in new 2.8 machine type
      which would effectively to disable feature until 2.9 is released.
      Intent of commit probably should be to disable feature for 2.7
      and older while allowing not yet released 2.8 to have feature
      enabled by default.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NIgor Mammedov <imammedo@redhat.com>
      Reviewed-by: NMarcel Apfelbaum <marcel@redhat.com>
      Reviewed-by: NEduardo Habkost <ehabkost@redhat.com>
      152fcbec
    • I
      pc: clean up COMPAT macro chaining · 2e091032
      Igor Mammedov 提交于
      Since commit
       bacc344c ("machine: add properties to compat_props incrementaly")
      there is no need to chain per machine type compat macro.
      
      Clean up places where it was done anyway so it will be
      consistent and won't confuse contributors during addtion
      of new machine types.
      Signed-off-by: NIgor Mammedov <imammedo@redhat.com>
      Reviewed-by: NEduardo Habkost <ehabkost@redhat.com>
      2e091032
    • P
      virtio: add check for descriptor's mapped address · 973e7170
      Prasad J Pandit 提交于
      virtio back end uses set of buffers to facilitate I/O operations.
      If its size is too large, 'cpu_physical_memory_map' could return
      a null address. This would result in a null dereference while
      un-mapping descriptors. Add check to avoid it.
      Reported-by: NQinghao Tang <luodalongde@gmail.com>
      Signed-off-by: NPrasad J Pandit <pjp@fedoraproject.org>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      973e7170
    • M
      tests: add /vhost-user/flags-mismatch test · 9294d76c
      Marc-André Lureau 提交于
      Check that qemu disconnects the backend that doesn't have the previously
      acked features.
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      9294d76c
    • M
      tests: add a simple /vhost-user/multiqueue test · ed0a8d92
      Marc-André Lureau 提交于
      This test just checks that 2 virtio-net queues can be setup over
      vhost-user and waits for them to be started.
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      ed0a8d92
    • M
      tests: add /vhost-user/connect-fail test · 5d443f5a
      Marc-André Lureau 提交于
      Check early connection failure and resume.
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      5d443f5a
    • P
      Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging · 3b71ec85
      Peter Maydell 提交于
      Block layer patches
      
      # gpg: Signature made Fri 23 Sep 2016 12:59:46 BST
      # gpg:                using RSA key 0x7F09B272C88F2FD6
      # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>"
      # Primary key fingerprint: DC3D EB15 9A9A F95D 3D74  56FE 7F09 B272 C88F 2FD6
      
      * remotes/kevin/tags/for-upstream: (33 commits)
        block: Remove BB interface from blockdev-add/del
        qemu-iotests/141: Avoid blockdev-add with id
        block: Avoid printing NULL string in error messages
        qemu-iotests/139: Avoid blockdev-add with id
        qemu-iotests/124: Avoid blockdev-add with id
        qemu-iotests/118: Avoid blockdev-add with id
        qemu-iotests/117: Avoid blockdev-add with id
        qemu-iotests/087: Avoid blockdev-add with id
        qemu-iotests/081: Avoid blockdev-add with id
        qemu-iotests/071: Avoid blockdev-add with id
        qemu-iotests/067: Avoid blockdev-add with id
        qemu-iotests/041: Avoid blockdev-add with id
        qemu-iotests/118: Test media change with qdev name
        block: Accept device model name for block_set_io_throttle
        block: Accept device model name for blockdev-change-medium
        block: Accept device model name for eject
        block: Accept device model name for x-blockdev-remove-medium
        block: Accept device model name for x-blockdev-insert-medium
        block: Accept device model name for blockdev-open/close-tray
        qdev-monitor: Add blk_by_qdev_id()
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      3b71ec85
    • P
      Merge remote-tracking branch 'remotes/lalrae/tags/mips-20160923' into staging · eaff9c43
      Peter Maydell 提交于
      MIPS patches 2016-09-23
      
      Changes:
      * 24KEc CPU definition
      * SYNC instructions make use of tcg memory barrier ops
      * various MIPS linux-user bug fixes
      
      # gpg: Signature made Fri 23 Sep 2016 08:09:08 BST
      # gpg:                using RSA key 0x52118E3C0B29DA6B
      # gpg: Good signature from "Leon Alrae <leon.alrae@imgtec.com>"
      # Primary key fingerprint: 8DD3 2F98 5495 9D66 35D4  4FC0 5211 8E3C 0B29 DA6B
      
      * remotes/lalrae/tags/mips-20160923:
        linux-user: Add missing Mips syscalls items in strace.list
        linux-user: Add missing TARGET_EDQUOT error code for Mips
        linux-user: Fix certain argument alignment cases for Mips64
        linux-user: Fix structure target_semid64_ds definition for Mips
        linux-user: Fix structure target_flock definition for Mips
        linux-user: Fix TARGET_F_GETOWN definition for Mips
        linux-user: Fix TARGET_SIOCATMARK definition for Mips
        target-mips: generate fences
        target-mips: add 24KEc CPU definition
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      eaff9c43
    • P
      Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.8-20160923' into staging · c229472a
      Peter Maydell 提交于
      ppc patch queue 2016-09-23
      
      This pull request supersedes ppc-for-2.8-20160922.  There was a clang
      build error in that, and I've also added one extra patch in the new pull.
      
      Included in this set of ppc and spapr patches are:
          * TCG implementations for more POWER9 instructions
          * Some preliminary XICS fixes in preparataion for the pnv machine type
          * A significant ADB (Macintosh kbd/mouse) cleanup
          * Some conversions to use trace instead of debug macros
          * Fixes to correctly handle global TLB flush synchronization in
            TCG.  This is already a bug, but it will have much more impact
            when we get MTTCG
          * Add more qtest testcases for Power
          * Some MAINTAINERS updates
          * Assorted bugfixes
          * Add the basics of NUMA associativity to the spapr PCI host bridge
      
      This touches some test files and monitor.c which are technically
      outside the ppc code, but coming through this tree because the changes
      are primarily of interest to ppc.
      
      # gpg: Signature made Fri 23 Sep 2016 08:14:47 BST
      # gpg:                using RSA key 0x6C38CACA20D9B392
      # gpg: Good signature from "David Gibson <david@gibson.dropbear.id.au>"
      # gpg:                 aka "David Gibson (Red Hat) <dgibson@redhat.com>"
      # gpg:                 aka "David Gibson (ozlabs.org) <dgibson@ozlabs.org>"
      # gpg:                 aka "David Gibson (kernel.org) <dwg@kernel.org>"
      # Primary key fingerprint: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392
      
      * remotes/dgibson/tags/ppc-for-2.8-20160923: (45 commits)
        spapr_pci: Add numa node id
        monitor: fix crash for platforms without a CPU 0
        linux-user: ppc64: fix ARCH_206 bit in AT_HWCAP
        ppc/kvm: Mark 64kB page size support as disabled if not available
        ppc/xics: An ICS with offset 0 is assumed to be uninitialized
        ppc/xics: account correct irq status
        Enable H_CLEAR_MOD and H_CLEAR_REF hypercalls on KVM/PPC64.
        target-ppc: tlbie/tlbivax should have global effect
        target-ppc: add flag in check_tlb_flush()
        target-ppc: add TLB_NEED_LOCAL_FLUSH flag
        spapr: Introduce sPAPRCPUCoreClass
        target-ppc: implement darn instruction
        target-ppc: add stxsi[bh]x instruction
        target-ppc: add lxsi[bw]zx instruction
        target-ppc: add xxspltib instruction
        target-ppc: consolidate store conditional
        target-ppc: move out stqcx impementation
        target-ppc: consolidate load with reservation
        target-ppc: convert st[16,32,64]r to use new macro
        target-ppc: convert st64 to use new macro
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      c229472a
    • P
      Merge remote-tracking branch 'remotes/famz/tags/various-pull-request' into staging · 4c892756
      Peter Maydell 提交于
      # gpg: Signature made Fri 23 Sep 2016 05:58:28 BST
      # gpg:                using RSA key 0xCA35624C6A9171C6
      # gpg: Good signature from "Fam Zheng <famz@redhat.com>"
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: 5003 7CB7 9706 0F76 F021  AD56 CA35 624C 6A91 71C6
      
      * remotes/famz/tags/various-pull-request: (23 commits)
        docker: exec $CMD
        docker: Terminate instances at SIGTERM and SIGHUP
        docker: Support showing environment information
        docker: Print used options before doing configure
        docker: Flatten default target list in test-quick
        docker: Update fedora image to latest
        docker: Generate /packages.txt in ubuntu image
        docker: Generate /packages.txt in fedora image
        docker: Generate /packages.txt in centos6 image
        tests: Ignore test-uuid
        Add UUID files to MAINTAINERS
        tests: Add uuid tests
        uuid: Tighten uuid parse
        vl: Switch qemu_uuid to QemuUUID
        configure: Remove detection code for UUID
        tests: No longer dependent on CONFIG_UUID
        crypto: Switch to QEMU UUID API
        vpc: Use QEMU UUID API
        vdi: Use QEMU UUID API
        vhdx: Use QEMU UUID API
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      
      # Conflicts:
      #	tests/Makefile.include
      4c892756