qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 853cff: acpi-build: close } in comment


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 853cff: acpi-build: close } in comment
Date: Tue, 12 May 2015 01:00:06 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 853cff8e2815c99429d53baa71110416c1de2798
      
https://github.com/qemu/qemu/commit/853cff8e2815c99429d53baa71110416c1de2798
  Author: Michael S. Tsirkin <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M hw/i386/acpi-build.c

  Log Message:
  -----------
  acpi-build: close } in comment

missing } confuses editors

Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 395e5fb4421a03c9d3a002bbb55d56b74024a568
      
https://github.com/qemu/qemu/commit/395e5fb4421a03c9d3a002bbb55d56b74024a568
  Author: Shannon Zhao <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M hw/i386/acpi-build.c
    R hw/i386/acpi-defs.h
    A include/hw/acpi/acpi-defs.h
    M tests/bios-tables-test.c

  Log Message:
  -----------
  hw/i386: Move ACPI header definitions in an arch-independent location

The ACPI related header file acpi-defs.h, includes definitions that
apply on other architectures as well. Move it in `include/hw/acpi/`
to sanely include it from other architectures.

Signed-off-by: Alvise Rigo <address@hidden>
Signed-off-by: Shannon Zhao <address@hidden>
Signed-off-by: Shannon Zhao <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 658c27181bf3b08a9cf2fab00ecce7f76065f6af
      
https://github.com/qemu/qemu/commit/658c27181bf3b08a9cf2fab00ecce7f76065f6af
  Author: Shannon Zhao <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M hw/acpi/aml-build.c
    M hw/i386/acpi-build.c
    M include/hw/acpi/aml-build.h

  Log Message:
  -----------
  hw/i386/acpi-build: move generic acpi building helpers into dedictated file

Move generic acpi building helpers into dedictated file and this
can be shared with other machines.

Signed-off-by: Shannon Zhao <address@hidden>
Signed-off-by: Shannon Zhao <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 294ce717e0f212ed0763307f3eab72b4a1bdf4d0
      
https://github.com/qemu/qemu/commit/294ce717e0f212ed0763307f3eab72b4a1bdf4d0
  Author: Luke Gorrie <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M hw/net/vhost_net.c

  Log Message:
  -----------
  vhost-user: Send VHOST_RESET_OWNER on vhost stop

Ensure that the vhost-user slave knows when the vrings are valid and
when they are invalid, for example during a guest reboot.

The vhost-user protocol says this of VHOST_RESET_OWNER:

      Issued when a new connection is about to be closed. The Master
      will no longer own this connection (and will usually close it).

Send this message to tell the vhost-user slave that the vhost session
has ended and that session state (e.g. vrings) is no longer valid.

Signed-off-by: Luke Gorrie <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 27a46dcf5038e20451101ed2d5414aebf3846e27
      
https://github.com/qemu/qemu/commit/27a46dcf5038e20451101ed2d5414aebf3846e27
  Author: Jason Wang <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M hw/net/virtio-net.c

  Log Message:
  -----------
  virtio-net: fix the upper bound when trying to delete queues

Virtqueue were indexed from zero, so don't delete virtqueue whose
index is n->max_queues * 2 + 1.

Cc: Michael S. Tsirkin <address@hidden>
Cc: qemu-stable <address@hidden>
Signed-off-by: Jason Wang <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 5cb50e0acc7ba6063b87664404103cce217c0493
      
https://github.com/qemu/qemu/commit/5cb50e0acc7ba6063b87664404103cce217c0493
  Author: Jason Wang <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M hw/i386/pc_piix.c
    M hw/i386/pc_q35.c

  Log Message:
  -----------
  pc: add 2.4 machine types

The following patches will limit the following things to legacy
machine type:

- maximum number of virtqueues for virtio-pci were limited to 64
- auto msix bar size for virtio-net-pci were disabled by default

Cc: Paolo Bonzini <address@hidden>
Cc: Richard Henderson <address@hidden>
Cc: Michael S. Tsirkin <address@hidden>
Signed-off-by: Jason Wang <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: b0e966d0209fa5c93d510d1756a87dd4229b1f8a
      
https://github.com/qemu/qemu/commit/b0e966d0209fa5c93d510d1756a87dd4229b1f8a
  Author: Jason Wang <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M hw/ppc/spapr.c

  Log Message:
  -----------
  spapr: add machine type specific instance init function

This patches adds machine type specific instance initialization
functions. Those functions will be used by following patches to compat
class properties for legacy machine types.

