qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 9011a1: pc, pc_piix: split out pc nic initial


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 9011a1: pc, pc_piix: split out pc nic initialization
Date: Mon, 26 Nov 2012 13:30:14 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 9011a1a7bbf00deeada3447143bbde7e0a685297
      
https://github.com/qemu/qemu/commit/9011a1a7bbf00deeada3447143bbde7e0a685297
  Author: Isaku Yamahata <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/pc.c
    M hw/pc.h
    M hw/pc_piix.c

  Log Message:
  -----------
  pc, pc_piix: split out pc nic initialization

Factor out pc nic initialization.
This simplifies the pc initialization and will reduce the code
duplication of q35 pc initialization.

Reviewed-by: Paolo Bonzini <address@hidden>
Reviewed-by: Anthony Liguori <address@hidden>
Signed-off-by: Isaku Yamahata <address@hidden>
Signed-off-by: Jason Baron <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: a39e356458335418973ca7d388c02712145cd177
      
https://github.com/qemu/qemu/commit/a39e356458335418973ca7d388c02712145cd177
  Author: Jason Baron <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/pc.c
    M hw/pc.h
    M hw/pc_piix.c

  Log Message:
  -----------
  pc: Move ioapic_init() from pc_piix.c to pc.c

Move ioapic_init() from pc_piix.c to pc.c, to make it a common function.
Rename ioapic_init() -> ioapic_init_gsi().
Move to pc.h so q35 can use them as well.

Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Jason Baron <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: d8ee03843fcacfb70c0260af74f20ba9808d4f2e
      
https://github.com/qemu/qemu/commit/d8ee03843fcacfb70c0260af74f20ba9808d4f2e
  Author: Jason Baron <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/kvm/ioapic.c
    M hw/pc_piix.c
    M kvm.h

  Log Message:
  -----------
  pc_piix: Move kvm irq routing functions out of pc_piix.c

Rename: kvm_piix3_gsi_handlei() -> kvm_pc_gsi_handler()
  kvm_piix3_setup_irq_routing() -> kvm_pc_setup_irq_routing()

This is in preparation for other users, namely q35 at this time.

Signed-off-by: Jason Baron <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 410edd922d2a90c79cd92b086c0e53650ea52c02
      
https://github.com/qemu/qemu/commit/410edd922d2a90c79cd92b086c0e53650ea52c02
  Author: Isaku Yamahata <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/Makefile.objs
    A hw/pam.c
    A hw/pam.h
    M hw/piix_pci.c

  Log Message:
  -----------
  pc/piix_pci: factor out smram/pam logic

Factor out smram/pam logic for use by other chipsets, namely q35
at this point.

Note: Should be factored out into a generic North Bridge Class.

address@hidden: changes for updated memory API]
Signed-off-by: Isaku Yamahata <address@hidden>
Signed-off-by: Jason Baron <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: e516572fdefdf1168e890d1fd79d56cd44aa2102
      
https://github.com/qemu/qemu/commit/e516572fdefdf1168e890d1fd79d56cd44aa2102
  Author: Jason Baron <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/Makefile.objs
    A hw/acpi_ich9.c
    A hw/acpi_ich9.h
    A hw/ich9.h
    M hw/pci_ids.h

  Log Message:
  -----------
  ich9: Add acpi support and definitions

Lay the groundwork for subsequent ich9 support.

Signed-off-by: Isaku Yamahata <address@hidden>
Signed-off-by: Jason Baron <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 4d00636e97b7f55810ff7faccff594159175e24e
      
https://github.com/qemu/qemu/commit/4d00636e97b7f55810ff7faccff594159175e24e
  Author: Jason Baron <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/i386/Makefile.objs
    A hw/lpc_ich9.c

  Log Message:
  -----------
  ich9: Add the lpc chip

Add support for the ICH9 LPC chip.

Signed-off-by: Isaku Yamahata <address@hidden>
Signed-off-by: Jason Baron <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 678e7b94b182f846de61e38e8a6499f9c55dbcf0
      
https://github.com/qemu/qemu/commit/678e7b94b182f846de61e38e8a6499f9c55dbcf0
  Author: Jason Baron <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/Makefile.objs
    A hw/smbus_ich9.c

  Log Message:
  -----------
  ich9: Add smbus

Add support for the ich9 smbus chip.

Signed-off-by: Isaku Yamahata <address@hidden>
Signed-off-by: Jason Baron <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: df2d8b3ed4d2b6406335d274f9537d78ac4e3c0c
      
