Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3470775rdb; Wed, 13 Sep 2023 13:04:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEUA/9DJkQovQKvQZ6qxgNCkVmrv5O98uJrqim1bJ7ISdx/ZNPKMbAqBZRph6hSWSd4dRyB X-Received: by 2002:a17:902:b289:b0:1c2:584:51c8 with SMTP id u9-20020a170902b28900b001c2058451c8mr3243997plr.12.1694635480500; Wed, 13 Sep 2023 13:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694635480; cv=none; d=google.com; s=arc-20160816; b=RSGdk3ZW2hY41ZZDRr5n5aKlHw1OrqsbFoQAuCnJLkocRQNLuOfWCgVuW4lD3Y8pRq fF/8yM1q+ooR0pElCi2Xyb1RFq/BR/UWy6P18y6+EwImzk89ylGZvJ431k9c002sLMTT SGaEQlcghMuVY2R0gI5yC/8Gsvs7fWLxjabIyGIZGM1jVIly0LjrirRUq7z2NFFykJ3N o+Qv3RValn2xnUhSccLzGWmoH1CiVnk3VqL31aeXoMl5egJuK/pYGCfwQbRZWHp3jFBM jdONy7PPg0Qz2Hp5L6248/ntQ81xJDp5sSAk14BCBkcbAz0ZmMZvBsqYjbCCvkgk8xCi xPmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QhqWJK4Yl8FZlPx7YA90HY4DEKAj2aZu//NzIeD3Ods=; fh=ANS6iRpdj3ntKSmwSzT4LEHUH9ZAudCj9zvP8/EeThQ=; b=ofsPTvG0IFlF9HIzzcmkwLvmYUs3CJjcw+NUBhyKJPyJ92c1e9bW3n38wpT8mE6nCM nXSpOKTBjVNcqk6iUHBC3RGy6xSYx9x3c+Dtucf2beabadit5w/KKlc84XP+e+mEJE6F cENJiuvWsPb/rt+6eZ7KN0+iN1BvZgFlULVW142LVBmu20eHlodNHCdOIeMZnRZuh8vJ sXOv72dqS8KK0OYQtTpFeap9gbwr3wgCJsGwLAgUWD3TLc1o2l0yCfb3qBQX7QkAtXhk axm+1Yho3t+q5LXYcQhv6BUdUsWSbtTy+F/bnMH1A3twkG5qHP3E8Mh4rQzuTUKLD6UP G0HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=S+BY7U3P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id kk12-20020a170903070c00b001c3ae631b86si42584plb.112.2023.09.13.13.04.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 13:04:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=S+BY7U3P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id A771B8251717; Wed, 13 Sep 2023 03:49:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239820AbjIMKte (ORCPT + 99 others); Wed, 13 Sep 2023 06:49:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239735AbjIMKtR (ORCPT ); Wed, 13 Sep 2023 06:49:17 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A0121726; Wed, 13 Sep 2023 03:49:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694602153; x=1726138153; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=l4rRB6q60nP3OBQRoA84gLJ739r9ruaKEWruVEincP8=; b=S+BY7U3PyN8FHkNajlO321/wEN9uBtVAj7n9PQ8w5qOc84E8vvcU0tUu MHiCYA1rOCmmsKYdudYl/gzgrJfU81O8uEwLp1cHnIaMHxDta5mSHSyW9 wkY1yYmuFWpjFkYAMpGTDsKqokbgsFO1PoKSAxGtgjDHjlk/Utcodt84C FCvfJhSrlILuqZEvnnNFQ06BzW0bQqua/mwkIKQ7YuCikjddP30+WbGVM z/wNGmY5yIv+prQYuwIMLYdyF9s0J+Hv6tBnUh9dx/QEccuu1OUzhtUvy lsu8astOvEQp+sY0PJuefw93ZHAWFNL7IhKjgErRzVA3ZN/UBuK2MWDii Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="377537907" X-IronPort-AV: E=Sophos;i="6.02,143,1688454000"; d="scan'208";a="377537907" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 03:49:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="809635601" X-IronPort-AV: E=Sophos;i="6.02,143,1688454000"; d="scan'208";a="809635601" Received: from ls.sc.intel.com (HELO localhost) ([172.25.112.31]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 03:49:12 -0700 From: isaku.yamahata@intel.com To: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: isaku.yamahata@intel.com, isaku.yamahata@gmail.com, Michael Roth , Paolo Bonzini , Sean Christopherson , erdemaktas@google.com, Sagi Shahar , David Matlack , Kai Huang , Zhi Wang , chen.bo@intel.com, linux-coco@lists.linux.dev, Chao Peng , Ackerley Tng , Vishal Annapurve , Yuan Yao , Jarkko Sakkinen , Xu Yilun , Quentin Perret , wei.w.wang@intel.com, Fuad Tabba Subject: [RFC PATCH 6/6] KVM: X86: Allow KVM gmem hwpoison test cases Date: Wed, 13 Sep 2023 03:48:55 -0700 Message-Id: <192a749b3842619e89bf91513e3c2715091ced61.1694599703.git.isaku.yamahata@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 13 Sep 2023 03:49:42 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email From: Isaku Yamahata Set HAVE_GENERIC_PRIVATE_MEM_HANDLE_ERROR and KVM_GENERIC_PRIVATE_MEM_BMAP to allow test cases for KVM gmem. Signed-off-by: Isaku Yamahata --- arch/x86/kvm/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig index 029c76bcd1a5..46fdedde9c0f 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig @@ -82,6 +82,8 @@ config KVM_SW_PROTECTED_VM depends on EXPERT depends on X86_64 select KVM_GENERIC_PRIVATE_MEM + select HAVE_GENERIC_PRIVATE_MEM_HANDLE_ERROR + select KVM_GENERIC_PRIVATE_MEM_BMAP help Enable support for KVM software-protected VMs. Currently "protected" means the VM can be backed with memory provided by -- 2.25.1