Cc: Alexander Graf <address@hidden>
Cc: address@hidden
Signed-off-by: Jason Wang <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: d25228e7befac33b665cd9250292de47ae6b78b5
      
https://github.com/qemu/qemu/commit/d25228e7befac33b665cd9250292de47ae6b78b5
  Author: Jason Wang <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M hw/ppc/spapr.c

  Log Message:
  -----------
  ppc: spapr: add 2.4 machine type

The following patches will limit the following things to legacy
machine type:

- maximum number of virtqueues for virtio-pci were limited to 64

Cc: Alexander Graf <address@hidden>
Cc: address@hidden

Signed-off-by: Jason Wang <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>

Reviewed-by: Alexander Graf <address@hidden>


  Commit: eaed483c1b3db1ac312116fca5d20c45b4b418b2
      
https://github.com/qemu/qemu/commit/eaed483c1b3db1ac312116fca5d20c45b4b418b2
  Author: Jason Wang <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M monitor.c

  Log Message:
  -----------
  monitor: replace the magic number 255 with MAX_QUEUE_NUM

This patch replace the magic number 255, and increase it to
MAX_QUEUE_NUM which is maximum number of queues supported by a nic.

Cc: Luiz Capitulino <address@hidden>
Signed-off-by: Jason Wang <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: bcfa4d60144fb879f0ffef0a6d174faa37b2df82
      
https://github.com/qemu/qemu/commit/bcfa4d60144fb879f0ffef0a6d174faa37b2df82
  Author: Jason Wang <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M monitor.c

  Log Message:
  -----------
  monitor: check return value of qemu_find_net_clients_except()

qemu_find_net_clients_except() may return a value which is greater
than the size of array we provided. So we should check this value
before using it, otherwise this may cause unexpected memory access.

This patch fixes the net related command completion when we have a
virtio-net nic with more than 255 queues.

Cc: Luiz Capitulino <address@hidden>
Signed-off-by: Jason Wang <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 955cc8c9541779e09895a9c5ccbf8ace15d884f5
      
https://github.com/qemu/qemu/commit/955cc8c9541779e09895a9c5ccbf8ace15d884f5
  Author: Jason Wang <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M hw/s390x/virtio-ccw.c

  Log Message:
  -----------
  virtio-ccw: using VIRTIO_NO_VECTOR instead of 0 for invalid virtqueue

It's a bad idea to need to use vector 0 for invalid virtqueue. So this patch
changes to using VIRTIO_NO_VECTOR instead.

Cc: Michael S. Tsirkin <address@hidden>
Cc: Cornelia Huck <address@hidden>
CC: Christian Borntraeger <address@hidden>
Cc: Richard Henderson <address@hidden>
Cc: Alexander Graf <address@hidden>
Signed-off-by: Jason Wang <address@hidden>
Acked-by: Cornelia Huck <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: e0d686bf4b9d018ba5449f057b486bb5e1fa1a0d
      
https://github.com/qemu/qemu/commit/e0d686bf4b9d018ba5449f057b486bb5e1fa1a0d
  Author: Jason Wang <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M hw/virtio/virtio-pci.c
    M hw/virtio/virtio.c
    M include/hw/virtio/virtio-bus.h
    M include/hw/virtio/virtio.h

  Log Message:
  -----------
  virtio: introduce vector to virtqueues mapping

Currently we will try to traverse all virtqueues to find a subset that
using a specific vector. This is sub optimal when we will support
hundreds or even thousands of virtqueues. So this patch introduces a
method which could be used by transport to get all virtqueues that
using a same vector. This is done through QLISTs and the number of
QLISTs was queried through a transport specific method. When guest
setting vectors, the virtqueue will be linked and helpers for traverse
the list was also introduced.

The first user will be virtio pci which will use this to speed up
MSI-X masking and unmasking handling.

Cc: Michael S. Tsirkin <address@hidden>
Signed-off-by: Jason Wang <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 851c2a75a6e80c8aa5e713864d98cfb512e7229b
      
https://github.com/qemu/qemu/commit/851c2a75a6e80c8aa5e713864d98cfb512e7229b
  Author: Jason Wang <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M hw/virtio/virtio-pci.c

  Log Message:
  -----------
  virtio-pci: speedup MSI-X masking and unmasking

This patch tries to speed up the MSI-X masking and unmasking through
the mapping between vector and queues. With this patch it will there's
no need to go through all possible virtqueues, which may help to
reduce the time spent when doing MSI-X masking/unmasking a single
vector when more than hundreds or even thousands of virtqueues were
supported.

