qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Xiaoyao Li <xiaoyao.li@intel.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Cédric Le Goater" <clg@redhat.com>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	xiaoyao.li@intel.com, qemu-devel@nongnu.org
Subject: [PATCH 1/2] i386/Kconfig: Make I386 and X86_64 independant
Date: Wed, 25 Jun 2025 11:49:02 +0800	[thread overview]
Message-ID: <20250625034903.2770272-2-xiaoyao.li@intel.com> (raw)
In-Reply-To: <20250625034903.2770272-1-xiaoyao.li@intel.com>

Commit 4921d0a7535b ('i386: switch boards to "default y"') makes
CONIFG_X86_64 select CONFIG_I386, which makes it difficult to define
X86_64 only configs, e.g., for TDX.

Decouple I386 from X86_64.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
---
 hw/i386/Kconfig     | 10 +++++-----
 target/i386/Kconfig |  1 -
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/hw/i386/Kconfig b/hw/i386/Kconfig
index eb65bda6e071..6fc353930985 100644
--- a/hw/i386/Kconfig
+++ b/hw/i386/Kconfig
@@ -74,7 +74,7 @@ config PC_ACPI
 config I440FX
     bool
     default y
-    depends on I386
+    depends on (I386 || X86_64)
     imply E1000_PCI
     imply VMPORT
     imply VMMOUSE
@@ -91,7 +91,7 @@ config I440FX
 config ISAPC
     bool
     default y
-    depends on I386
+    depends on (I386 || X86_64)
     imply VGA_ISA
     select ISA_BUS
     select PC
@@ -103,7 +103,7 @@ config ISAPC
 config Q35
     bool
     default y
-    depends on I386
+    depends on (I386 || X86_64)
     imply VTD
     imply AMD_IOMMU
     imply E1000E_PCI_EXPRESS
@@ -122,7 +122,7 @@ config Q35
 config MICROVM
     bool
     default y
-    depends on I386 && FDT
+    depends on (I386 || X86_64) && FDT
     select DEVICE_TREE
     select SERIAL_ISA # for serial_hds_isa_init()
     select ISA_BUS
@@ -168,4 +168,4 @@ config VMMOUSE
 config XEN_EMU
     bool
     default y
-    depends on KVM && I386
+    depends on KVM && (I386 || X86_64)
diff --git a/target/i386/Kconfig b/target/i386/Kconfig
index 6b0feef02997..f16efa7137d5 100644
--- a/target/i386/Kconfig
+++ b/target/i386/Kconfig
@@ -6,4 +6,3 @@ config I386
 
 config X86_64
     bool
-    select I386
-- 
2.43.0



  reply	other threads:[~2025-06-25  3:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-25  3:49 [PATCH 0/2] i386: Don't build TDX for 32-bit target Xiaoyao Li
2025-06-25  3:49 ` Xiaoyao Li [this message]
2025-06-25  3:49 ` [PATCH 2/2] i386/tdx: Don't build TDX for 32bit target Xiaoyao Li
2025-06-25  5:59   ` Cédric Le Goater
2025-06-25  6:36     ` Xiaoyao Li
2025-06-25  7:12       ` Cédric Le Goater

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250625034903.2770272-2-xiaoyao.li@intel.com \
    --to=xiaoyao.li@intel.com \
    --cc=berrange@redhat.com \
    --cc=clg@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).