qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 253a55: nios2: 10m50_devboard: replace cpu_mo


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 253a55: nios2: 10m50_devboard: replace cpu_model with cpu_...
Date: Tue, 20 Mar 2018 06:53:11 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 253a5504cea2a4eae0c894d28f142a65434206eb
      
https://github.com/qemu/qemu/commit/253a5504cea2a4eae0c894d28f142a65434206eb
  Author: Igor Mammedov <address@hidden>
  Date:   2018-03-19 (Mon, 19 Mar 2018)

  Changed paths:
    M hw/nios2/10m50_devboard.c

  Log Message:
  -----------
  nios2: 10m50_devboard: replace cpu_model with cpu_type

use cpu_create() instead of being removed cpu_generic_init()

Signed-off-by: Igor Mammedov <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 9c5a87e49687c3a1fb54182aa5785cda4dfcccdd
      
https://github.com/qemu/qemu/commit/9c5a87e49687c3a1fb54182aa5785cda4dfcccdd
  Author: Igor Mammedov <address@hidden>
  Date:   2018-03-19 (Mon, 19 Mar 2018)

  Changed paths:
    M tests/Makefile.include
    A tests/machine-none-test.c

  Log Message:
  -----------
  tests: add machine 'none' with -cpu test

Check that "$QEMU -M none -cpu FOO" starts QEMU without error

Signed-off-by: Igor Mammedov <address@hidden>
Message-Id: <address@hidden>
[ehabkost: include qmp/qdict.h instead of qmp/types.h]
[ehabkost: add riscv targets to machine-none-test]
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 0dacec874fa3b3fd34b0d0670fa257efdcbbebd0
      
https://github.com/qemu/qemu/commit/0dacec874fa3b3fd34b0d0670fa257efdcbbebd0
  Author: Igor Mammedov <address@hidden>
  Date:   2018-03-19 (Mon, 19 Mar 2018)

  Changed paths:
    M target/alpha/cpu.h
    M target/arm/cpu.h
    M target/cris/cpu.h
    M target/hppa/cpu.h
    M target/i386/cpu.h
    M target/lm32/cpu.h
    M target/m68k/cpu.h
    M target/microblaze/cpu.h
    M target/mips/cpu.h
    M target/moxie/cpu.h
    M target/nios2/cpu.h
    M target/openrisc/cpu.h
    M target/ppc/cpu.h
    M target/riscv/cpu.h
    M target/s390x/cpu.h
    M target/sh4/cpu.h
    M target/sparc/cpu.h
    M target/tilegx/cpu.h
    M target/tricore/cpu.h
    M target/unicore32/cpu.h
    M target/xtensa/cpu.h

  Log Message:
  -----------
  cpu: add CPU_RESOLVING_TYPE macro

it will be used for providing to cpu name resolving class for
parsing cpu model for system and user emulation code.

Along with change add target to null-machine tests, so
that when switch to CPU_RESOLVING_TYPE happens,
it would ensure that null-machine usecase still works.

Signed-off-by: Igor Mammedov <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden> (m68k)
Acked-by: David Gibson <address@hidden> (ppc)
Acked-by: Bastian Koppelmann <address@hidden> (tricore)
Message-Id: <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
[ehabkost: Added macro to riscv too]
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 2278b93941d42c30e2950d4b8dff4943d064e7de
      
https://github.com/qemu/qemu/commit/2278b93941d42c30e2950d4b8dff4943d064e7de
  Author: Igor Mammedov <address@hidden>
  Date:   2018-03-19 (Mon, 19 Mar 2018)

  Changed paths:
    M bsd-user/main.c
    M exec.c
    M hw/core/null-machine.c
    M include/hw/boards.h
    M include/qom/cpu.h
    M linux-user/main.c
    M qom/cpu.c
    M vl.c

  Log Message:
  -----------
  Use cpu_create(type) instead of cpu_init(cpu_model)

With all targets defining CPU_RESOLVING_TYPE, refactor
cpu_parse_cpu_model(type, cpu_model) to parse_cpu_model(cpu_model)
so that callers won't have to know internal resolving cpu
type. Place it in exec.c so it could be called from both
target independed vl.c and *-user/main.c.

That allows us to stop abusing cpu type from
  MachineClass::default_cpu_type
as resolver class in vl.c which were confusing part of
cpu_parse_cpu_model().

Also with new parse_cpu_model(), the last users of cpu_init()
in null-machine.c and bsd/linux-user targets could be switched
to cpu_create() API and cpu_init() API will be removed by
follow up patch.

With no longer users left remove MachineState::cpu_model field,
new code should use MachineState::cpu_type instead and
leave cpu_model parsing to generic code in vl.c.

Signed-off-by: Igor Mammedov <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
Message-Id: <address@hidden>
[ehabkost: Fix bsd-user build error]
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 3f71e724e283233753f1b5b3d6a30948d3084636
      