Tested with 80 queue pairs virito-net-pci by changing the smp affinity
in the background and doing netperf in the same time:

Before the patch:
5711.70 Gbits/sec
After the patch:
6830.98 Gbits/sec

About 19.6% improvements in throughput.

Cc: Michael S. Tsirkin <address@hidden>
Signed-off-by: Jason Wang <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: a0ccd2123ee2f83a1f081e4c39013c3316f9ec7a
      
https://github.com/qemu/qemu/commit/a0ccd2123ee2f83a1f081e4c39013c3316f9ec7a
  Author: Jason Wang <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M hw/pci/msix.c

  Log Message:
  -----------
  pci: remove hard-coded bar size in msix_init_exclusive_bar()

This patch lets msix_init_exclusive_bar() can calculate the bar and
pba size based on the number of MSI-X vectors other than using a
hard-coded limit 4096. This is needed to allow device to have more
than 128 MSI_X vectors. To keep migration compatibility, keep using
4096 as bar size and 2048 for pba offset.

Notes: We don't care about the case that using vectors > 128 for
legacy machine type. Since we limit the queue max to 64, so vectors >=
65 is meaningless.

Virtio device will be the first user for this.

Cc: Keith Busch <address@hidden>
Cc: Kevin Wolf <address@hidden>
Cc: Stefan Hajnoczi <address@hidden>
Cc: Michael S. Tsirkin <address@hidden>
Signed-off-by: Jason Wang <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 850d00700ba787988b6c5404e8c1a3add7141db1
      
https://github.com/qemu/qemu/commit/850d00700ba787988b6c5404e8c1a3add7141db1
  Author: Michael S. Tsirkin <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M include/hw/virtio/virtio.h

  Log Message:
  -----------
  virtio: coding style tweak

no space needed after *.

Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 4fccb4834d0455519ff6d7a81551a8dfd360fefa
      
https://github.com/qemu/qemu/commit/4fccb4834d0455519ff6d7a81551a8dfd360fefa
  Author: Zhu Guihua <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M docs/memory-hotplug.txt
    M docs/specs/acpi_mem_hotplug.txt

  Log Message:
  -----------
  docs: update documentation for memory hot unplug

Add specification about how to use memory hot unplug, and add
a flow diagram to explain memory hot unplug process.

Reviewed-by: Igor Mammedov <address@hidden>
Signed-off-by: Zhu Guihua <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 4aae99b63333e71b2097b106bb15a6fde7f9b55b
      
https://github.com/qemu/qemu/commit/4aae99b63333e71b2097b106bb15a6fde7f9b55b
  Author: Tang Chen <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M hw/acpi/memory_hotplug.c

  Log Message:
  -----------
  acpi, mem-hotplug: add acpi_memory_slot_status() to get MemStatus

Add a new API named acpi_memory_slot_status() to obtain a single memory
slot status. Doing this is because this procedure will be used by other
functions in the next coming patches.

Reviewed-by: Igor Mammedov <address@hidden>
Signed-off-by: Tang Chen <address@hidden>
Signed-off-by: Zhu Guihua <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 64fec58e8ab62490edd2638e4214d8c9f84518c9
      
https://github.com/qemu/qemu/commit/64fec58e8ab62490edd2638e4214d8c9f84518c9
  Author: Tang Chen <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M hw/acpi/ich9.c
    M hw/acpi/memory_hotplug.c
    M hw/acpi/piix4.c
    M hw/i386/pc.c
    M include/hw/acpi/memory_hotplug.h

  Log Message:
  -----------
  acpi, mem-hotplug: add unplug request cb for memory device

This patch adds unplug request cb for memory device, and adds the
is_removing boolean field to MemStatus. This field is used to indicate
whether the memory device in slot has been requested to be ejected.
This field is set to true in acpi_memory_unplug_request_cb().

Reviewed-by: Igor Mammedov <address@hidden>
Signed-off-by: Tang Chen <address@hidden>
Signed-off-by: Zhu Guihua <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: f7d3e29db5a5900a1f0ed10f8313f7c3f28e5b59
      
https://github.com/qemu/qemu/commit/f7d3e29db5a5900a1f0ed10f8313f7c3f28e5b59
  Author: Tang Chen <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M hw/acpi/ich9.c
    M hw/acpi/memory_hotplug.c
    M hw/acpi/piix4.c
    M hw/i386/pc.c
    M include/hw/acpi/memory_hotplug.h

  Log Message:
  -----------
  acpi, mem-hotplug: add unplug cb for memory device

