From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796398874; b=1hTaPl4VRVQ3SwDmHs8OKouJlR7dxsebRJ6nk1M6upocuU4FMrTJgTL2WVrQ4cZFkgWv ad0zoZNHgG5mLFZoI/BriJuIh35w4NQtsxm49bECUpxRFEze/pcAWlwl80hyRNHuiJS49 UuShlUY9yMndHmcSeRNYWHvg0wpLq1aaDqRL3qst3tc+KWUWBkCKXuY9on5S+9+0MSlCJ laNATsS/5b1a7GMYWLUSQZpJ/GFmKPJROZvJ67xxYbNlL2XGyFr3wDPglgF9PolMKopz2 7g8YYvO+EaqnlEitaV2lyKbU4uN/LbykftyfcgL7Ng4wnakqqbPKMxR+AatbnvlACnw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796398874; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Date:From: To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=H6NG4Foj8kc7Ov7DUajSKtv9BZYAj8+48iNj98LZtVE=; b=4DByHTevjOIWaM6RlV0Kn2yfM/F6jAJWOo4+NJQ30xAmKexDoPwMyWbE/viB0+2qDiW9 8q354+hjpxuRiNhOs4IH1hLV7Kr9r+Irf1G9mvpqZE0nQVLXYwSQlRFkMoT777TNCEnx4 qTS6lToyoObuQcBbkZ9RBF0By7zC55P3YxAkjGR7lURqrhnrzVn+ktAvZN6YeTBimFBWP KeL/gmHPXREEquhCVPL03NJmYMWZixuHcTmBrXTdUAagVZEm5FmBW1WCLSzSZJXBShpRA rNdJnbL7IHT4hkYPacI4VQTTgtuBE13wO/VjiMKR0WC2EJuGg00lbBpU1co3pfkP+gg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=BMnThW3m; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b="cST/pgKV"; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 217FD606A322 for ; Fri, 4 Dec 2026 15:41:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 217FD606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=BMnThW3m; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=cST/pgKV DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796398873; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=H6NG4Foj8kc7Ov7DUajSKtv9BZYAj8+48iNj98LZtVE=; b=BMnThW3mS60NYGEbTHazWjLwwnbT+/uJehASPBRwP6FxI18moG5LP/v6Y3H4YhigE774kE 9qCPWSB4tXwozLpbgP7GUx/hkl1s5ndg1dkfn7zOu6GI5+ncYAR3JrFzXVigaGVnsAgKGf gKp3D8CCextP/yQHi/aJyN6HAw4PoXY= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-529-3UIva7DBPMydVyF3K-Jb8w-1; Fri, 4 Dec 2026 15:41:11 +0000 X-MC-Unique: 3UIva7DBPMydVyF3K-Jb8w-1 X-Mimecast-MFC-AGG-ID: 3UIva7DBPMydVyF3K-Jb8w_1796398870 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-4a82fb7e71eso545165f8f.0 for ; Fri, 04 Dec 2026 07:41:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1796398870; x=1797003670; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=H6NG4Foj8kc7Ov7DUajSKtv9BZYAj8+48iNj98LZtVE=; b=cST/pgKVtTHeMgf+m4ohfpz+bhENTXSC8jbCvT8GEq9fGJZaAIICLns4tqL0RK/YoY ezEp1ywsChlH1CfiF/zDjvvO955uWzbZPg6cmGje0Hx/fAyslo/uKAL1Zf6h+h1xoZTX mT36Uk3exSRHfnwMOkLmSfp4fWmBw5UhVhKuyIdaBsVzvPINZBlZR4b9bJC6/ojI4KGV 9kQCJ0BoGC7kI5T/irINY3Rg9YXUlXrJNfnJIOBfPyBH/MvqFzshJqIEB/veQ/XlIcT4 GeYCbIVIe4i0UANMs8lqKZUpQWhi7PKdMDDKDctznY091vd6eF3/ndRnXRwAgjUI9pHZ qqTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796398870; x=1797003670; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=H6NG4Foj8kc7Ov7DUajSKtv9BZYAj8+48iNj98LZtVE=; b=0BTG86e3gvrDs4+9npsx1rX20ILVpfM+kX42PUcdUIKHfb25j5BDz/wp9+GY89XMDf s3eZbL09hygtOkFfNXH1X5R/YnDL3aCv/g3jacNIBb3ttNNnTMcJWA3fuN+xK1RqaJyW ueqC5U82IqxG5Qk6hCobwpxoZmAOLsFCBs4AESKPtIW1rvotZ7Ex27QWQZNvj1zkWhBM 6FURnFSdzhhOChPHWhq3qViCZpmSf4ptGbEDsq5ukGe6w1npYVtxxlk6KTEHcK7y/Mux GUsYgwBA3CI+Yazt41UrsI2LZ9OgFPpZIbyoCfU8yfl5Z4c5iT4KuFuPzC6nkKIWICZ/ bTXg== X-Gm-Message-State: AB4q+uGxJYS6W9zrIYiSR0XOTrEQrzBmx4Dznfr3UYFex5UqaImNFXia JBMwYSCZ6ZOcSZ5+5/LU0Aoy7DqtP2DXkn3KbbExaOfUW7EXmpIwkKL/FA12PNgwkjt4fAVbHSB spDYNqQLx69XaG2t5aF1gp5KGrLxlrecKPg/tPfLV2XABPiVnfNmhhZMr39JCKg== X-Gm-Gg: AZFdTZeZGG6MdL3vlF9fNakg2DdbmvJcwfOicMrSNEeU2YHbwF27ggpDFbZY6lbdaYE MSKra9THTqvEIijc14f4vwegRM9VjbJnUONeI80xhyEPLJfvSKc0I36TpUsJ+7lay9HC4GnxstB gBXkebMGe3feDcXTpL4jgogF8jsGu5P2RacBz5QkXubu6xx+yxMNJpfXmSi7rVw+d9KGg92l1bb IHb9LUNxsPxCgw0auOeoGV8FswpgbqrD8m0OZBQKbwrUCG7oUftKGzQQPDP8qELpxvuN6cLl4W4 5v7Y0KkWqbPKQVhAfKRDqSYSQpienfcHsydo8FuyYZkU2lGuJraUQxmCe9oDwdTqApM6Qvc5ZqM 1D3lq9aJplIaHBMOU+1+vwlEBEGzuSCd0hXEFy13mMg== X-Received: by 2002:a05:6000:24c5:b0:4af:e519:cccc with SMTP id ffacd0b85a97d-4d1e8fa5813mr4857129f8f.12.1796398869670; Fri, 04 Dec 2026 07:41:09 -0800 (PST) X-Received: by 2002:a05:6000:24c5:b0:4af:e519:cccc with SMTP id ffacd0b85a97d-4d1e8fa5813mr4857068f8f.12.1796398869059; Fri, 04 Dec 2026 07:41:09 -0800 (PST) Received: from redhat.com ([2a0d:6fc0:153a:4c00:6468:7acf:febf:a046]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d16e29b89dsm6851977f8f.8.2026.12.04.07.41.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 07:41:08 -0800 (PST) Date: Fri, 4 Dec 2026 10:41:06 -0500 From: "Michael S. Tsirkin" To: Alex Williamson Cc: kvm@vger.kernel.org Subject: Re: [PATCH v7] vfio/pci: expose ACPI _ROM through a device region Message-ID: <20261204102624-mutt-send-email-mst@kernel.org> References: <20261204080333.58dfbe2c@shazbot.org> X-Mailing-List: kvm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261204080333.58dfbe2c@shazbot.org> On Fri, Dec 04, 2026 at 08:03:33AM -0700, Alex Williamson wrote: > On Fri, 4 Dec 2026 06:19:54 -0500 > "Michael S. Tsirkin" wrote: > > > Some GPUs provide their option ROM through the ACPI _ROM method. > > According to the spec, _ROM, if present, must supercede the > > PCI ROM BAR, but VFIO currently provides no means to access its > > contents. > > > > Let's report it through a new VFIO_REGION_TYPE_ACPI subtype: > > VFIO_REGION_SUBTYPE_ACPI_ROM. > > > > Note that _ROM size is not provided by the firmware and has to be parsed > > from the image. Let's leave this to userspace. > > Nak. This doesn't align with existing semantics that define other zero > sized regions as not present. It also makes it non-deterministic which > region a user is trying to access based on offset. The fixed region > spacing is implementation, not API. The API is to use region offset > and size from the region-info ioctl. We'll eventually be more densely > packing regions to account for BARs and device memory that exceed the > current 40 bit segmentation. Thanks, > > Alex Well exactly. And _ROM is not in device memory at all. It's offset is wholly artificial. Isn't it? So wouldn't packing a zero sized one be easier, going forward? I don't insist, I can code up the parser, just making sure you are sure this is what you want. -- MST