qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] cdcab9: nvdimm: fix memory leak in error code


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] cdcab9: nvdimm: fix memory leak in error code path
Date: Thu, 21 Jul 2016 13:00:10 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: cdcab9d94101a6dd9ac8136c6f2cd15b6a997896
      
https://github.com/qemu/qemu/commit/cdcab9d94101a6dd9ac8136c6f2cd15b6a997896
  Author: Stefan Hajnoczi <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/mem/nvdimm.c

  Log Message:
  -----------
  nvdimm: fix memory leak in error code path

object_get_canonical_path_component() returns a heap-allocated string
that must be freed using g_free().

Reported-by: Paolo Bonzini <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Xiao Guangrong <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: eaf8d91cd7ac28803eb0fb5a13b0c10e5096c361
      
https://github.com/qemu/qemu/commit/eaf8d91cd7ac28803eb0fb5a13b0c10e5096c361
  Author: Marcel Apfelbaum <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M tests/prom-env-test.c

  Log Message:
  -----------
  tests/prom-env-test: increase the test timeout

On a slower machine the test can take more than 30 seconds.
Increase the timeout to 100 seconds.

Signed-off-by: Marcel Apfelbaum <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Mark Cave-Ayland <address@hidden>


  Commit: 50d3bba9dabaeb89e545ced4dea23d8064a65c7a
      
https://github.com/qemu/qemu/commit/50d3bba9dabaeb89e545ced4dea23d8064a65c7a
  Author: Marcel Apfelbaum <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/alpha/typhoon.c

  Log Message:
  -----------
  hw/alpha: fix PCI bus initialization

Delay the host-bridge 'realization' until the
PCI root bus is attached.

Signed-off-by: Marcel Apfelbaum <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Mark Cave-Ayland <address@hidden>


  Commit: a8c1a75343940fdc9d47e6a9b7723476bb5e1774
      
https://github.com/qemu/qemu/commit/a8c1a75343940fdc9d47e6a9b7723476bb5e1774
  Author: Marcel Apfelbaum <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/mips/gt64xxx_pci.c

  Log Message:
  -----------
  hw/mips: fix PCI bus initialization

Delay the host-bridge 'realization' until the
PCI root bus is attached.

Signed-off-by: Marcel Apfelbaum <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Mark Cave-Ayland <address@hidden>
Acked-by: Leon Alrae <address@hidden>
Tested-by: Leon Alrae <address@hidden>


  Commit: 2f3ae0b2d4343712ee2a1b23b51bfe5272c52138
      
https://github.com/qemu/qemu/commit/2f3ae0b2d4343712ee2a1b23b51bfe5272c52138
  Author: Marcel Apfelbaum <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/pci-host/apb.c

  Log Message:
  -----------
  hw/apb: fix PCI bus initialization

Create and connect the PCI root bus to the
host bridge before the later is 'realized'.

Signed-off-by: Marcel Apfelbaum <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Mark Cave-Ayland <address@hidden>


  Commit: 3c3c1e32033ffa7e0613d26dfb15255466dc9829
      
https://github.com/qemu/qemu/commit/3c3c1e32033ffa7e0613d26dfb15255466dc9829
  Author: Marcel Apfelbaum <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/pci-host/grackle.c

  Log Message:
  -----------
  hw/grackle: fix PCI bus initialization

Delay the host-bridge 'realization' until the
PCI root bus is attached.

Signed-off-by: Marcel Apfelbaum <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Mark Cave-Ayland <address@hidden>


  Commit: 685f9a3428f625f580af0123aa95f4838d86cac3
      
https://github.com/qemu/qemu/commit/685f9a3428f625f580af0123aa95f4838d86cac3
  Author: Marcel Apfelbaum <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/pci-host/prep.c

  Log Message:
  -----------
  hw/prep: realize the PCI root bus as part of the prep init

'Realize' the PCI root bus manually since the 'realize' mechanism
does not propagate to child devices yet.

Signed-off-by: Marcel Apfelbaum <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Mark Cave-Ayland <address@hidden>


  Commit: b1af7959a66610669e1a019b9a84f6ed3a7936c6
      
https://github.com/qemu/qemu/commit/b1af7959a66610669e1a019b9a84f6ed3a7936c6
  Author: Marcel Apfelbaum <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/pci-host/versatile.c

  Log Message:
  -----------
  hw/versatile: realize the PCI root bus as part of the versatile init

'Realize' the PCI root bus manually since the 'realize' mechanism
does not propagate to child devices yet.

Signed-off-by: Marcel Apfelbaum <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Tested-by: Mark Cave-Ayland <address@hidden>


  Commit: 1c7955c4503211f45a83e6480bd876f079ba5cd8
      