This patch adds unplug cb for memory device. It resets memory status
"is_enabled" in acpi_memory_unplug_cb(), removes the corresponding
memory region, unregisters vmstate, and unparents the object.

Reviewed-by: Igor Mammedov <address@hidden>
Signed-off-by: Tang Chen <address@hidden>
Signed-off-by: Zhu Guihua <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: af5098973136029211848b4999ad5d38bc90180f
      
https://github.com/qemu/qemu/commit/af5098973136029211848b4999ad5d38bc90180f
  Author: Zhu Guihua <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M hw/acpi/aml-build.c
    M hw/i386/acpi-build.c
    M include/hw/acpi/aml-build.h

  Log Message:
  -----------
  acpi: extend aml_field() to support UpdateRule

The flags field is declared with default update rule 'Preserve',
this patch extends aml_field() to support UpdateRule so that we
can specify different values per field.

Reviewed-by: Igor Mammedov <address@hidden>
Signed-off-by: Zhu Guihua <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 660e8ec70065c8b1fd68b2cb137de16d831959f4
      
https://github.com/qemu/qemu/commit/660e8ec70065c8b1fd68b2cb137de16d831959f4
  Author: Zhu Guihua <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M docs/specs/acpi_mem_hotplug.txt
    M hw/i386/acpi-build.c

  Log Message:
  -----------
  acpi: fix "Memory device control fields" register

0 bit in Memory device control fields must be cleared before writing to
register. But now this field isn't cleared when other fields are written.

To solve this bug, This patch fixes UpdateRule to WriteAsZeros in "Memory
device control fields" register.

Reviewed-by: Igor Mammedov <address@hidden>
Signed-off-by: Zhu Guihua <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: c06b2ffb02bfcc642c67300d2c4dffd5aa54932b
      
https://github.com/qemu/qemu/commit/c06b2ffb02bfcc642c67300d2c4dffd5aa54932b
  Author: Zhu Guihua <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M docs/specs/acpi_mem_hotplug.txt
    M hw/acpi/memory_hotplug.c
    M hw/core/qdev.c
    M hw/i386/acpi-build.c
    M hw/i386/acpi-dsdt-mem-hotplug.dsl
    M include/hw/acpi/pc-hotplug.h
    M include/hw/qdev-core.h
    M trace-events

  Log Message:
  -----------
  acpi: add hardware implementation for memory hot unplug

- implements QEMU hardware part of memory hot unplug protocol
  described at "docs/spec/acpi_mem_hotplug.txt"
- handles memory remove notification event
- handles device eject notification

Reviewed-by: Igor Mammedov <address@hidden>
Signed-off-by: Zhu Guihua <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: bc09e06113e79e5d70cf2b37015a26f2102cc03e
      
https://github.com/qemu/qemu/commit/bc09e06113e79e5d70cf2b37015a26f2102cc03e
  Author: Zhu Guihua <address@hidden>
  Date:   2015-04-27 (Mon, 27 Apr 2015)

  Changed paths:
    M docs/qmp/qmp-events.txt
    M hw/acpi/memory_hotplug.c
    M qapi/event.json
    M trace-events

  Log Message:
  -----------
  qmp-event: add event notification for memory hot unplug error

When memory hot unplug fails, this patch adds support to send
QMP event to notify mgmt about this failure.

Reviewed-by: Igor Mammedov <address@hidden>
Signed-off-by: Zhu Guihua <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 7824df3889499acc7466317175a3fb24a0824002
      
https://github.com/qemu/qemu/commit/7824df3889499acc7466317175a3fb24a0824002
  Author: Gal Hammer <address@hidden>
  Date:   2015-04-28 (Tue, 28 Apr 2015)

  Changed paths:
    M hw/i386/acpi-build.c
    M include/hw/acpi/aml-build.h

  Log Message:
  -----------
  acpi: add a missing backslash to the \_SB scope.

A predefined scope in the ACPI specs is precede with a backslash.

Signed-off-by: Gal Hammer <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>


  Commit: 51f7cb974ba1af9f68302f2bae4bf0161fb0ab03
      
https://github.com/qemu/qemu/commit/51f7cb974ba1af9f68302f2bae4bf0161fb0ab03
  Author: Thomas Huth <address@hidden>
  Date:   2015-04-28 (Tue, 28 Apr 2015)

  Changed paths:
    M hw/pci/pci.c

  Log Message:
  -----------
  pci: Merge pci_nic_init() into pci_nic_init_nofail()

