1. 12 6月, 2018 1 次提交
  2. 02 6月, 2018 1 次提交
  3. 15 5月, 2018 2 次提交
  4. 11 5月, 2018 1 次提交
  5. 07 5月, 2018 2 次提交
  6. 17 3月, 2018 1 次提交
  7. 12 3月, 2018 3 次提交
  8. 18 1月, 2018 2 次提交
  9. 18 12月, 2017 5 次提交
  10. 16 11月, 2017 1 次提交
  11. 19 9月, 2017 1 次提交
  12. 08 9月, 2017 1 次提交
  13. 18 7月, 2017 1 次提交
    • D
      i386: expose "TCGTCGTCGTCG" in the 0x40000000 CPUID leaf · 1ce36bfe
      Daniel P. Berrange 提交于
      Currently when running KVM, we expose "KVMKVMKVM\0\0\0" in
      the 0x40000000 CPUID leaf. Other hypervisors (VMWare,
      HyperV, Xen, BHyve) all do the same thing, which leaves
      TCG as the odd one out.
      
      The CPUID signature is used by software to detect which
      virtual environment they are running in and (potentially)
      change behaviour in certain ways. For example, systemd
      supports a ConditionVirtualization= setting in unit files.
      The virt-what command can also report the virt type it is
      running on
      
      Currently both these apps have to resort to custom hacks
      like looking for 'fw-cfg' entry in the /proc/device-tree
      file to identify TCG.
      
      This change thus proposes a signature "TCGTCGTCGTCG" to be
      reported when running under TCG.
      
      To hide this, the -cpu option tcg-cpuid=off can be used.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-Id: <20170509132736.10071-3-berrange@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      1ce36bfe
  14. 04 7月, 2017 1 次提交
    • T
      Move CONFIG_KVM related definitions to kvm_i386.h · 2099935d
      Thomas Huth 提交于
      pc.h and sysemu/kvm.h are also included from common code (where
      CONFIG_KVM is not available), so the #defines that depend on CONFIG_KVM
      should not be declared here to avoid that anybody is using them in a
      wrong way. Since we're also going to poison CONFIG_KVM for common code,
      let's move them to kvm_i386.h instead. Most of the dummy definitions
      from sysemu/kvm.h are also unused since the code that uses them is
      only compiled for CONFIG_KVM (e.g. target/i386/kvm.c), so the unused
      defines are also simply dropped here instead of being moved.
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Message-Id: <1498454578-18709-3-git-send-email-thuth@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      2099935d
  15. 16 6月, 2017 1 次提交
    • L
      q35/mch: implement extended TSEG sizes · 2f295167
      Laszlo Ersek 提交于
      The q35 machine type currently lets the guest firmware select a 1MB, 2MB
      or 8MB TSEG (basically, SMRAM) size. In edk2/OVMF, we use 8MB, but even
      that is not enough when a lot of VCPUs (more than approx. 224) are
      configured -- SMRAM footprint scales largely proportionally with VCPU
      count.
      
      Introduce a new property for "mch" called "extended-tseg-mbytes", which
      expresses (in megabytes) the user's choice of TSEG (SMRAM) size.
      
      Invent a new, QEMU-specific register in the config space of the DRAM
      Controller, at offset 0x50, in order to allow guest firmware to query the
      TSEG (SMRAM) size.
      
      According to Intel Document Number 316966-002, Table 5-1 "DRAM Controller
      Register Address Map (D0:F0)":
      
          Warning: Address locations that are not listed are considered Intel
                   Reserved registers locations. Reads to Reserved registers may
                   return non-zero values. Writes to reserved locations may
                   cause system failures.
      
                   All registers that are defined in the PCI 2.3 specification,
                   but are not necessary or implemented in this component are
                   simply not included in this document. The
                   reserved/unimplemented space in the PCI configuration header
                   space is not documented as such in this summary.
      
      Offsets 0x50 and 0x51 are not listed in Table 5-1. They are also not part
      of the standard PCI config space header. And they precede the capability
      list as well, which starts at 0xe0 for this device.
      
      When the guest writes value 0xffff to this register, the value that can be
      read back is that of "mch.extended-tseg-mbytes" -- unless it remains
      0xffff. The guest is required to write 0xffff first (as opposed to a
      read-only register) because PCI config space is generally not cleared on
      QEMU reset, and after S3 resume or reboot, new guest firmware running on
      old QEMU could read a guest OS-injected value from this register.
      
      After reading the available "extended" TSEG size, the guest firmware may
      actually request that TSEG size by writing pattern 11b to the ESMRAMC
      register's TSEG_SZ bit-field. (The Intel spec referenced above defines
      only patterns 00b (1MB), 01b (2MB) and 10b (8MB); 11b is reserved.)
      
      On the QEMU command line, the value can be set with
      
        -global mch.extended-tseg-mbytes=N
      
      The default value for 2.10+ q35 machine types is 16. The value is limited
      to 0xfff (4095) at the moment, purely so that the product (4095 MB) can be
      stored to the uint32_t variable "tseg_size" in mch_update_smram(). Users
      are responsible for choosing sensible TSEG sizes.
      
      On 2.9 and earlier q35 machine types, the default value is 0. This lets
      the 11b bit pattern in ESMRAMC.TSEG_SZ, and the register at offset 0x50,
      keep their original behavior.
      
      When "extended-tseg-mbytes" is nonzero, the new register at offset 0x50 is
      set to that value on reset, for completeness.
      
      PCI config space is migrated automatically, so no VMSD changes are
      necessary.
      
      Cc: "Michael S. Tsirkin" <mst@redhat.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1447027
      Ref: https://lists.01.org/pipermail/edk2-devel/2017-May/010456.htmlSigned-off-by: NLaszlo Ersek <lersek@redhat.com>
      Reviewed-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      2f295167
  16. 06 6月, 2017 1 次提交
    • E
      pc: Use "min-[x]level" on compat_props · 1f435716
      Eduardo Habkost 提交于
      Since the automatic cpuid-level code was introduced in commit
      c39c0edf ("target-i386: Automatically
      set level/xlevel/xlevel2 when needed"), the CPU model tables just define
      the default CPUID level code (set using "min-level").  Setting
      "[x]level" forces CPUID level to a specific value and disable the
      automatic-level logic.
      
      But the PC compat code was not updated and the existing "[x]level"
      compat properties broke compatibility for people using features that
      triggered the auto-level code.  To keep previous behavior, we should set
      "min-[x]level" instead of "[x]level" on compat_props.
      
      This was not a problem for most cases, because old machine-types don't
      have full-cpuid-auto-level enabled.  The only common use case it broke
      was the CPUID[7] auto-level code, that was already enabled since the
      first CPUID[7] feature was introduced (in QEMU 1.4.0).
      
      This causes the regression reported at:
      https://bugzilla.redhat.com/show_bug.cgi?id=1454641
      
      Change the PC compat code to use "min-[x]level" instead of "[x]level" on
      compat_props, and add new test cases to ensure we don't break this
      again.
      Reported-by: N"Guo, Zhiyi" <zhguo@redhat.com>
      Fixes: c39c0edf ("target-i386: Automatically set level/xlevel/xlevel2 when needed")
      Cc: qemu-stable@nongnu.org
      Acked-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      1f435716
  17. 11 5月, 2017 2 次提交
  18. 03 5月, 2017 1 次提交
  19. 11 3月, 2017 1 次提交
  20. 03 3月, 2017 1 次提交
    • D
      x86: Work around SMI migration breakages · fc3a1fd7
      Dr. David Alan Gilbert 提交于
      Migration from a 2.3.0 qemu results in a reboot on the receiving QEMU
      due to a disagreement about SM (System management) interrupts.
      
      2.3.0 didn't have much SMI support, but it did set CPU_INTERRUPT_SMI
      and this gets into the migration stream, but on 2.3.0 it
      never got delivered.
      
      ~2.4.0 SMI interrupt support was added but was broken - so
      that when a 2.3.0 stream was received it cleared the CPU_INTERRUPT_SMI
      but never actually caused an interrupt.
      
      The SMI delivery was recently fixed by 68c6efe0, but the
      effect now is that an incoming 2.3.0 stream takes the interrupt it
      had flagged but it's bios can't actually handle it(I think
      partly due to the original interrupt not being taken during boot?).
      The consequence is a triple(?) fault and a reboot.
      
      Tested from:
        2.3.1 -M 2.3.0
        2.7.0 -M 2.3.0
        2.8.0 -M 2.3.0
        2.8.0 -M 2.8.0
      
      This corresponds to RH bugzilla entry 1420679.
      Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Message-Id: <20170223133441.16010-1-dgilbert@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      fc3a1fd7
  21. 22 2月, 2017 1 次提交
  22. 28 1月, 2017 3 次提交
  23. 24 1月, 2017 1 次提交
  24. 20 1月, 2017 1 次提交
  25. 19 1月, 2017 1 次提交
  26. 22 12月, 2016 3 次提交