https://github.com/qemu/qemu/commit/1c7955c4503211f45a83e6480bd876f079ba5cd8
  Author: Peter Xu <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/i386/Makefile.objs
    M hw/i386/intel_iommu.c
    A hw/i386/x86-iommu.c
    M include/hw/i386/intel_iommu.h
    A include/hw/i386/x86-iommu.h

  Log Message:
  -----------
  x86-iommu: introduce parent class

Introducing parent class for intel-iommu devices named "x86-iommu". This
is preparation work to abstract shared functionalities out from Intel
and AMD IOMMUs. Currently, only the parent class is introduced. It does
nothing yet.

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


  Commit: 04af0e18bc93c49faa94921b4326ef9261a2fa27
      
https://github.com/qemu/qemu/commit/04af0e18bc93c49faa94921b4326ef9261a2fa27
  Author: Peter Xu <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/i386/intel_iommu.c
    M include/hw/i386/intel_iommu.h
    M include/hw/i386/x86-iommu.h

  Log Message:
  -----------
  intel_iommu: rename VTD_PCI_DEVFN_MAX to x86-iommu

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


  Commit: 1cf5fd573f536de1eb601ed69127a324e940d37f
      
https://github.com/qemu/qemu/commit/1cf5fd573f536de1eb601ed69127a324e940d37f
  Author: Peter Xu <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

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

  Log Message:
  -----------
  x86-iommu: provide x86_iommu_get_default

Instead of searching the device tree every time, one static variable is
declared for the default system x86 IOMMU device.

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


  Commit: 1121e0afdcfa0cd40e36bd3acff56a3fac4f70fd
      
https://github.com/qemu/qemu/commit/1121e0afdcfa0cd40e36bd3acff56a3fac4f70fd
  Author: Peter Xu <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/i386/x86-iommu.c
    M include/hw/i386/x86-iommu.h

  Log Message:
  -----------
  x86-iommu: introduce "intremap" property

Adding one property for intel-iommu devices to specify whether we should
support interrupt remapping. By default, IR is disabled. To enable it,
we should use (take Intel IOMMU as example):

  -device intel_iommu,intremap=on

This property can be shared by Intel and future AMD IOMMUs.

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


  Commit: d46114f9ec40e714ae3fa17c446890d369c32812
      
https://github.com/qemu/qemu/commit/d46114f9ec40e714ae3fa17c446890d369c32812
  Author: Peter Xu <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

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

  Log Message:
  -----------
  acpi: enable INTR for DMAR report structure

In ACPI DMA remapping report structure, enable INTR flag when specified.

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


  Commit: b79104722fc77974a222929f5590c3bea2941dd7
      
https://github.com/qemu/qemu/commit/b79104722fc77974a222929f5590c3bea2941dd7
  Author: Peter Xu <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/i386/intel_iommu.c
    M hw/i386/intel_iommu_internal.h

  Log Message:
  -----------
  intel_iommu: allow queued invalidation for IR

Queued invalidation is required for IR. This patch add basic support for
interrupt cache invalidate requests. Since we currently have no IR cache
implemented yet, we can just skip all interrupt cache invalidation
requests for now.

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


  Commit: d54bd7f80a5cf7dc5242f745d4c9542c822a81f3
      
https://github.com/qemu/qemu/commit/d54bd7f80a5cf7dc5242f745d4c9542c822a81f3
  Author: Peter Xu <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/i386/intel_iommu.c
    M hw/i386/intel_iommu_internal.h

  Log Message:
  -----------
  intel_iommu: set IR bit for ECAP register

Enable IR in IOMMU Extended Capability register.

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


  Commit: cfc13df4621ccc72e21b670cec8f03f91d9d6dcf
      
https://github.com/qemu/qemu/commit/cfc13df4621ccc72e21b670cec8f03f91d9d6dcf
  Author: Peter Xu <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/i386/acpi-build.c
    M include/hw/acpi/acpi-defs.h
    M include/hw/pci-host/q35.h

  Log Message:
  -----------
  acpi: add DMAR scope definition for root IOAPIC

To enable interrupt remapping for intel IOMMU device, each IOAPIC device
in the system reported via ACPI MADT must be explicitly enumerated under
one specific remapping hardware unit. This patch adds the root-complex
IOAPIC into the default DMAR device.

Please refer to VT-d spec 8.3.1.1 for more information.

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


  Commit: a58614391d52ef8240071c1db5db6aceaf66a3ea
      
