1. 12 3月, 2015 3 次提交
  2. 11 3月, 2015 13 次提交
    • P
      Merge remote-tracking branch 'remotes/amit/tags/vser-for-2.3-1' into staging · 9159eb9a
      Peter Maydell 提交于
      virtio-serial: fix crash on port hotplug when a previously-added port
      did not have the 'name' property set.
      
      # gpg: Signature made Wed Mar 11 11:13:53 2015 GMT using RSA key ID 854083B6
      # gpg: Good signature from "Amit Shah <amit@amitshah.net>"
      # gpg:                 aka "Amit Shah <amit@kernel.org>"
      # gpg:                 aka "Amit Shah <amitshah@gmx.net>"
      
      * remotes/amit/tags/vser-for-2.3-1:
        virtio-serial: fix segfault on NULL port names
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      9159eb9a
    • P
      Merge remote-tracking branch 'remotes/afaerber/tags/qom-cpu-for-peter' into staging · 8d86e34e
      Peter Maydell 提交于
      QOM CPUState and X86CPU
      
      * Add CPUClass documentation
      * Clean up X86CPU APIC realization
      * Cleanups around cpu_init()
      
      # gpg: Signature made Tue Mar 10 17:27:28 2015 GMT using RSA key ID 3E7E013F
      # gpg: Good signature from "Andreas Färber <afaerber@suse.de>"
      # gpg:                 aka "Andreas Färber <afaerber@suse.com>"
      
      * remotes/afaerber/tags/qom-cpu-for-peter:
        cpu: Make cpu_init() return QOM CPUState object
        unicore32: Use uc32_cpu_init()
        m68k: Use cpu_m68k_init()
        target-unicore32: Make uc32_cpu_init() return UniCore32CPU
        target-i386: Clean up misuse of qdev_init() in realize method
        cpu: Add missing documentation for some CPUClass methods
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      8d86e34e
    • P
      Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging · 48412371
      Peter Maydell 提交于
      X86 patches queued in the last few weeks. Mostly code cleanup and changes on
      code assigning APIC ID.
      
      # gpg: Signature made Mon Mar  9 20:40:38 2015 GMT using RSA key ID 984DC5A6
      # gpg: Can't check signature: public key not found
      
      * remotes/ehabkost/tags/x86-pull-request:
        target-i386: Require APIC ID to be explicitly set before CPU realize
        target-i386: Move APIC ID compatibility code to pc.c
        target-i386: Move CPUX86State::cpuid_apic_id to X86CPU::apic_id
        target-i386: Remove unused APIC ID default code
        target-i386: Eliminate unnecessary get_cpuid_vendor() function
        target-i386: Simplify listflags() function
        target-i386: Move topology.h to include/hw/i386
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      48412371
    • A
      virtio-serial: fix segfault on NULL port names · b18a755c
      Amit Shah 提交于
      Commit d0a0bfe6 added checks for port
      names, but didn't add a check to ensure port->name is non-NULL.  This
      results in a SIGSEGV when adding a port when one of the previously-added
      ports didn't have the 'name' property set.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1192775Reported-by: Nvivian zhang <vivianzhang@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NAmit Shah <amit.shah@redhat.com>
      b18a755c
    • P
      Merge remote-tracking branch 'remotes/mcayland/tags/qemu-sparc-signed' into staging · 4ba4df40
      Peter Maydell 提交于
      qemu-sparc update
      
      # gpg: Signature made Tue Mar 10 13:39:51 2015 GMT using RSA key ID AE0F321F
      # gpg: Good signature from "Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>"
      
      * remotes/mcayland/tags/qemu-sparc-signed:
        sun4u: switch m48t59 NVRAM to MMIO access
        MAINTAINERS: add myself as SPARC maintainer
        doc: minor updates to SPARC32 and SPARC64 documentation
        m48t59: add m48t59 sysbus device
        m48t59: introduce new base-year qdev property
        m48t59: let init functions return a Nvram object
        m48t59: add a Nvram interface
        m48t59: register a QOM type for each nvram type we support
        m48t59: move ISA ports/memory regions registration to QOM constructor
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      4ba4df40
    • P
      Merge remote-tracking branch 'remotes/kraxel/tags/pull-vnc-20150310-1' into staging · 21025c29
      Peter Maydell 提交于
      vnc bugfixes.
      
      # gpg: Signature made Tue Mar 10 10:37:51 2015 GMT using RSA key ID D3E87138
      # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>"
      # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>"
      # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>"
      
      * remotes/kraxel/tags/pull-vnc-20150310-1:
        Fix crash when connecting to VNC through websocket
        vnc: -readconfig fix
        vnc: set id at parse time not init time
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      21025c29
    • P
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · 23a7a287
      Peter Maydell 提交于
      - scsi: improvements to error reporting and conversion to realize,
        Coverity/sparse fix for iscsi driver
      - RCU fallout: fix -daemonize and s390x system emulation
      - KVM: kvm_stat improvements and new man page
      - x86: SYSRET fix for VxWorks
      
      # gpg: Signature made Tue Mar 10 10:18:45 2015 GMT using RSA key ID 78C7AE83
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>"
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>"
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
      #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
      
      * remotes/bonzini/tags/for-upstream:
        x86: fix SS selector in SYSRET
        scsi: Convert remaining PCI HBAs to realize()
        scsi: Improve error reporting for invalid drive property
        hw: Propagate errors through qdev_prop_set_drive()
        scsi: Clean up duplicated error in legacy if=scsi code
        cpus: initialize cpu->memory_dispatch
        rcu: handle forks safely
        qemu-thread: do not use PTHREAD_MUTEX_ERRORCHECK
        kvm_stat: add kvm_stat.1 man page
        kvm_stat: add column headers to text UI
        iscsi: Fix check for username
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      23a7a287
    • E
      cpu: Make cpu_init() return QOM CPUState object · 2994fd96
      Eduardo Habkost 提交于
      Instead of making cpu_init() return CPUArchState, return CPUState.
      
      Changes were made using the Coccinelle semantic patch below.
      
        @@
        typedef CPUState;
        identifier e;
        expression args;
        type CPUArchState;
        @@
        -   e =
        +   cpu =
                cpu_init(args);
        -   if (!e) {
        +   if (!cpu) {
                ...
            }
        -   cpu = ENV_GET_CPU(env);
        +   e = cpu->env_ptr;
      
        @@
        identifier new_env, new_cpu, env, cpu;
        type CPUArchState;
        expression args;
        @@
        -{
        -   CPUState *cpu = ENV_GET_CPU(env);
        -   CPUArchState *new_env = cpu_init(args);
        -   CPUState *new_cpu = ENV_GET_CPU(new_env);
        +{
        +   CPUState *cpu = ENV_GET_CPU(env);
        +   CPUState *new_cpu = cpu_init(args);
        +   CPUArchState *new_env = new_cpu->env_ptr;
            ...
        }
      
        @@
        identifier c, cpu_init_func, cpu_model;
        type StateType, CPUType;
        @@
        -static inline StateType* cpu_init(const char *cpu_model)
        -{
        -   CPUType *c = cpu_init_func(cpu_model);
        (
        -   if (c == NULL) {
        -       return NULL;
        -   }
        -   return &c->env;
        |
        -   if (c) {
        -       return &c->env;
        -   }
        -   return NULL;
        )
        -}
        +#define cpu_init(cpu_model) CPU(cpu_init_func(cpu_model))
      
        @@
        identifier cpu_init_func;
        identifier model;
        @@
        -#define cpu_init(model) (&cpu_init_func(model)->env)
        +#define cpu_init(model) CPU(cpu_init_func(model))
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Cc: Blue Swirl <blauwirbel@gmail.com>
      Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
      Cc: Riku Voipio <riku.voipio@iki.fi>
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Michael Walle <michael@walle.cc>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: Leon Alrae <leon.alrae@imgtec.com>
      Cc: Anthony Green <green@moxielogic.com>
      Cc: Jia Liu <proljc@gmail.com>
      Cc: Alexander Graf <agraf@suse.de>
      Cc: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
      Cc: Max Filippov <jcmvbkbc@gmail.com>
      [AF: Fixed up cpu_copy() manually]
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      2994fd96
    • E
      unicore32: Use uc32_cpu_init() · c3898f77
      Eduardo Habkost 提交于
      Instead of using the legacy cpu_init() function, use uc32_cpu_init() to
      create a UniCore32CPU object.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      c3898f77
    • E
      m68k: Use cpu_m68k_init() · eeff620f
      Eduardo Habkost 提交于
      Instead of using the legacy cpu_init() function, use cpu_m68k_init()
      directly to create a M68kCPU object.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      eeff620f
    • E
      target-unicore32: Make uc32_cpu_init() return UniCore32CPU · 41979669
      Eduardo Habkost 提交于
      This way, the cpu_init() function in target-unicore32 will follow the
      same pattern used on all other architectures.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      41979669
    • M
      target-i386: Clean up misuse of qdev_init() in realize method · 6e8e2651
      Markus Armbruster 提交于
      x86_cpu_apic_realize() calls qdev_init() to realize the APIC.
      qdev_init()'s error handling has unwanted side effects: it unparents
      the device, and it calls qerror_report_err().
      
      qerror_report_err() is always inappropriate in realize methods,
      because it doesn't return the Error object.  It either reports the
      error to stderr or the human monitor, or it stores it in the QMP
      monitor, where it makes the QMP command fail even though the realize
      method succeeded.
      
      Fortunately, qdev_init() can't actually fail here, because realize
      can't fail for any of the three possible APIC device models.
      
      Clean up by cutting out the qdev_init() middle-man: set property
      "realized" directly.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NIgor Mammedov <imammedo@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      6e8e2651
    • P
      cpu: Add missing documentation for some CPUClass methods · c08295d4
      Peter Maydell 提交于
      The CPUClass QOM methods virtio_is_big_endian, write_elf{32,64}_note
      and write_elf{32,64}_qemunote were added without any description
      being added to the doc comment. Correct this omission.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Acked-by: NGreg Kurz <gkurz@linux.vnet.ibm.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      c08295d4
  3. 10 3月, 2015 24 次提交