From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 339171A682F for ; Wed, 2 Sep 2026 00:38:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788309536; cv=none; b=SvrkI72iWtCs5W1BKOaoPBTB5In5rCSj6JGKHZxM7gxFqRtbQpDXHBFDFjx1nRPS7Zu2x3vz4eGm7wJH2hPImyknb014Mb+OyOaXU/tQapxS0YGMIWnK6AKHiRw839SAtKty0BiXbydbKy02+DbWyOUHAcLPqVZ4JRnWlRuTJ1w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788309536; c=relaxed/simple; bh=dM8UMjdfpzrInG7yBCOavPUVK2/x4vlb0fefgS3K6Yw=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=SaepJdYIFkmy7gVGaDdHfH5eg5RdeDdZXbb8rbQAtDMmxl+Lzrtpoi3WKV6F4CEPj416d9peS2LRTGFgG/JxwULgPA2uiXAjU3eJRWetghxoUIwsqmUw2+o1JdMHEOzOPpoxcAwdS4hm8So+bSwNpNSBibMj1T2P27cotav9MWw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=cd9q9TuF; arc=none smtp.client-ip=209.85.214.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="cd9q9TuF" Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2d6df0a1e18so8379165ad.1 for ; Tue, 01 Sep 2026 17:38:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1788309534; x=1788914334; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=FaTmFFkWvtpI1wxK9lbUH5Q49TqxcdmMs9wtskLlSB4=; b=cd9q9TuFdqYqcDrugYPeY/JVeFF8BqYOYNEwpohfGF45vi82FUDlNUcdQLqpSqTvrs Rdh1tHhEou14WwmTHxqMp+CSiQ0OSNLH3HkO9yyFpxyu0ZEJUkuYSzgEWr4C/Vcjz1sZ 2ZXeIhlEiPtKY/n8cwyP1SniE/AFekKN0U2LRmroUF3Ta/3c4owa7QjWp+QBt+iyAWbU oO9TfdSBZyyBRbwQXOaHrSoteRS71mHAJmgCdkIJ1HghR1/oTgSsTqSoqIPlvKpyrxAl sdO1y6mThMALRjC7ExBGuTIbUtrloROtrVKLTdUQD7nj1d9crFr+nak1zM1e7Umq5y4W fkGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788309534; x=1788914334; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=FaTmFFkWvtpI1wxK9lbUH5Q49TqxcdmMs9wtskLlSB4=; b=d7sv7qFR5IZbasGlqA9bLsgmzDGem36tQjQFS5K7ccD52aYACwQlh49HmTcIL/DKEQ 7IFW1AfFVA1cb/Xh9AszTb0CbLOl7zX+6i4hOJkBZl2u0pYVQChXXL8Dw0dqZKr+Ud9e q7vIoI9JKaPP59CqMyr6GvntP4blmWQlWhkZ3g3cINN5bNxShx0X5ZfXDNedeItmSNTS iAH8baNeMF6VjGKMpgqzIzH5mtYyaMWClSI57IiYGjayvlvNDm1J3Ss8cU/ySdM+EQnv faZHtERPs0EJPGzIFihJbDYHby51A0alVAXySPpFaS2phptXZ/kt42FYHjA9LAKt1kF2 s/Yw== X-Forwarded-Encrypted: i=1; AKwUvBy/yV4+28edqxPdCwQUlGwxnB9MKRPii8LKLOglDEdRO1j2Sgq7xn/2DIcoA12mITye+tq4R5rgBlfpAz4=@vger.kernel.org X-Gm-Message-State: AFuF++lL4vdJYmKeMBC3onScQXmwpEEf6LcbWVj3K+gTAGoVYyejk6FZ UszWf6I+/FlO5lkOYTXTM3PEVAEYzwn1xVjHBQebSjIFir0sZkuxy2n+GuTXVMdM+H1xguQJdjB PtuXqtg== X-Received: from plgf7.prod.google.com ([2002:a17:902:ce87:b0:2cc:6063:a658]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:26c6:b0:2d8:d4cc:be67 with SMTP id d9443c01a7336-2daec73f1d2mr14199535ad.20.1788309534336; Tue, 01 Sep 2026 17:38:54 -0700 (PDT) Date: Tue, 1 Sep 2026 17:38:53 -0700 In-Reply-To: <20260831144802.834315-4-seiden@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260831144802.834315-1-seiden@linux.ibm.com> <20260831144802.834315-4-seiden@linux.ibm.com> Message-ID: Subject: Re: [PATCH v7 03/23] KVM: Allow KVM implementations to switch off MMIO independent of Kconfig From: Sean Christopherson To: Steffen Eiden Cc: kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, Alexander Gordeev , Andreas Grapentin , Arnd Bergmann , Catalin Marinas , Christian Borntraeger , Claudio Imbrenda , David Hildenbrand , Friedrich Welter , Fuad Tabba , Gautam Gala , Hariharan Mari , Heiko Carstens , Hendrik Brueckner , Ilya Leoshkevich , Janosch Frank , Joey Gouly , Marc Zyngier , Nico Boehr , Nina Schoetterl-Glausch , Oliver Upton , Paolo Bonzini , Suzuki K Poulose , Sven Schnelle , Ulrich Weigand , Vasily Gorbik , Will Deacon , Zenghui Yu Content-Type: text/plain; charset="us-ascii" On Mon, Aug 31, 2026, Steffen Eiden wrote: > Only defining KVM_MMIO is not flexible enough for multi-KVM systems > where one KVM implements MMIO but others do not. Solve this by > additionally testing for the non-existence of KVM_NO_MMIO before > including MMIO code to KVM. Ewwwww. IIUC, s390 ends up with two KVM modules, i.e. there really are two different KVMs being built. Rather than have a KVM_MMIO and NO_KVM_MMIO, I vote very strongly to drop CONFIG_KVM_MMIO entirely and replace it with __KVM_HAVE_ARCH_MMIO, a la __KVM_HAVE_ARCH_VM_FREE and others. Tracking two separate macros is going to be annoying to maintain, and will definitely be confusing for non-s390 people. It'll mean linking in an emtpy coalesced_mmio.o on s390 when building without arm64 support, but I'm guessing that won't be at all common for s390 builds.