https://github.com/qemu/qemu/commit/3f71e724e283233753f1b5b3d6a30948d3084636
  Author: Igor Mammedov <address@hidden>
  Date:   2018-03-19 (Mon, 19 Mar 2018)

  Changed paths:
    M target/alpha/cpu.h
    M target/arm/cpu.h
    M target/cris/cpu.h
    M target/hppa/cpu.h
    M target/i386/cpu.h
    M target/lm32/cpu.h
    M target/m68k/cpu.h
    M target/microblaze/cpu.h
    M target/mips/cpu.h
    M target/moxie/cpu.h
    M target/nios2/cpu.h
    M target/openrisc/cpu.h
    M target/ppc/cpu.h
    M target/s390x/cpu.h
    M target/sh4/cpu.h
    M target/sparc/cpu.h
    M target/tilegx/cpu.h
    M target/tricore/cpu.h
    M target/unicore32/cpu.h
    M target/xtensa/cpu.h

  Log Message:
  -----------
  cpu: get rid of unused cpu_init() defines

cpu_init(cpu_model) were replaced by cpu_create(cpu_type) so
no users are left, remove it.

Signed-off-by: Igor Mammedov <address@hidden>
Acked-by: David Gibson <address@hidden> (ppc)
Reviewed-by: Eduardo Habkost <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 99193d8f2ef594648ad67cc3d007b0e4fb2f8cf8
      
https://github.com/qemu/qemu/commit/99193d8f2ef594648ad67cc3d007b0e4fb2f8cf8
  Author: Igor Mammedov <address@hidden>
  Date:   2018-03-19 (Mon, 19 Mar 2018)

  Changed paths:
    M qom/cpu.c
    M target/i386/cpu.c

  Log Message:
  -----------
  cpu: drop unnecessary NULL check and cpu_common_class_by_name()

both do nothing as for the first all callers
   parse_cpu_model() and qmp_query_cpu_model_()
should provide non NULL value, so just abort if it's not so.

While at it drop cpu_common_class_by_name() which is not need
any more as every target has CPUClass::class_by_name callback
by now, though abort in case a new arch will forget to define one.

Signed-off-by: Igor Mammedov <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: c078ca968c6c7cb62781c1843d840cb0f5c72781
      
https://github.com/qemu/qemu/commit/c078ca968c6c7cb62781c1843d840cb0f5c72781
  Author: Luwei Kang <address@hidden>
  Date:   2018-03-19 (Mon, 19 Mar 2018)

  Changed paths:
    M target/i386/cpu.c

  Log Message:
  -----------
  i386: Disable Intel PT if packets IP payloads have LIP values

Intel processor trace should be disabled when
CPUID.(EAX=14H,ECX=0H).ECX.[bit31] is set.
Generated packets which contain IP payloads will have LIP
values when this bit is set, or IP payloads will have RIP
values.
Currently, The information of CPUID 14H is constant to make
live migration safty and this bit is always 0 in guest even
if host support LIP values.
Guest sees the bit is 0 will expect IP payloads with RIP
values, but the host CPU will generate IP payloads with
LIP values if this bit is set in HW.
To make sure the value of IP payloads correctly, Intel PT
should be disabled when bit[31] is set.

Signed-off-by: Luwei Kang <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 036793aebfc1dd0ce124fa278d7668d89b5da936
      
https://github.com/qemu/qemu/commit/036793aebfc1dd0ce124fa278d7668d89b5da936
  Author: Peter Maydell <address@hidden>
  Date:   2018-03-20 (Tue, 20 Mar 2018)

  Changed paths:
    M bsd-user/main.c
    M exec.c
    M hw/core/null-machine.c
    M hw/nios2/10m50_devboard.c
    M include/hw/boards.h
    M include/qom/cpu.h
    M linux-user/main.c
    M qom/cpu.c
    M target/alpha/cpu.h
    M target/arm/cpu.h
    M target/cris/cpu.h
    M target/hppa/cpu.h
    M target/i386/cpu.c
    M target/i386/cpu.h
    M target/lm32/cpu.h
    M target/m68k/cpu.h
    M target/microblaze/cpu.h
    M target/mips/cpu.h
    M target/moxie/cpu.h
    M target/nios2/cpu.h
    M target/openrisc/cpu.h
    M target/ppc/cpu.h
    M target/riscv/cpu.h
    M target/s390x/cpu.h
    M target/sh4/cpu.h
    M target/sparc/cpu.h
    M target/tilegx/cpu.h
    M target/tricore/cpu.h
    M target/unicore32/cpu.h
    M target/xtensa/cpu.h
    M tests/Makefile.include
    A tests/machine-none-test.c
    M vl.c

  Log Message:
  -----------
  Merge remote-tracking branch 
'remotes/ehabkost/tags/machine-next-pull-request' into staging

Machine and x86 queue, 2018-03-19

* cpu_model/cpu_type cleanups
* x86: Fix on Intel Processor Trace CPUID checks

# gpg: Signature made Mon 19 Mar 2018 20:07:14 GMT
# gpg:                using RSA key 2807936F984DC5A6
# gpg: Good signature from "Eduardo Habkost <address@hidden>"
# Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF  D1AA 2807 936F 984D C5A6

* remotes/ehabkost/tags/machine-next-pull-request:
  i386: Disable Intel PT if packets IP payloads have LIP values
  cpu: drop unnecessary NULL check and cpu_common_class_by_name()
  cpu: get rid of unused cpu_init() defines
  Use cpu_create(type) instead of cpu_init(cpu_model)
  cpu: add CPU_RESOLVING_TYPE macro
  tests: add machine 'none' with -cpu test
  nios2: 10m50_devboard: replace cpu_model with cpu_type

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


Compare: https://github.com/qemu/qemu/compare/d1fd31f82219...036793aebfc1

reply via email to

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