https://github.com/qemu/qemu/commit/a58614391d52ef8240071c1db5db6aceaf66a3ea
  Author: Peter Xu <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/i386/intel_iommu.c
    M hw/i386/intel_iommu_internal.h
    M include/hw/i386/intel_iommu.h

  Log Message:
  -----------
  intel_iommu: define interrupt remap table addr register

Defined Interrupt Remap Table Address register to store IR table
pointer. Also, do proper handling on global command register writes to
store table pointer and its size.

One more debug flag "DEBUG_IR" is added for interrupt remapping.

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


  Commit: 80de52ba87d44bf63157900b8dd5ccd5bd795fd4
      
https://github.com/qemu/qemu/commit/80de52ba87d44bf63157900b8dd5ccd5bd795fd4
  Author: Peter Xu <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/i386/intel_iommu.c

  Log Message:
  -----------
  intel_iommu: handle interrupt remap enable

Handle writting to IRE bit in global command register.

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


  Commit: 1f91acee179873ce78985b436051479217c46580
      
https://github.com/qemu/qemu/commit/1f91acee179873ce78985b436051479217c46580
  Author: Peter Xu <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M include/hw/i386/intel_iommu.h

  Log Message:
  -----------
  intel_iommu: define several structs for IOMMU IR

Several data structs are defined to better support the rest of the
patches: IRTE to parse remapping table entries, and IOAPIC/MSI related
structure bits to parse interrupt entries to be filled in by guest
kernel.

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


  Commit: a4ca297e848a3eda39acaec6941fed4eb35916df
      
https://github.com/qemu/qemu/commit/a4ca297e848a3eda39acaec6941fed4eb35916df
  Author: Peter Xu <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/i386/intel_iommu_internal.h

  Log Message:
  -----------
  intel_iommu: add IR translation faults defines

Adding translation fault definitions for interrupt remapping. Please
refer to VT-d spec section 7.1.

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


  Commit: 651e4cefeee8e388919e51f4e299033ab2a8b87d
      
https://github.com/qemu/qemu/commit/651e4cefeee8e388919e51f4e299033ab2a8b87d
  Author: Peter Xu <address@hidden>
  Date:   2016-07-20 (Wed, 20 Jul 2016)

  Changed paths:
    M hw/i386/intel_iommu.c
    M hw/i386/intel_iommu_internal.h
    M include/hw/i386/intel_iommu.h

  Log Message:
  -----------
  intel_iommu: Add support for PCI MSI remap

This patch enables interrupt remapping for PCI devices.

To play the trick, one memory region "iommu_ir" is added as child region
of the original iommu memory region, covering range 0xfeeXXXXX (which is
the address range for APIC). All the writes to this range will be taken
as MSI, and translation is carried out only when IR is enabled.

Idea suggested by Paolo Bonzini.

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


  Commit: 09cd058a2cf77bb7a3b10ff93c1f80ed88bca364
      
https://github.com/qemu/qemu/commit/09cd058a2cf77bb7a3b10ff93c1f80ed88bca364
  Author: Michael S. Tsirkin <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/i386/intel_iommu.c

  Log Message:
  -----------
  intel_iommu: get rid of {0} initializers

Correct and portable in theory, but triggers warnings with older gcc
versions when -Wmissing-braces is enabled.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119

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


  Commit: cb135f59b8059c3a372652377ef92fa4a49ad550
      
https://github.com/qemu/qemu/commit/cb135f59b8059c3a372652377ef92fa4a49ad550
  Author: Peter Xu <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/i386/intel_iommu.c
    M hw/i386/pc.c
    M hw/intc/ioapic.c
    M include/hw/i386/apic-msidef.h
    M include/hw/i386/ioapic_internal.h
    M include/hw/i386/pc.h

  Log Message:
  -----------
  q35: ioapic: add support for emulated IOAPIC IR

This patch translates all IOAPIC interrupts into MSI ones. One pseudo
ioapic address space is added to transfer the MSI message. By default,
it will be system memory address space. When IR is enabled, it will be
IOMMU address space.

Currently, only emulated IOAPIC is supported.

Idea suggested by Jan Kiszka and Rita Sinha in the following patch:

https://lists.gnu.org/archive/html/qemu-devel/2016-03/msg01933.html

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


  Commit: c15fa0bea982766c5c3de28d1abd245e3c44a17f
      
https://github.com/qemu/qemu/commit/c15fa0bea982766c5c3de28d1abd245e3c44a17f
  Author: Peter Xu <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/intc/ioapic.c

  Log Message:
  -----------
  ioapic: introduce ioapic_entry_parse() helper

Abstract IOAPIC entry parsing logic into a helper function.

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


  Commit: 8b5ed7dffa1fa2835a782a8db8d4f3f1f772ada9
      
