Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp436192lqb; Thu, 29 Feb 2024 05:36:48 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUcU5PtOdAwKBtDPEHnzLB3mXNJ0/MML7wFK1INOZkuUNW0w4X3cHC1TBXy9kmMhrdtkv5p5YT1tyE0v+YJOy/WsDLM543aR7wHOn20Ww== X-Google-Smtp-Source: AGHT+IFRPF1A+jqUKUtUSQnuPWofNfw4UZ2OpQtjcjZK5aEi7mEY6+w4b+TC+gm16+/Uj/czaMLu X-Received: by 2002:a05:6a21:3945:b0:1a0:e03f:dee with SMTP id ac5-20020a056a21394500b001a0e03f0deemr2930273pzc.43.1709213808149; Thu, 29 Feb 2024 05:36:48 -0800 (PST) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f11-20020a17090aec8b00b0029b1bea6f17si33197pjy.150.2024.02.29.05.36.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 05:36:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86762-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20210309 header.b=Yf7Fif6n; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-86762-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86762-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D2799284CFF for ; Thu, 29 Feb 2024 13:36:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8028E86275; Thu, 29 Feb 2024 13:36:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Yf7Fif6n" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 510867E0F8; Thu, 29 Feb 2024 13:36:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709213800; cv=none; b=AYve3ZacbMMU+3UgAaZk2XDXRr7yAxY8lrsHHOBwMRTtKD9dLFJI0L0/XMLAUq4t1ssh5tSICZabIY6Ep5boaXeG0v4O844AwH3QccQfrVWPavXlet5JABucWuj8aJCNsziR9bJcSDjnQDFdPE2MkOK+Ap9LC8nF4xBxGUydZCc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709213800; c=relaxed/simple; bh=OLeINhUfZtPKoUaRZ8erFl7pF5Trs9Ph8RVF20T1Ib0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=m0TxetqLe7pf9sek+5gVYmWrRQGRufT3jTHjxKLmrQ0nkrfMTOiO6NqanprAMN7QtwZrqSq2yDqHtyICIjgPDQI9Ld+Aj5R+iAjWHVbCGnsyUVkCvRXEeNswKddXsirNJDqB3LaJI56yiMmIFytjqlQUjPsVjVIgNUF+BXH9qb4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=Yf7Fif6n; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=OLeINhUfZtPKoUaRZ8erFl7pF5Trs9Ph8RVF20T1Ib0=; b=Yf7Fif6nPkaaSVI/xvdE9mfbMP QdXu1MI+7vjxb2/wVe6xYz9eGlekFdNKWlsb6XlxrTRBZT2g7FKFxqVDoyyqIB0ik5aTlAUzCCnMj w3+EgQRz9ZF0vQWhPcPJ6emIWXt+IRFHjvZcSaCgxNajY4Dx96dcSdfelJ35PBkCllfDYqgXDt+LG TBgXppz8RkhtOMnBOAIuar5QspnqqzGMAWI24QNbbi5TaWXBP+uyTn+6MW7Xpg2LDPJADlSkaR9Ix ilKUVP0Va8iES5XdVMr1T/lDU5dSowDIZbY50JWsvGngswAJXTyy83fHYHf2L1b91Ftk8w75kvxSU gDzDaUwQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfgaN-0000000Dgvg-2sfO; Thu, 29 Feb 2024 13:36:31 +0000 Date: Thu, 29 Feb 2024 05:36:31 -0800 From: Christoph Hellwig To: David Stevens Cc: Sean Christopherson , Paolo Bonzini , Yu Zhang , Isaku Yamahata , Zhi Wang , Maxim Levitsky , kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH v11 0/8] KVM: allow mapping non-refcounted pages Message-ID: References: <20240229025759.1187910-1-stevensd@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240229025759.1187910-1-stevensd@google.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Thu, Feb 29, 2024 at 11:57:51AM +0900, David Stevens wrote: > Our use case is virtio-gpu blob resources [1], which directly map host > graphics buffers into the guest as "vram" for the virtio-gpu device. > This feature currently does not work on systems using the amdgpu driver, > as that driver allocates non-compound higher order pages via > ttm_pool_alloc_page(). . and just as last time around that is still the problem that needs to be fixed instead of creating a monster like this to map non-refcounted pages.