https://github.com/qemu/qemu/commit/df2d8b3ed4d2b6406335d274f9537d78ac4e3c0c
  Author: Isaku Yamahata <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/i386/Makefile.objs
    A hw/pc_q35.c
    M hw/pci_ids.h
    A hw/q35.c
    A hw/q35.h

  Log Message:
  -----------
  q35: Introduce q35 pc based chipset emulator

pc q35 based chipset emulator to support pci express natively. Based on
Anthony Liguori's suggestion, the machine name is 'q35-next', with an alias
of 'q35'. At this point, there are no compatibility guarantees. When the
chipset stabilizes more, we will begin to version the machine names.

Major features which still need to be added:

-Migration support (mostly around ahci)
-ACPI hotplug support (pcie hotplug support is working)
-Passthrough support

Signed-off-by: Isaku Yamahata <address@hidden>
Signed-off-by: Jason Baron <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: a1c9304683161a68c1fc1d9c3bc174ec8e26a61a
      
https://github.com/qemu/qemu/commit/a1c9304683161a68c1fc1d9c3bc174ec8e26a61a
  Author: Jason Baron <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/Makefile.objs
    A hw/i82801b11.c

  Log Message:
  -----------
  ich9: Add i82801b11 dmi-to-pci bridge

Add the dmi-to-pci i82801b11 bridge chip. This is the pci bridge chip
that q35 uses on its host bus for PCI bus arbitration.

Signed-off-by: Isaku Yamahata <address@hidden>
Signed-off-by: Jason Baron <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 21bcfdd9a43041720f9370831c694bcb2e11eea4
      
https://github.com/qemu/qemu/commit/21bcfdd9a43041720f9370831c694bcb2e11eea4
  Author: Jan Kiszka <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/acpi_ich9.c

  Log Message:
  -----------
  q35: Suppress SMM BIOS initialization under KVM

Same as for i44fx: KVM does not support SMM yet. Signal it initialized
to Seabios to avoid failures.

Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Jan Kiszka <address@hidden>
Signed-off-by: Jason Baron <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 243b95111c8b8d171e627247a7de16e94c7e9de0
      
https://github.com/qemu/qemu/commit/243b95111c8b8d171e627247a7de16e94c7e9de0
  Author: Jan Kiszka <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/lpc_ich9.c

  Log Message:
  -----------
  q35: Fix non-PCI IRQ processing in ich9_lpc_update_apic

Avoid passing a non-PCI IRQ to ich9_gsi_to_pirq. It's wrong and triggers
an assertion.

Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Jan Kiszka <address@hidden>
Signed-off-by: Jason Baron <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 21022c92dc5095324ceb3effc068b5ff81642125
      
https://github.com/qemu/qemu/commit/21022c92dc5095324ceb3effc068b5ff81642125
  Author: Jan Kiszka <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/pc_q35.c

  Log Message:
  -----------
  q35: Add kvmclock support

Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Jan Kiszka <address@hidden>
Signed-off-by: Jason Baron <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: b022b4a44abda9b6f89777b07e538be6f8f7aacb
      
https://github.com/qemu/qemu/commit/b022b4a44abda9b6f89777b07e538be6f8f7aacb
  Author: Paolo Bonzini <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M aio-win32.c

  Log Message:
  -----------
  aio: avoid livelock behavior for Win32

The repeated calls to WaitForMultipleObjects may cause a livelock in aio_poll,
where no progress is made on bottom halves.  This patch matches the behavior
of the POSIX code.

Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: b2ea25d7aea3106f3cad597be20cf5ab4d87f7ab
      
https://github.com/qemu/qemu/commit/b2ea25d7aea3106f3cad597be20cf5ab4d87f7ab
  Author: Paolo Bonzini <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M tests/Makefile
    A tests/test-aio.c

  Log Message:
  -----------
  tests: add AioContext unit tests

Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 74c856e9228445bac1624f6aad83422bdbc59f98
      
https://github.com/qemu/qemu/commit/74c856e9228445bac1624f6aad83422bdbc59f98
  Author: Paolo Bonzini <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M tests/Makefile
    A tests/test-thread-pool.c

  Log Message:
  -----------
  tests: add thread pool unit tests

Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: b7f43fe46029d8fd0594cd599fa2599dcce0f553
      
https://github.com/qemu/qemu/commit/b7f43fe46029d8fd0594cd599fa2599dcce0f553
  Author: Paolo Bonzini <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M qom/object.c

  Log Message:
  -----------
  qom: dynamic_cast of NULL is always NULL

Trying to cast a NULL value will cause a crash.  Returning
NULL is also sensible, and it is also what the type-unsafe
DO_UPCAST macro does.