The error reporting in pci_nic_init() is quite erratic: Some errors
are printed directly with error_report(), and some are passed back
to the caller pci_nic_init_nofail() via an Error pointer.
Since pci_nic_init() is only used by pci_nic_init_nofail(), the
functions can be simply merged to clean up this inconsistency.

Signed-off-by: Thomas Huth <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>


  Commit: da3e8a23492dbc13c4b70d90b6ae42970624e63a
      
https://github.com/qemu/qemu/commit/da3e8a23492dbc13c4b70d90b6ae42970624e63a
  Author: Shannon Zhao <address@hidden>
  Date:   2015-04-28 (Tue, 28 Apr 2015)

  Changed paths:
    M hw/net/virtio-net.c
    M hw/s390x/s390-virtio-bus.c
    M hw/s390x/virtio-ccw.c
    M hw/virtio/virtio-pci.c
    M include/hw/virtio/virtio-net.h

  Log Message:
  -----------
  virtio-net: Move DEFINE_VIRTIO_NET_FEATURES to virtio-net

So far virtio-net-device can't expose host features to guest while
using virtio-mmio because it doesn't set DEFINE_VIRTIO_NET_FEATURES on
backend or transport. So the performance is low.

The host features belong to the backend while virtio-net-pci,
virtio-net-s390 and virtio-net-ccw set the DEFINE_VIRTIO_NET_FEATURES
on transports. But they already have the ability to forward property
accesses to the backend child. So if we move the host features to
backends, it doesn't break the backwards compatibility for them and
make host features work while using virtio-mmio.

Here we move DEFINE_VIRTIO_NET_FEATURES to the backend virtio-net. The
transports just sync the host features from backend. Meanwhile move
virtio_net_set_config_size to virtio-net to make sure the config size
is correct and don't expose it.

Signed-off-by: Shannon Zhao <address@hidden>
Signed-off-by: Shannon Zhao <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>


  Commit: da2f84d1270d203027d82f778d5bcc1f7a49bab0
      
https://github.com/qemu/qemu/commit/da2f84d1270d203027d82f778d5bcc1f7a49bab0
  Author: Shannon Zhao <address@hidden>
  Date:   2015-04-28 (Tue, 28 Apr 2015)

  Changed paths:
    M hw/s390x/s390-virtio-bus.c
    M hw/s390x/virtio-ccw.c
    M hw/scsi/virtio-scsi.c
    M hw/virtio/virtio-pci.c
    M include/hw/virtio/virtio-scsi.h

  Log Message:
  -----------
  virtio-scsi: Move DEFINE_VIRTIO_SCSI_FEATURES to virtio-scsi

So far virtio-scsi-device can't expose host features to guest while
using virtio-mmio because it doesn't set DEFINE_VIRTIO_SCSI_FEATURES on
backend or transport.

The host features belong to the backends while virtio-scsi-pci,
virtio-scsi-s390 and virtio-scsi-ccw set the DEFINE_VIRTIO_SCSI_FEATURES
on transports. But they already have the ability to forward property
accesses to the backend child. So if we move the host features to
backends, it doesn't break the backwards compatibility for them and
make host features work while using virtio-mmio.

Move DEFINE_VIRTIO_SCSI_FEATURES to the backend virtio-scsi. The
transports just sync the host features from backends.

Signed-off-by: Shannon Zhao <address@hidden>
Signed-off-by: Shannon Zhao <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>


  Commit: bc1f7c4c915a7c727741c4d27a2795e1039eacd3
      
https://github.com/qemu/qemu/commit/bc1f7c4c915a7c727741c4d27a2795e1039eacd3
  Author: Michael S. Tsirkin <address@hidden>
  Date:   2015-05-11 (Mon, 11 May 2015)

  Changed paths:
    M tests/acpi-test-data/pc/DSDT
    M tests/acpi-test-data/pc/SSDT
    M tests/acpi-test-data/pc/SSDT.bridge
    M tests/acpi-test-data/q35/DSDT
    M tests/acpi-test-data/q35/SSDT
    M tests/acpi-test-data/q35/SSDT.bridge

  Log Message:
  -----------
  acpi: update expected files for memory unplug

commit c06b2ffb02bfcc642c67300d2c4dffd5aa54932b
    acpi: add hardware implementation for memory hot unplug