https://github.com/qemu/qemu/commit/8b5ed7dffa1fa2835a782a8db8d4f3f1f772ada9
  Author: Peter Xu <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M Makefile.objs
    M hw/i386/intel_iommu.c
    M include/hw/i386/intel_iommu.h
    M include/hw/i386/x86-iommu.h
    M target-i386/kvm.c
    A target-i386/trace-events

  Log Message:
  -----------
  intel_iommu: add support for split irqchip

In split irqchip mode, IOAPIC is working in user space, only update
kernel irq routes when entry changed. When IR is enabled, we directly
update the kernel with translated messages. It works just like a kernel
cache for the remapping entries.

Since KVM irqfd is using kernel gsi routes to deliver interrupts, as
long as we can support split irqchip, we will support irqfd as
well. Also, since kernel gsi routes will cache translated interrupts,
irqfd delivery will not suffer from any performance impact due to IR.

And, since we supported irqfd, vhost devices will be able to work
seamlessly with IR now. Logically this should contain both vhost-net and
vhost-user case.

Signed-off-by: Paolo Bonzini <address@hidden>
[move trace-events lines into target-i386/trace-events]
Signed-off-by: Peter Xu <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 02a2cbc872df99205eeafd399f01c210e0b797c4
      
https://github.com/qemu/qemu/commit/02a2cbc872df99205eeafd399f01c210e0b797c4
  Author: Peter Xu <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/i386/intel_iommu.c
    M hw/i386/intel_iommu_internal.h
    M hw/i386/trace-events
    M hw/i386/x86-iommu.c
    M include/hw/i386/x86-iommu.h

  Log Message:
  -----------
  x86-iommu: introduce IEC notifiers

This patch introduces x86 IOMMU IEC (Interrupt Entry Cache)
invalidation notifier list. When vIOMMU receives IEC invalidate
request, all the registered units will be notified with specific
invalidation requests.

Intel IOMMU is the first provider that generates such a event.

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


  Commit: e3d9c92507df61608896a579b5b0d7c218d5353e
      
https://github.com/qemu/qemu/commit/e3d9c92507df61608896a579b5b0d7c218d5353e
  Author: Peter Xu <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/intc/ioapic.c
    M include/hw/i386/ioapic_internal.h

  Log Message:
  -----------
  ioapic: register IOMMU IEC notifier for ioapic

Let IOAPIC the first consumer of x86 IOMMU IEC invalidation
notifiers. This is only used for split irqchip case, when vIOMMU
receives IR invalidation requests, IOAPIC will be notified to update
kernel irq routes. For simplicity, we just update all IOAPIC routes,
even if the invalidated entries are not IOAPIC ones.

Since now we are creating IOMMUs using "-device" parameter, IOMMU
device will be created after IOAPIC.  We need to do the registration
after machine done by leveraging machine_done notifier.

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


  Commit: 28589311b326398e88bf6804db8575a6da426b39
      
https://github.com/qemu/qemu/commit/28589311b326398e88bf6804db8575a6da426b39
  Author: Jan Kiszka <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/i386/intel_iommu.c
    M hw/i386/intel_iommu_internal.h
    M include/hw/i386/intel_iommu.h

  Log Message:
  -----------
  intel_iommu: Add support for Extended Interrupt Mode

As neither QEMU nor KVM support more than 255 CPUs so far, this is
simple: we only need to switch the destination ID translation in
vtd_remap_irq_get if EIME is set.

Once CFI support is there, it will have to take EIM into account as
well. So far, nothing to do for this.

This patch allows to use x2APIC in split irqchip mode of KVM.

Signed-off-by: Jan Kiszka <address@hidden>
[use le32_to_cpu() to retrieve dest_id]
Signed-off-by: Peter Xu <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: ede9c94acf6cd1968de4188c0228b714ab871a86
      
https://github.com/qemu/qemu/commit/ede9c94acf6cd1968de4188c0228b714ab871a86
  Author: Peter Xu <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/i386/intel_iommu.c
    M include/hw/i386/intel_iommu.h

  Log Message:
  -----------
  intel_iommu: add SID validation for IR

This patch enables SID validation. Invalid interrupts will be dropped.

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


  Commit: d1f6af6a17a66f58c238e1c26b928cf71c0c11da
      
https://github.com/qemu/qemu/commit/d1f6af6a17a66f58c238e1c26b928cf71c0c11da
  Author: Peter Xu <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/i386/kvm/pci-assign.c
    M hw/misc/ivshmem.c
    M hw/vfio/pci.c
    M hw/virtio/virtio-pci.c
    M include/sysemu/kvm.h
    M kvm-all.c
    M kvm-stub.c
    M target-i386/kvm.c

  Log Message:
  -----------
  kvm-irqchip: simplify kvm_irqchip_add_msi_route