Reported-by: Markus Armbruster <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: b5007bcc9729acd995518c52eb1038c4d8416b5d
      
https://github.com/qemu/qemu/commit/b5007bcc9729acd995518c52eb1038c4d8416b5d
  Author: Paolo Bonzini <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/pci-hotplug.c

  Log Message:
  -----------
  hmp: do not crash on invalid SCSI hotplug

Commit 0d93692 (qdev: Convert busses to QEMU Object Model, 2012-05-02)
removed a check on the type of the bus where a SCSI disk is hotplugged.
However, hot-plugging to the wrong kind of device now causes a crash
due to either a NULL pointer dereference (avoided by the previous patch)
or a failed QOM cast.

Instead, in this case we need to use object_dynamic_cast and check for
the result, similar to what was done before that commit.

Reported-by: Markus Armbruster <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 764b63125a77dab54ed405d493452a4e05679c2e
      
https://github.com/qemu/qemu/commit/764b63125a77dab54ed405d493452a4e05679c2e
  Author: Paolo Bonzini <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M qom/object.c

  Log Message:
  -----------
  qom: fix refcount of non-heap-allocated objects

The reference count for embedded objects is always one too low, because
object_initialize_with_type returns with zero references to the object.
This causes premature finalization of the object (or an assertion failure)
after calling object_ref to add an extra reference and object_unref to
remove it.

The fix is to move the initial object_ref call from object_new_with_type
to object_initialize_with_type.

Acked-by: Andreas Färber <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 667d22d1ae59da46b4c1fbd094ca61145f19b8c3
      
https://github.com/qemu/qemu/commit/667d22d1ae59da46b4c1fbd094ca61145f19b8c3
  Author: Paolo Bonzini <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/qdev.c
    M include/qemu/object.h
    M qom/object.c

  Log Message:
  -----------
  qdev: move bus removal to object_unparent

Add an ObjectClass method that is done at object_unparent time.  It
should remove any backlinks to the object in the composition tree,
so that object_delete will be able to drop the last reference and
free the object.

Use it for qdev buses.

Reviewed-by: Andreas Färber <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: fde9bf4470d4a3b6ee1da0dee2370ab028b6314a
      
https://github.com/qemu/qemu/commit/fde9bf4470d4a3b6ee1da0dee2370ab028b6314a
  Author: Paolo Bonzini <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M include/qemu/object.h
    M qom/object.c

  Log Message:
  -----------
  qom: make object_delete usable for statically-allocated objects

Store in the object the freeing function that will be used at deletion
time.  This makes it possible to use object_delete on statically-allocated
(embedded) objects.  Dually, it makes it possible to use object_unparent
and object_unref without leaking memory, when the lifetime of object
might extend until after the call to object_delete.

Reviewed-by: Andreas Färber <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 64b625f4b2fdb2c873e25c149648b2ce923faab7
      
https://github.com/qemu/qemu/commit/64b625f4b2fdb2c873e25c149648b2ce923faab7
  Author: Paolo Bonzini <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/pci.c
    M hw/qdev-core.h
    M hw/qdev.c
    M hw/sysbus.c

  Log Message:
  -----------
  qdev: simplify (de)allocation of buses

All conditional deallocation can now be done with object_delete.
Remove the @qom_allocated and @glib_allocated fields; replace the latter
with a direct assignment of the @free function pointer.

Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 339c2708e7a0d91e926c473314d563354a949c7f
      
https://github.com/qemu/qemu/commit/339c2708e7a0d91e926c473314d563354a949c7f
  Author: Paolo Bonzini <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M include/qemu/object.h
    M qom/object.c

  Log Message:
  -----------
  qom: make object_finalize static

It is not used anymore, and there is no need to make it public.

Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: fa5358c69d090d13f762f545d39c5e03124dfdd8
      
https://github.com/qemu/qemu/commit/fa5358c69d090d13f762f545d39c5e03124dfdd8
  Author: Peter Maydell <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M vl.c

  Log Message:
  -----------
  vl.c: Fix broken -usb option

Commit 094b287f0b accidentally broke the "-usb" command line
option, so it would have no effect if the user had not specified
any machine options at that point. (the return value from
'qemu_opts_find(qemu_find_opts("machine"), 0);' is NULL if there
are no user specified options, so it is only to be used for
looking up an option, not when trying to set one.) Similarly,
would '-usbdevice' no longer cause USB to default to enabled.

