Commit 98721058d6 for qemu.org

commit 98721058d6d50ef218e0c26e4f67c8ef96965859
Merge: 72c58ff895 9bd24d8d27
Author: Stefan Hajnoczi <stefanha@redhat.com>
Date:   Fri May 30 11:41:07 2025 -0400

    Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging

    * target/i386/kvm: Intel TDX support
    * target/i386/emulate: more lflags cleanups
    * meson: remove need for explicit listing of dependencies in hw_common_arch and
      target_common_arch
    * rust: small fixes
    * hpet: Reorganize register decoding to be more similar to Rust code
    * target/i386: fixes for AMD models
    * target/i386: new EPYC-Turin CPU model

    # -----BEGIN PGP SIGNATURE-----
    #
    # iQFIBAABCgAyFiEE8TM4V0tmI4mGbHaCv/vSX3jHroMFAmg4BxwUHHBib256aW5p
    # QHJlZGhhdC5jb20ACgkQv/vSX3jHroP67gf+PEP4EDQP0AJUfxXYVsczGf5snGjz
    # ro8jYmKG+huBZcrS6uPK5zHYxtOI9bHr4ipTHJyHd61lyzN6Ys9amPbs/CRE2Q4x
    # Ky4AojPhCuaL2wHcYNcu41L+hweVQ3myj97vP3hWvkatulXYeMqW3/4JZgr4WZ69
    # A9LGLtLabobTz5yLc8x6oHLn/BZ2y7gjd2LzTz8bqxx7C/kamjoDrF2ZHbX9DLQW
    # BKWQ3edSO6rorSNHWGZsy9BE20AEkW2LgJdlV9eXglFEuEs6cdPKwGEZepade4bQ
    # Rdt2gHTlQdUDTFmAbz8pttPxFGMC9Zpmb3nnicKJpKQAmkT/x4k9ncjyAQ==
    # =XmkU
    # -----END PGP SIGNATURE-----
    # gpg: Signature made Thu 29 May 2025 03:05:00 EDT
    # gpg:                using RSA key F13338574B662389866C7682BFFBD25F78C7AE83
    # gpg:                issuer "pbonzini@redhat.com"
    # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" [full]
    # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>" [full]
    # 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

    * tag 'for-upstream' of https://gitlab.com/bonzini/qemu: (77 commits)
      target/i386/tcg/helper-tcg: fix file references in comments
      target/i386: Add support for EPYC-Turin model
      target/i386: Update EPYC-Genoa for Cache property, perfmon-v2, RAS and SVM feature bits
      target/i386: Add couple of feature bits in CPUID_Fn80000021_EAX
      target/i386: Update EPYC-Milan CPU model for Cache property, RAS, SVM feature bits
      target/i386: Update EPYC-Rome CPU model for Cache property, RAS, SVM feature bits
      target/i386: Update EPYC CPU model for Cache property, RAS, SVM feature bits
      rust: make declaration of dependent crates more consistent
      docs: Add TDX documentation
      i386/tdx: Validate phys_bits against host value
      i386/tdx: Make invtsc default on
      i386/tdx: Don't treat SYSCALL as unavailable
      i386/tdx: Fetch and validate CPUID of TD guest
      target/i386: Print CPUID subleaf info for unsupported feature
      i386: Remove unused parameter "uint32_t bit" in feature_word_description()
      i386/cgs: Introduce x86_confidential_guest_check_features()
      i386/tdx: Define supported KVM features for TDX
      i386/tdx: Add XFD to supported bit of TDX
      i386/tdx: Add supported CPUID bits relates to XFAM
      i386/tdx: Add supported CPUID bits related to TD Attributes
      ...

    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>

diff --cc target/i386/cpu.c
index 33afc3ec60,15439fdfa8..c9bd3444e4
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@@ -37,8 -37,9 +37,9 @@@
  #include "hw/i386/topology.h"
  #include "exec/watchpoint.h"
  #ifndef CONFIG_USER_ONLY
+ #include "confidential-guest.h"
  #include "system/reset.h"
 -#include "qapi/qapi-commands-machine-target.h"
 +#include "qapi/qapi-commands-machine.h"
  #include "system/address-spaces.h"
  #include "hw/boards.h"
  #include "hw/i386/sgx-epc.h"