Changing the original MSIMessage parameter in kvm_irqchip_add_msi_route
into the vector number. Vector index provides more information than the
MSIMessage, we can retrieve the MSIMessage using the vector easily. This
will avoid fetching MSIMessage every time before adding MSI routes.

Meanwhile, the vector info will be used in the coming patches to further
enable gsi route update notifications.

Signed-off-by: Peter Xu <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 38d87493f37e5dc442c7419c5843fcf60bb39d63
      
https://github.com/qemu/qemu/commit/38d87493f37e5dc442c7419c5843fcf60bb39d63
  Author: Peter Xu <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M include/sysemu/kvm.h
    M kvm-all.c
    M target-arm/kvm.c
    M target-i386/kvm.c
    M target-i386/trace-events
    M target-mips/kvm.c
    M target-ppc/kvm.c
    M target-s390x/kvm.c

  Log Message:
  -----------
  kvm-irqchip: i386: add hook for add/remove virq

Adding two hooks to be notified when adding/removing msi routes. There
are two kinds of MSI routes:

- in kvm_irqchip_add_irq_route(): before assigning IRQFD. Used by
  vhost, vfio, etc.

- in kvm_irqchip_send_msi(): when sending direct MSI message, if
  direct MSI not allowed, we will first create one MSI route entry
  in the kernel, then trigger it.

This patch only hooks the first one (irqfd case). We do not need to
take care for the 2nd one, since it's only used by QEMU userspace
(kvm-apic) and the messages will always do in-time translation when
triggered. While we need to note them down for the 1st one, so that we
can notify the kernel when cache invalidation happens.

Also, we do not hook IOAPIC msi routes (we have explicit notifier for
IOAPIC to keep its cache updated). We only need to care about irqfd
users.

Signed-off-by: Peter Xu <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: e1d4fb2de594ab0cbe78846bc79617b9bd50c867
      
https://github.com/qemu/qemu/commit/e1d4fb2de594ab0cbe78846bc79617b9bd50c867
  Author: Peter Xu <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/pci/pci.c
    M include/hw/pci/pci.h
    M kvm-all.c
    M target-i386/kvm.c
    M target-i386/trace-events

  Log Message:
  -----------
  kvm-irqchip: x86: add msi route notify fn

One more IEC notifier is added to let msi routes know about the IEC
changes. When interrupt invalidation happens, all registered msi routes
will be updated for all PCI devices.

Since both vfio and vhost are possible gsi route consumers, this patch
will go one step further to keep them safe in split irqchip mode and
when irqfd is enabled.

Reviewed-by: Paolo Bonzini <address@hidden>
[move trace-events lines into target-i386/trace-events]
Signed-off-by: Peter Xu <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 3f1fea0fb5bfd78ede2ceae5dae0b24c0380f423
      
https://github.com/qemu/qemu/commit/3f1fea0fb5bfd78ede2ceae5dae0b24c0380f423
  Author: Peter Xu <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/i386/kvm/pci-assign.c
    M hw/misc/ivshmem.c
    M hw/vfio/pci.c
    M hw/virtio/virtio-pci.c
    M include/sysemu/kvm.h
    M kvm-all.c
    M kvm-stub.c
    M target-i386/kvm.c

  Log Message:
  -----------
  kvm-irqchip: do explicit commit when update irq

In the past, we are doing gsi route commit for each irqchip route
update. This is not efficient if we are updating lots of routes in the
same time. This patch removes the committing phase in
kvm_irqchip_update_msi_route(). Instead, we do explicit commit after all
routes updated.

Signed-off-by: Peter Xu <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: a3f409cb4a35d9aa6a4d24a7a1e05423e189cb7a
      
https://github.com/qemu/qemu/commit/a3f409cb4a35d9aa6a4d24a7a1e05423e189cb7a
  Author: Radim Krčmář <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/i386/intel_iommu.c
    M hw/i386/intel_iommu_internal.h

  Log Message:
  -----------
  intel_iommu: support all masks in interrupt entry cache invalidation

Linux guests do not gracefully handle cases when the invalidation mask
they wanted is not supported, probably because real hardware always
allowed all.

We can just say that all 16 masks are supported, because both
ioapic_iec_notifier and kvm_update_msi_routes_all invalidate all caches.

Signed-off-by: Radim Krčmář <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 54a6c11b20bb635ac5bb5d9369782bf00d0c7e19
      