Fix this regression by using the same style of code for forcing
the usb=on machine option that we use for other aliases such as
'-enable-kvm'.

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


  Commit: e1e54f3fbee6c0652e19182f4c747de172cbe8b1
      
https://github.com/qemu/qemu/commit/e1e54f3fbee6c0652e19182f4c747de172cbe8b1
  Author: Eduardo Habkost <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M target-i386/cpu.c

  Log Message:
  -----------
  target-i386: cpu: add missing flags to Haswell CPU model

When adding the Haswell CPU model, I intended to make it a superset of the
features present on the SandyBridge model, but I have removed the SEP and
RDTSCP features from the feature list by mistake. This patch adds the missing
SEP and RDTSCP features (that are present on SandyBridge) to Haswell.

Reported-by: Martin Kletzander <address@hidden>
Acked-by: Andreas Färber <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 0c26f2eca40d6c65ea9edc62a10e510dc7f65cc8
      
https://github.com/qemu/qemu/commit/0c26f2eca40d6c65ea9edc62a10e510dc7f65cc8
  Author: Stefan Hajnoczi <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M qapi/qapi-dealloc-visitor.c

  Log Message:
  -----------
  qapi: handle visitor->type_size() in QapiDeallocVisitor

visit_type_size() requires either visitor->type_size() or
visitor_uint64() to be implemented, otherwise a NULL function pointer is
invoked.

It is possible to trigger this crash as follows:

  $ qemu-system-x86_64 -netdev tap,sndbuf=0,id=netdev0 \
                 -device virtio-blk-pci,netdev=netdev0

The 'sndbuf' option has type "size".

Reviewed-by: Andreas Färber <address@hidden>
Reviewed-by: Michael Roth <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 25d87288b150032fedcf7b5380fb54fdbdd6788d
      
https://github.com/qemu/qemu/commit/25d87288b150032fedcf7b5380fb54fdbdd6788d
  Author: Andreas Färber <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/i8259_internal.h

  Log Message:
  -----------
  i8259: Fix PIC_COMMON() macro

It used a wrong struct type name since its introduction in
8f04ee0882aec9fe91fb70f767edf5dacff59835 (isa: pic: convert to QEMU
Object Model), apparently it is unused so far.

Signed-off-by: Andreas Färber <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 14417039653d3293a795646730a7bf5055d78709
      
https://github.com/qemu/qemu/commit/14417039653d3293a795646730a7bf5055d78709
  Author: Amit Shah <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/virtio-rng.c

  Log Message:
  -----------
  virtio-rng: use virtqueue_get_avail_bytes, fix migration

Popping an elem from the vq just to find out its length causes problems
with save/load later on.  Use the new virtqueue_get_avail_bytes()
function instead, saves us the complexity in the migration code, as well
as makes the migration endian-safe.

Signed-off-by: Amit Shah <address@hidden>
Reviewed-by: Anthony Liguori <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 4621c1768ef5d12171cca2aa1473595ecb9f1c9e
      
https://github.com/qemu/qemu/commit/4621c1768ef5d12171cca2aa1473595ecb9f1c9e
  Author: Amit Shah <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/virtio-rng.c

  Log Message:
  -----------
  virtio-rng: remove extra request for entropy

If we got fewer bytes from the backend than requested, don't poke the
backend for more bytes; the guest will ask for more (or if the guest has
already asked for more, the backend knows about it via handle_input()).

Signed-off-by: Amit Shah <address@hidden>
Reviewed-by: Anthony Liguori <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 8cc677435498561d8fe213bb44a02cf4f75cc685
      
https://github.com/qemu/qemu/commit/8cc677435498561d8fe213bb44a02cf4f75cc685
  Author: Amit Shah <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

  Changed paths:
    M hw/virtio-rng.c

  Log Message:
  -----------
  virtio-rng: disable timer on device removal

Disable the rate-limit timer on device remove (e.g. hot-unplug).

Signed-off-by: Amit Shah <address@hidden>
Reviewed-by: Anthony Liguori <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 42015c9acb9fb418c97c42f6e0d44c84999c769d
      
https://github.com/qemu/qemu/commit/42015c9acb9fb418c97c42f6e0d44c84999c769d
  Author: Amit Shah <address@hidden>
  Date:   2012-11-26 (Mon, 26 Nov 2012)

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

  Log Message:
  -----------
  virtio-rng: fix typos, comments

Fix typos, whitespace and update comments to match current
implementation.

Signed-off-by: Amit Shah <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>


Compare: https://github.com/qemu/qemu/compare/cab1e8f3e37d...42015c9acb9f

reply via email to

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