qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 63618b: target-i386: Rename optimize_flags_in


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 63618b: target-i386: Rename optimize_flags_init()
Date: Thu, 21 Jan 2016 09:30:05 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 63618b4ed48f0fc2a7a3fd1117e2f0b512248dab
      
https://github.com/qemu/qemu/commit/63618b4ed48f0fc2a7a3fd1117e2f0b512248dab
  Author: Eduardo Habkost <address@hidden>
  Date:   2016-01-21 (Thu, 21 Jan 2016)

  Changed paths:
    M target-i386/cpu.c
    M target-i386/cpu.h
    M target-i386/translate.c

  Log Message:
  -----------
  target-i386: Rename optimize_flags_init()

Rename the function so that the reason for its existence is
clearer: it does x86-specific initialization of TCG structures.

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


  Commit: 83625474b340c0f1eb2544d7a6e898cc68e868a2
      
https://github.com/qemu/qemu/commit/83625474b340c0f1eb2544d7a6e898cc68e868a2
  Author: Eduardo Habkost <address@hidden>
  Date:   2016-01-21 (Thu, 21 Jan 2016)

  Changed paths:
    M target-i386/ops_sse.h

  Log Message:
  -----------
  target-i386/ops_sse.h: Use MMX_Q macro

We have a MMX_Q macro in addition to MMX_{B,W,L}. Use it.

Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 9618f40f06e90c8fa8ae06b56c7404a7cc937e22
      
https://github.com/qemu/qemu/commit/9618f40f06e90c8fa8ae06b56c7404a7cc937e22
  Author: Eduardo Habkost <address@hidden>
  Date:   2016-01-21 (Thu, 21 Jan 2016)

  Changed paths:
    M target-i386/cpu.h

  Log Message:
  -----------
  target-i386: Use a _q array on MMXReg too

Make MMXReg use the same field names used on XMMReg, so we can
try to reuse macros and other code later.

Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: fa4518741ed69aa7993f9c15bb52eacc375681fc
      
https://github.com/qemu/qemu/commit/fa4518741ed69aa7993f9c15bb52eacc375681fc
  Author: Eduardo Habkost <address@hidden>
  Date:   2016-01-21 (Thu, 21 Jan 2016)

  Changed paths:
    M target-i386/cpu.h
    M target-i386/machine.c
    M target-i386/ops_sse.h
    M target-i386/ops_sse_header.h
    M target-i386/translate.c

  Log Message:
  -----------
  target-i386: Rename struct XMMReg to ZMMReg

The struct represents a 512-bit register, so name it accordingly.

This is just a global search+replace, no other changes are being
introduced.

Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 19cbd87c14ab208858ee1233b790f37cfefed4b9
      
https://github.com/qemu/qemu/commit/19cbd87c14ab208858ee1233b790f37cfefed4b9
  Author: Eduardo Habkost <address@hidden>
  Date:   2016-01-21 (Thu, 21 Jan 2016)

  Changed paths:
    M target-i386/cpu.h
    M target-i386/fpu_helper.c
    M target-i386/gdbstub.c
    M target-i386/helper.c
    M target-i386/kvm.c
    M target-i386/machine.c
    M target-i386/ops_sse.h
    M target-i386/translate.c

  Log Message:
  -----------
  target-i386: Rename XMM_[BWLSDQ] helpers to ZMM_*

They are helpers for the ZMMReg fields, so name them accordingly.

This is just a global search+replace, no other changes are being
introduced.

Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 9253e1a7923e94598419ac9a7df7b8bc6cba65a5
      
https://github.com/qemu/qemu/commit/9253e1a7923e94598419ac9a7df7b8bc6cba65a5
  Author: Eduardo Habkost <address@hidden>
  Date:   2016-01-21 (Thu, 21 Jan 2016)

  Changed paths:
    M target-i386/cpu.h

  Log Message:
  -----------
  target-i386: Define MMXReg._d field

Add a new field and reorder MMXReg fields, to make MMXReg and
ZMMReg field lists look the same (except for the array sizes).

Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 31d414d649b289ff9d1e048c41554298d1094fd3
      
https://github.com/qemu/qemu/commit/31d414d649b289ff9d1e048c41554298d1094fd3
  Author: Eduardo Habkost <address@hidden>
  Date:   2016-01-21 (Thu, 21 Jan 2016)

  Changed paths:
    M target-i386/cpu.h

  Log Message:
  -----------
  target-i386: Define MMREG_UNION macro

This will simplify the definitions of ZMMReg and MMXReg.

Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: f23a9db6bca5b9a228c77bbcaa06d01510e148b7
      
https://github.com/qemu/qemu/commit/f23a9db6bca5b9a228c77bbcaa06d01510e148b7
  Author: Eduardo Habkost <address@hidden>
  Date:   2016-01-21 (Thu, 21 Jan 2016)

  Changed paths:
    M target-i386/cpu.h

  Log Message:
  -----------
  target-i386: Add suffixes to MMReg struct fields

This will ensure we never use the MMX_* and ZMM_* macros with the
wrong struct type.

Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: bcffbeeb82302eaec6aa19e40c05ff3cc863c9f4
      
https://github.com/qemu/qemu/commit/bcffbeeb82302eaec6aa19e40c05ff3cc863c9f4
  Author: Haozhong Zhang <address@hidden>
  Date:   2016-01-21 (Thu, 21 Jan 2016)

  Changed paths:
    M target-i386/kvm.c

  Log Message:
  -----------
  target-i386: Fallback vcpu's TSC rate to value returned by KVM