https://github.com/qemu/qemu/commit/54a6c11b20bb635ac5bb5d9369782bf00d0c7e19
  Author: Peter Xu <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M kvm-all.c
    M trace-events

  Log Message:
  -----------
  kvm-all: add trace events for kvm irqchip ops

These will help us monitoring irqchip route activities more easily.

Signed-off-by: Peter Xu <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 4684a2041005b598ecc92fbaf36463d2fd12b5de
      
https://github.com/qemu/qemu/commit/4684a2041005b598ecc92fbaf36463d2fd12b5de
  Author: Peter Xu <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/i386/intel_iommu.c

  Log Message:
  -----------
  intel_iommu: disallow kernel-irqchip=on with IR

When user specify "intremap=on" with "-M kernel-irqchip=on", throw error
and then quit.

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


  Commit: bf1780b0d57af0ef3c14a036bc6be1e509dd72fc
      
https://github.com/qemu/qemu/commit/bf1780b0d57af0ef3c14a036bc6be1e509dd72fc
  Author: Fam Zheng <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

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

  Log Message:
  -----------
  virtio: Add typedef for handle_output

The function pointer signature has been repeated a few times, using a
typedef may make coding easier.

Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Acked-by: Paolo Bonzini <address@hidden>


  Commit: 872dd82c83745a603d2e07a03d34313eb6467ae4
      
https://github.com/qemu/qemu/commit/872dd82c83745a603d2e07a03d34313eb6467ae4
  Author: Fam Zheng <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

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

  Log Message:
  -----------
  virtio: Introduce virtio_add_queue_aio

Using this function instead of virtio_add_queue marks the vq as aio
based. This differentiation will be useful in later patches.

Distinguish between virtqueue processing in the iohandler context and main loop
AioContext.  iohandler context is isolated from AioContexts and therefore does
not run during aio_poll().

Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Acked-by: Paolo Bonzini <address@hidden>


  Commit: 0ff841f6d138904d514efa1d885bcaf54583852d
      
https://github.com/qemu/qemu/commit/0ff841f6d138904d514efa1d885bcaf54583852d
  Author: Fam Zheng <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/block/virtio-blk.c

  Log Message:
  -----------
  virtio-blk: Call virtio_add_queue_aio

AIO based handler is more appropriate here because it will then
cooperate with bdrv_drained_begin/end. It is needed by the coming
revert patch.

Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Acked-by: Paolo Bonzini <address@hidden>


  Commit: 1c627137c10ee2dcf59e0383ade8a9abfa2d4355
      
https://github.com/qemu/qemu/commit/1c627137c10ee2dcf59e0383ade8a9abfa2d4355
  Author: Fam Zheng <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

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

  Log Message:
  -----------
  virtio-scsi: Call virtio_add_queue_aio

AIO based handler is more appropriate here because it will then
cooperate with bdrv_drained_begin/end. It is needed by the coming
revert patch.

Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Acked-by: Paolo Bonzini <address@hidden>


  Commit: d4a92a8420ac764f21652322aa7d4e49cfcbc607
      
https://github.com/qemu/qemu/commit/d4a92a8420ac764f21652322aa7d4e49cfcbc607
  Author: Fam Zheng <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M block/mirror.c

  Log Message:
  -----------
  Revert "mirror: Workaround for unexpected iohandler events during completion"

This reverts commit ab27c3b5e7408693dde0b565f050aa55c4a1bcef.

The virtio storage device host notifiers now work with
bdrv_drained_begin/end, so we don't need this hack any more.

Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Acked-by: Paolo Bonzini <address@hidden>


  Commit: 209b27bbe9453d3f76eb801fdd63bcbafd405df0
      
https://github.com/qemu/qemu/commit/209b27bbe9453d3f76eb801fdd63bcbafd405df0
  Author: Fam Zheng <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

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

  Log Message:
  -----------
  virtio-scsi: Replace HandleOutput typedef

There is a new common one in virtio.h, use it.

Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Acked-by: Paolo Bonzini <address@hidden>


  Commit: 76010cb320b08d23a9719e692197407ccd293dfc
      
https://github.com/qemu/qemu/commit/76010cb320b08d23a9719e692197407ccd293dfc
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

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

  Log Message:
  -----------
  virtio-net: Remove old migration version support

virtio-net has had version 11 since 0ce0e8f4 in 2009
(v0.11.0-rc0-1480-g0ce0e8f) - remove the code to support loading
anything earlier.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Amit Shah <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 71945ae1647a6e5f07ea668ee6330f0d539f59cb
      
https://github.com/qemu/qemu/commit/71945ae1647a6e5f07ea668ee6330f0d539f59cb
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/char/virtio-serial-bus.c

  Log Message:
  -----------
  virtio-serial: Remove old migration version support

