Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp55980rdb; Thu, 1 Feb 2024 01:45:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHV2+L08MEUBQqAkIMJKwkAV23dqXkFbNWK+ouotqySwcRBuvTmCroLBGTZk7L8vqRQWEi4 X-Received: by 2002:a05:6358:16cc:b0:175:d6b7:b5a9 with SMTP id r12-20020a05635816cc00b00175d6b7b5a9mr4417314rwl.23.1706780706491; Thu, 01 Feb 2024 01:45:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706780706; cv=pass; d=google.com; s=arc-20160816; b=Yc7UGc6b3ZpwgMIqvwoNyOJwEkSEOPSO07ep2b68MrU1u3FSXPwXKbSREaFNsb7pi0 BXUXfCYVAAC38ErRAZZn2y+1gWP+b8uGtW5eaSkm+RjONKrZaWZTSESAKVRvKsG0TUxG ewpvu+Eg6bbktMPIWwMqzmh5KpHkjAt/jf0QSODTn5v4VNBPfde37beXKMMVkGS3k046 5hotDxWBGC5Gzx1aqIzyYVlzQ7+X720I7ozPYV8bBNHMKen6gu2e17ZjQ2vInX1RTrFx uxSe/8SUXYbl9eAJ4Asz1mLVYU2KzN+F0gvmPfllbd+TbPTmO8t1gD7mvHN+TSxW0H1w M6zQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=OwShds1DSOW99jywzyDnMv19QsZraNkfPoDRWVlBrdQ=; fh=kqFD9Lqa7NobWNvSDRUyeFQp3rMqr6n4Dyv8XCnq8C8=; b=Nsz4QnTsyScnlevF8BtLEWEBf7TStEZyVfyWDyc93H7c4d4Uw25ZGqhLtsOjslXOrJ WBBQCRsbQ+12dp07MDq9TT8HF6loK28Kg09DujoYCi4cYIJEEmrCX+OIJkxhLe9wHoQM iSze0CyeRUr+yN97AdKMPAVE018OApgOjMknNyUzPa/YvxHAQCCF/uxUap/TjBdQE106 x+3wonhrSUb/4zVwFcXlfsUUrxFk2z7eO/ZIVb1B6udbhxntm6KMhmOhEik5wRBeZlx0 AbohxyMmSHqbwN6GTQqIYskjfQcddtXMmrsiKMDLDVVyh03Cs2ZDoXJ0QfYgryIvfKGd 06iA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="s/tsIeBS"; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-47906-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47906-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=1; AJvYcCUGi17k69QXkB/m1WKK5ZWAUhdOgjYAKSv3IgE8ZVaDyE136wO5ZllQnUoDefiNuQtx/QqKvTqj5+w2iLZ9jqb7KEUEv1ctGmWjtpRF1w== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g185-20020a636bc2000000b005dbec36a48csi630530pgc.418.2024.02.01.01.45.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 01:45:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47906-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=pass header.i=@collabora.com header.s=mail header.b="s/tsIeBS"; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-47906-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47906-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 C7255281790 for ; Thu, 1 Feb 2024 09:44:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDD5815CD40; Thu, 1 Feb 2024 09:44:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="s/tsIeBS" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 7A46715A4A1; Thu, 1 Feb 2024 09:44:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706780655; cv=none; b=YDvChZWVLmaJidqVKQe99OB0GTDC8D3j3L+I4jsvNIv9shO15Yp/Jg9dpf/89eXkbrP2w9Xu/4QWQ0mPuuqn6mOYqQe40GekrAt0+nkDme1wJZU30PbMxYrqf2imiRbkcOfFOzNjd+i1fqtH+lKqFaC1Rt5yIjK5QeRCJai5e7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706780655; c=relaxed/simple; bh=CQ+G0j9FxKWITjhQFY4SwZZur7CT0j14ogDVrgi21NA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=TWqyRO7iU3SmWa+FgctvnfhN5ZFg7Q4Qgd4db8UzRnp/vQs4ZlEmsu43aa8ff+6DphxKoWJgEFOp6KnkucqkVvCVyGQAamiVko+qMz/1AzjAX8CZppuldj45xA2nkjLIdvgzWXkz9xPkzrNKO2r8svcinILcG24miLaGuwsdrYU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=s/tsIeBS; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1706780651; bh=CQ+G0j9FxKWITjhQFY4SwZZur7CT0j14ogDVrgi21NA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=s/tsIeBSYEvrkvPa88cGQTK3vogxX2XYOiVZ7T2WQ5TTGXK0MTMj7ojoG5gvtGqbq ScJHUt3KfpVJvV6ulBryKd6p15MCT+DKAElOyaVqJ2Do7hv8cVSuTevLIKPmuJRsnn DNThtdUYQWjgC6K6l5F4gzofQBDwIB8Nrp808kxdi0q9Q86qMvo/tCf1DHOh9MNQ2/ tdCP4O4FdNtIHPoBgzzUAgMrZT2k3QxtCxFcDABONArRHjCm/b8+PlZt3Uh+nBCC6l oYnTOrBdZcUuv+gQ2AaGsSN+3F6cR6ansvsTsaIvRpIxyEIDdQEL5rDi7sXasvHuOI VUWV53PLn2DWg== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 40B02378208E; Thu, 1 Feb 2024 09:44:10 +0000 (UTC) Message-ID: Date: Thu, 1 Feb 2024 10:44:10 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 07/21] virt: geniezone: Add vm capability check Content-Language: en-US To: Yi-De Wu , Yingshiuan Pan , Ze-Yu Wang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Catalin Marinas , Will Deacon , Richard Cochran , Matthias Brugger Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, David Bradil , Trilok Soni , My Chuang , Shawn Hsiao , PeiLun Suei , Liju Chen , Willix Yeh , Kevenny Hsieh References: <20240129083302.26044-1-yi-de.wu@mediatek.com> <20240129083302.26044-8-yi-de.wu@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20240129083302.26044-8-yi-de.wu@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 29/01/24 09:32, Yi-De Wu ha scritto: > From: "Yingshiuan Pan" > > Inquire the `capability support` on GenieZone hypervisor. > Example: > `GZVM_CAP_PROTECTED_VM` or `GZVM_CAP_VM_GPA_SIZE`. > > Signed-off-by: Yingshiuan Pan > Signed-off-by: Jerry Wang > Signed-off-by: kevenny hsieh > Signed-off-by: Liju Chen > Signed-off-by: Yi-De Wu > --- > arch/arm64/geniezone/gzvm_arch_common.h | 2 + > arch/arm64/geniezone/vm.c | 122 ++++++++++++++++++++++++ > drivers/virt/geniezone/gzvm_main.c | 27 ++++++ > drivers/virt/geniezone/gzvm_vm.c | 21 ++++ > include/linux/gzvm_drv.h | 5 + > include/uapi/linux/gzvm.h | 31 ++++++ > 6 files changed, 208 insertions(+) > > diff --git a/arch/arm64/geniezone/gzvm_arch_common.h b/arch/arm64/geniezone/gzvm_arch_common.h > index 2f66e496dfae..383af0829f11 100644 > --- a/arch/arm64/geniezone/gzvm_arch_common.h > +++ b/arch/arm64/geniezone/gzvm_arch_common.h > @@ -13,6 +13,7 @@ enum { > GZVM_FUNC_DESTROY_VM = 1, > GZVM_FUNC_SET_MEMREGION = 4, > GZVM_FUNC_PROBE = 12, > + GZVM_FUNC_ENABLE_CAP = 13, GZVM_FUNC_PROBE = 12, GZVM_FUNC_ENABLE_CAP, > NR_GZVM_FUNC, > }; > Regards, Angelo