If no user-specified TSC rate is present, we will try to set
env->tsc_khz to the value returned by KVM_GET_TSC_KHZ. This patch
does not change the current functionality of QEMU and just
prepares for later patches to enable migrating vcpu's TSC rate.

Signed-off-by: Haozhong Zhang <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 5031283d5296dac8d410fa7b01fb6799ccfc76e9
      
https://github.com/qemu/qemu/commit/5031283d5296dac8d410fa7b01fb6799ccfc76e9
  Author: Haozhong Zhang <address@hidden>
  Date:   2016-01-21 (Thu, 21 Jan 2016)

  Changed paths:
    M target-i386/kvm.c

  Log Message:
  -----------
  target-i386: Reorganize TSC rate setting code

Following changes are made to the TSC rate setting code in
kvm_arch_init_vcpu():
 * The code is moved to a new function kvm_arch_set_tsc_khz().
 * If kvm_arch_set_tsc_khz() fails, i.e. following two conditions are
   both satisfied:
   * KVM does not support the TSC scaling or it fails to set vcpu's
     TSC rate by KVM_SET_TSC_KHZ,
   * the TSC rate to be set is different than the value currently used
     by KVM, then kvm_arch_init_vcpu() will fail. Prevously,
   * the lack of TSC scaling never failed kvm_arch_init_vcpu(),
   * the failure of KVM_SET_TSC_KHZ failed kvm_arch_init_vcpu()
     unconditionally, even though the TSC rate to be set is identical
     to the value currently used by KVM.

Signed-off-by: Haozhong Zhang <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 36f96c4b6bd25f43000c317518ff3df10202bc75
      
https://github.com/qemu/qemu/commit/36f96c4b6bd25f43000c317518ff3df10202bc75
  Author: Haozhong Zhang <address@hidden>
  Date:   2016-01-21 (Thu, 21 Jan 2016)

  Changed paths:
    M hw/i386/pc.c
    M hw/i386/pc_piix.c
    M hw/i386/pc_q35.c
    M include/hw/i386/pc.h
    M roms/seabios
    M target-i386/cpu.c
    M target-i386/cpu.h
    M target-i386/kvm.c
    M target-i386/machine.c

  Log Message:
  -----------
  target-i386: Add support to migrate vcpu's TSC rate

This patch enables migrating vcpu's TSC rate. If KVM on the
destination machine supports TSC scaling, guest programs will
observe a consistent TSC rate across the migration.

If TSC scaling is not supported on the destination machine, the
migration will not be aborted and QEMU on the destination will
not set vcpu's TSC rate to the migrated value.

If vcpu's TSC rate specified by CPU option 'tsc-freq' on the
destination machine is inconsistent with the migrated TSC rate,
the migration will be aborted.

For backwards compatibility, the migration of vcpu's TSC rate is
disabled on pc-*-2.5 and older machine types.

Signed-off-by: Haozhong Zhang <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
[ehabkost: Rewrote comment at kvm_arch_put_registers()]
[ehabkost: Moved compat code to pc-2.5]
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: f74eefe0b98cd7e13825de8e8d9f32e22aed102c
      
https://github.com/qemu/qemu/commit/f74eefe0b98cd7e13825de8e8d9f32e22aed102c
  Author: Huaitong Han <address@hidden>
  Date:   2016-01-21 (Thu, 21 Jan 2016)

  Changed paths:
    M target-i386/cpu.c
    M target-i386/cpu.h
    M target-i386/kvm.c
    M target-i386/machine.c

  Log Message:
  -----------
  target-i386: Add PKU and and OSPKE support

Add PKU and OSPKE CPUID features, including xsave state and
migration support.

Signed-off-by: Huaitong Han <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
[ehabkost: squashed 3 patches together, edited patch description]
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 83446463dd7b7e3d7e69bcaa079d6a5d8cd3cd76
      
https://github.com/qemu/qemu/commit/83446463dd7b7e3d7e69bcaa079d6a5d8cd3cd76
  Author: Peter Maydell <address@hidden>
  Date:   2016-01-21 (Thu, 21 Jan 2016)

  Changed paths:
    M hw/i386/pc.c
    M hw/i386/pc_piix.c
    M hw/i386/pc_q35.c
    M include/hw/i386/pc.h
    M roms/seabios
    M target-i386/cpu.c
    M target-i386/cpu.h
    M target-i386/fpu_helper.c
    M target-i386/gdbstub.c
    M target-i386/helper.c
    M target-i386/kvm.c
    M target-i386/machine.c
    M target-i386/ops_sse.h
    M target-i386/ops_sse_header.h
    M target-i386/translate.c

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

X86 queue, 2016-01-21

# gpg: Signature made Thu 21 Jan 2016 15:08:40 GMT using RSA key ID 984DC5A6
# gpg: Good signature from "Eduardo Habkost <address@hidden>"

* remotes/ehabkost/tags/x86-pull-request:
  target-i386: Add PKU and and OSPKE support
  target-i386: Add support to migrate vcpu's TSC rate
  target-i386: Reorganize TSC rate setting code
  target-i386: Fallback vcpu's TSC rate to value returned by KVM
  target-i386: Add suffixes to MMReg struct fields
  target-i386: Define MMREG_UNION macro
  target-i386: Define MMXReg._d field
  target-i386: Rename XMM_[BWLSDQ] helpers to ZMM_*
  target-i386: Rename struct XMMReg to ZMMReg
  target-i386: Use a _q array on MMXReg too
  target-i386/ops_sse.h: Use MMX_Q macro
  target-i386: Rename optimize_flags_init()

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


Compare: https://github.com/qemu/qemu/compare/1a4f446f81c6...83446463dd7b

reply via email to

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