virtio-serial-bus has had version 3 since 37f95bf3d0 in 0.13-rc0;
it's time to clean it up a bit.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Amit Shah <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 5943124cc0fe37b3a7541a628cf3ffefd8b3414a
      
https://github.com/qemu/qemu/commit/5943124cc0fe37b3a7541a628cf3ffefd8b3414a
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

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

  Log Message:
  -----------
  virtio: Migration helper function and macro

To make conversion of virtio devices to VMState simple
at first add a helper function for the simple virtio_save
case and a helper macro that defines the VMState structure.
These will probably go away or change as more of the virtio
code gets converted.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 5a289a28836915e90916cea4c585689df2a43163
      
https://github.com/qemu/qemu/commit/5a289a28836915e90916cea4c585689df2a43163
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

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

  Log Message:
  -----------
  virtio-scsi: Wrap in vmstate

Forcibly convert it to a vmstate wrapper;  proper conversion
comes later.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: bbded32c644839ae56b497408841b67980fddd90
      
https://github.com/qemu/qemu/commit/bbded32c644839ae56b497408841b67980fddd90
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/block/virtio-blk.c

  Log Message:
  -----------
  virtio-blk: Wrap in vmstate

Forcibly convert it to a vmstate wrapper;  proper conversion
comes later.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: b607579386764c45695ee47001178b97346f99e2
      
https://github.com/qemu/qemu/commit/b607579386764c45695ee47001178b97346f99e2
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

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

  Log Message:
  -----------
  virtio-rng: Wrap in vmstate

Forcibly convert it to a vmstate wrapper;  proper conversion
comes later.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 7f1ca9b23b3641107d05196ca78fc022a39fd65c
      
https://github.com/qemu/qemu/commit/7f1ca9b23b3641107d05196ca78fc022a39fd65c
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

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

  Log Message:
  -----------
  virtio-balloon: Wrap in vmstate

Forcibly convert it to a vmstate wrapper;  proper conversion
comes later.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 290c2428453632502249df3bb4b99f1b3625137c
      
https://github.com/qemu/qemu/commit/290c2428453632502249df3bb4b99f1b3625137c
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

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

  Log Message:
  -----------
  virtio-net: Wrap in vmstate

Forcibly convert it to a vmstate wrapper;  proper conversion
comes later.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 42e6c0390b1c4bc04ca73c862f2f017609c7cc7e
      
https://github.com/qemu/qemu/commit/42e6c0390b1c4bc04ca73c862f2f017609c7cc7e
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/char/virtio-serial-bus.c

  Log Message:
  -----------
  virtio-serial: Wrap in vmstate

Forcibly convert it to a vmstate wrapper;  proper conversion
comes later.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 18e0e5b240ae865554863fa35e8b9af9580f971b
      
https://github.com/qemu/qemu/commit/18e0e5b240ae865554863fa35e8b9af9580f971b
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/9pfs/virtio-9p-device.c

  Log Message:
  -----------
  9pfs: Wrap in vmstate

Forcibly convert it to a vmstate wrapper;  proper conversion
comes later.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Greg Kurz <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 428d2ed2c84d71fa7cb25d12e409ee9b7f0a953c
      
https://github.com/qemu/qemu/commit/428d2ed2c84d71fa7cb25d12e409ee9b7f0a953c
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

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

  Log Message:
  -----------
  virtio-input: Wrap in vmstate

Forcibly convert it to a vmstate wrapper;  proper conversion
comes later.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: de8892215e27caed9c26358a7435ea4877e022b1
      
https://github.com/qemu/qemu/commit/de8892215e27caed9c26358a7435ea4877e022b1
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/display/virtio-gpu.c
    M include/hw/virtio/virtio-gpu.h

  Log Message:
  -----------
  virtio-gpu: Use migrate_add_blocker for virgl migration blocking

virgl conditionally registers a vmstate as unmigratable when virgl
is enabled; instead use the migrate_add_blocker mechanism.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Gerd Hoffmann <address@hidden>


  Commit: 0fc07498dabc1fbe42ee733c477306e2730c5ccf
      
https://github.com/qemu/qemu/commit/0fc07498dabc1fbe42ee733c477306e2730c5ccf
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/display/virtio-gpu.c

  Log Message:
  -----------
  virtio-gpu: Wrap in vmstate

Forcibly convert it to a vmstate wrapper;  proper conversion
comes later.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Gerd Hoffmann <address@hidden>


  Commit: 1a210f631b1fc7547b0096717b208d199b16c4d6
      