Changed both the DSDT and the SSDT. Update the expected files
accordingly.

Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 0403b0f539f40a21da60409b825b4653b273ab39
      
https://github.com/qemu/qemu/commit/0403b0f539f40a21da60409b825b4653b273ab39
  Author: Peter Maydell <address@hidden>
  Date:   2015-05-11 (Mon, 11 May 2015)

  Changed paths:
    M docs/memory-hotplug.txt
    M docs/qmp/qmp-events.txt
    M docs/specs/acpi_mem_hotplug.txt
    M hw/acpi/aml-build.c
    M hw/acpi/ich9.c
    M hw/acpi/memory_hotplug.c
    M hw/acpi/piix4.c
    M hw/core/qdev.c
    M hw/i386/acpi-build.c
    R hw/i386/acpi-defs.h
    M hw/i386/acpi-dsdt-mem-hotplug.dsl
    M hw/i386/pc.c
    M hw/i386/pc_piix.c
    M hw/i386/pc_q35.c
    M hw/net/vhost_net.c
    M hw/net/virtio-net.c
    M hw/pci/msix.c
    M hw/pci/pci.c
    M hw/ppc/spapr.c
    M hw/s390x/s390-virtio-bus.c
    M hw/s390x/virtio-ccw.c
    M hw/scsi/virtio-scsi.c
    M hw/virtio/virtio-pci.c
    M hw/virtio/virtio.c
    A include/hw/acpi/acpi-defs.h
    M include/hw/acpi/aml-build.h
    M include/hw/acpi/memory_hotplug.h
    M include/hw/acpi/pc-hotplug.h
    M include/hw/qdev-core.h
    M include/hw/virtio/virtio-bus.h
    M include/hw/virtio/virtio-net.h
    M include/hw/virtio/virtio-scsi.h
    M include/hw/virtio/virtio.h
    M monitor.c
    M qapi/event.json
    M tests/acpi-test-data/pc/DSDT
    M tests/acpi-test-data/pc/SSDT
    M tests/acpi-test-data/pc/SSDT.bridge
    M tests/acpi-test-data/q35/DSDT
    M tests/acpi-test-data/q35/SSDT
    M tests/acpi-test-data/q35/SSDT.bridge
    M tests/bios-tables-test.c
    M trace-events

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging

pc, virtio enhancements

Memory hot-unplug support for pc, MSI-X
mapping update speedup for virtio-pci,
misc refactorings and bugfixes.

Signed-off-by: Michael S. Tsirkin <address@hidden>

# gpg: Signature made Mon May 11 08:23:43 2015 BST using RSA key ID D28D5469
# gpg: Good signature from "Michael S. Tsirkin <address@hidden>"
# gpg:                 aka "Michael S. Tsirkin <address@hidden>"

* remotes/mst/tags/for_upstream: (28 commits)
  acpi: update expected files for memory unplug
  virtio-scsi: Move DEFINE_VIRTIO_SCSI_FEATURES to virtio-scsi
  virtio-net: Move DEFINE_VIRTIO_NET_FEATURES to virtio-net
  pci: Merge pci_nic_init() into pci_nic_init_nofail()
  acpi: add a missing backslash to the \_SB scope.
  qmp-event: add event notification for memory hot unplug error
  acpi: add hardware implementation for memory hot unplug
  acpi: fix "Memory device control fields" register
  acpi: extend aml_field() to support UpdateRule
  acpi, mem-hotplug: add unplug cb for memory device
  acpi, mem-hotplug: add unplug request cb for memory device
  acpi, mem-hotplug: add acpi_memory_slot_status() to get MemStatus
  docs: update documentation for memory hot unplug
  virtio: coding style tweak
  pci: remove hard-coded bar size in msix_init_exclusive_bar()
  virtio-pci: speedup MSI-X masking and unmasking
  virtio: introduce vector to virtqueues mapping
  virtio-ccw: using VIRTIO_NO_VECTOR instead of 0 for invalid virtqueue
  monitor: check return value of qemu_find_net_clients_except()
  monitor: replace the magic number 255 with MAX_QUEUE_NUM
  ...

Conflicts:
        hw/s390x/s390-virtio-bus.c

[PMM: fixed conflict in s390_virtio_scsi_properties and
s390_virtio_net_properties arrays; since the result of the
two conflicting patches is to empty the property arrays
completely, the conflict resolution is to remove them entirely.]
Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/266745cacb84...0403b0f539f4

reply via email to

[Prev in Thread] Current Thread [Next in Thread]