All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@kernel.org>
To: Steffen Eiden <seiden@linux.ibm.com>,
	Claudio Imbrenda <imbrenda@linux.ibm.com>,
	Christian Borntraeger <borntraeger@linux.ibm.com>,
	Andreas Grapentin <gra@linux.ibm.com>,
	Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Cc: Janosch Frank <frankja@linux.ibm.com>,
	David Hildenbrand <david@kernel.org>,
	kvm@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>
Subject: [PATCH 2/2] s390: kvm: arm64: add HAS_IOMEM dependency
Date: Tue, 26 May 2026 14:52:20 +0200	[thread overview]
Message-ID: <20260526125220.1560451-2-arnd@kernel.org> (raw)
In-Reply-To: <20260526125220.1560451-1-arnd@kernel.org>

From: Arnd Bergmann <arnd@arndb.de>

The arm64 kvm driver can only be enabled when MMIO support is part of
the host kernel:

arch/s390/kvm/arm64/../../../../virt/kvm/arm64/mmio.c:120:27: error: 'struct kvm_vcpu' has no member named 'mmio_needed'

s390 does not support MMIO if PCI is disabled, but in practice one
would not actually need kvm support in those configurations either.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
This is currently needed for randconfig build testing the
'sae' branch, it is not yet in linux-next
---
 arch/s390/kvm/arm64/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/s390/kvm/arm64/Kconfig b/arch/s390/kvm/arm64/Kconfig
index 42a1be50f6e1..65b9dc25fe62 100644
--- a/arch/s390/kvm/arm64/Kconfig
+++ b/arch/s390/kvm/arm64/Kconfig
@@ -3,6 +3,7 @@
 config KVM_ARM64
 	def_tristate y
 	prompt "Kernel-based Virtual Machine (KVM) support for arm64 guests"
+	depends on HAS_IOMEM
 	select KVM
 	select KVM_VFIO
 	select IRQ_BYPASS_MANAGER
-- 
2.39.5


  reply	other threads:[~2026-05-26 12:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-26 12:52 [PATCH 1/2] kvm: rework memory prefault Arnd Bergmann
2026-05-26 12:52 ` Arnd Bergmann [this message]
2026-05-26 17:08   ` [PATCH 2/2] s390: kvm: arm64: add HAS_IOMEM dependency Steffen Eiden
2026-05-26 21:20     ` Arnd Bergmann
2026-05-26 17:05 ` [PATCH 1/2] kvm: rework memory prefault Steffen Eiden

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=20260526125220.1560451-2-arnd@kernel.org \
    --to=arnd@kernel.org \
    --cc=arnd@arndb.de \
    --cc=borntraeger@linux.ibm.com \
    --cc=david@kernel.org \
    --cc=frankja@linux.ibm.com \
    --cc=gra@linux.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=nsg@linux.ibm.com \
    --cc=seiden@linux.ibm.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.