https://github.com/qemu/qemu/commit/1a210f631b1fc7547b0096717b208d199b16c4d6
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M docs/virtio-migration.txt

  Log Message:
  -----------
  virtio: Update migration docs

Remove references to register_savevm.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: bc38ee10fc26338e21c01485540f815be1f3db28
      
https://github.com/qemu/qemu/commit/bc38ee10fc26338e21c01485540f815be1f3db28
  Author: Michael S. Tsirkin <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M hw/i386/intel_iommu.c
    M include/hw/i386/intel_iommu.h

  Log Message:
  -----------
  intel_iommu: avoid unnamed fields

Also avoid unnamed fields for portability.
Also, rename VTD_IRTE to VTD_IR_TableEntry for coding
style compliance.

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


  Commit: 206d0c24361a083fbdcb2cc86fb75dc8b7f251a2
      
https://github.com/qemu/qemu/commit/206d0c24361a083fbdcb2cc86fb75dc8b7f251a2
  Author: Peter Maydell <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M Makefile.objs
    M block/mirror.c
    M docs/virtio-migration.txt
    M hw/9pfs/virtio-9p-device.c
    M hw/alpha/typhoon.c
    M hw/block/virtio-blk.c
    M hw/char/virtio-serial-bus.c
    M hw/display/virtio-gpu.c
    M hw/i386/Makefile.objs
    M hw/i386/acpi-build.c
    M hw/i386/intel_iommu.c
    M hw/i386/intel_iommu_internal.h
    M hw/i386/kvm/pci-assign.c
    M hw/i386/pc.c
    M hw/i386/trace-events
    A hw/i386/x86-iommu.c
    M hw/input/virtio-input.c
    M hw/intc/ioapic.c
    M hw/mem/nvdimm.c
    M hw/mips/gt64xxx_pci.c
    M hw/misc/ivshmem.c
    M hw/net/virtio-net.c
    M hw/pci-host/apb.c
    M hw/pci-host/grackle.c
    M hw/pci-host/prep.c
    M hw/pci-host/versatile.c
    M hw/pci/pci.c
    M hw/scsi/virtio-scsi.c
    M hw/vfio/pci.c
    M hw/virtio/virtio-balloon.c
    M hw/virtio/virtio-pci.c
    M hw/virtio/virtio-rng.c
    M hw/virtio/virtio.c
    M include/hw/acpi/acpi-defs.h
    M include/hw/i386/apic-msidef.h
    M include/hw/i386/intel_iommu.h
    M include/hw/i386/ioapic_internal.h
    M include/hw/i386/pc.h
    A include/hw/i386/x86-iommu.h
    M include/hw/pci-host/q35.h
    M include/hw/pci/pci.h
    M include/hw/virtio/virtio-gpu.h
    M include/hw/virtio/virtio-scsi.h
    M include/hw/virtio/virtio.h
    M include/sysemu/kvm.h
    M kvm-all.c
    M kvm-stub.c
    M target-arm/kvm.c
    M target-i386/kvm.c
    A target-i386/trace-events
    M target-mips/kvm.c
    M target-ppc/kvm.c
    M target-s390x/kvm.c
    M tests/prom-env-test.c
    M trace-events

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

pc, pci, virtio: new features, cleanups, fixes

- interrupt remapping for intel iommus
- a bunch of virtio cleanups
- fixes all over the place

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

# gpg: Signature made Thu 21 Jul 2016 18:49:30 BST
# gpg:                using RSA key 0x281F0DB8D28D5469
# gpg: Good signature from "Michael S. Tsirkin <address@hidden>"
# gpg:                 aka "Michael S. Tsirkin <address@hidden>"
# 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: (57 commits)
  intel_iommu: avoid unnamed fields
  virtio: Update migration docs
  virtio-gpu: Wrap in vmstate
  virtio-gpu: Use migrate_add_blocker for virgl migration blocking
  virtio-input: Wrap in vmstate
  9pfs: Wrap in vmstate
  virtio-serial: Wrap in vmstate
  virtio-net: Wrap in vmstate
  virtio-balloon: Wrap in vmstate
  virtio-rng: Wrap in vmstate
  virtio-blk: Wrap in vmstate
  virtio-scsi: Wrap in vmstate
  virtio: Migration helper function and macro
  virtio-serial: Remove old migration version support
  virtio-net: Remove old migration version support
  virtio-scsi: Replace HandleOutput typedef
  Revert "mirror: Workaround for unexpected iohandler events during completion"
  virtio-scsi: Call virtio_add_queue_aio
  virtio-blk: Call virtio_add_queue_aio
  virtio: Introduce virtio_add_queue_aio
  ...

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/7239247a2ba2...206d0c24361a

reply via email to

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